I have posted this issue on reddit here
Essentially, I have z2m and mosquitto running successfully in docker, but cannot connect to the mqtt integration in home assistant. Any help appreciated...
Docker Compose
`services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: ghcr.io/koenkk/zigbee2mqtt
restart: unless-stopped
volumes:
- /volume1/docker/zigbee2mqtt:/app/data
ports:
- 8080:8080
environment:
- TZ=America/New_York
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:latest
restart: always
deploy:
resources:
limits:
memory: 256M
ports:
- "1883:1883"
- "9001:9001"
volumes:
- /localpath/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /localpath/data:/mosquitto/data
- /localpath/log:/mosquitto/log`
Logs
Mosquitto
1771705170: mosquitto version 2.1.2 starting 1771705170: Config loaded from /mosquitto/config/mosquitto.conf. 1771705170: Bridge support available. 1771705170: Info: running mosquitto as user: mosquitto. 1771705170: Persistence support available. 1771705170: TLS support available. 1771705170: TLS-PSK support available. 1771705170: Websockets support available. 1771705170: Opening ipv4 listen socket on port 1883. 1771705170: mosquitto version 2.1.2 running 1771705170: New connection from 172.30.0.1:34336 on port 1883. 1771705170: New client connected from 172.30.0.1:34336 as mqttjs_eb23fbd0 (p4, c1, k60)
z2m
There is a lot, but it successfully connects to mqtt server, I see the device I paired.
[2026-02-21 15:17:53] info: z2m: Connecting to MQTT server at mqtt://192.168.1.10:1883 [2026-02-21 15:17:53] info: z2m: Connected to MQTT server [2026-02-21 15:17:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}' [2026-02-21 15:17:53] info: z2m: Started frontend on port 8080 [2026-02-21 15:17:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Temp - Jack Office', payload '{"battery":100,"humidity":24.8,"humidity_calibration":0,"linkquality":18,"temperature":22.5,"temperature_calibration":0,"update":{"installed_version":8704,"latest_release_notes":null,"latest_source":"https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Sonoff/snzb-02p_v2.2.0.ota","latest_version":8704,"state":"idle"}}' [2026-02-21 15:17:53] info: z2m: Zigbee2MQTT started!
Integration
- Broker - Server local IP
- Port - 1883
- User / Psw - Blank