I’m really struggling to get Zigbee2MQTT to authenticate to mosquito, please see logs and configs below
Zigbee2MQTT config
data_path: /config/zigbee2mqtt
socat:
enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: "-d -d"
log: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto:1883
user: mqtt-user
Password: eDe6yzHzRHGWFHZzCLgM
serial:
port: >-
/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4294f0d43ca6ed11a14fe8a32981d5c7-if00-port0
mosquito config
logins:
- username: mqtt-user
password: eDe6yzHzRHGWFHZzCLgM
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
anonymous: false
Zigbee2MQTT logs
Starting Zigbee2MQTT without watchdog.
[2024-08-07 19:33:29] info: z2m: Logging to console, file (filename: log.log)
[2024-08-07 19:33:29] info: z2m: Starting Zigbee2MQTT version 1.39.1 (commit #unknown)
[2024-08-07 19:33:29] info: z2m: Starting zigbee-herdsman (0.55.3)
[2024-08-07 19:33:29] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4294f0d43ca6ed11a14fe8a32981d5c7-if00-port0","baudRate":115200,"rtscts":false,"autoOpen":false}
[2024-08-07 19:33:29] info: zh:zstack:znp: Serialport opened
[2024-08-07 19:33:29] info: z2m: zigbee-herdsman started (resumed)
[2024-08-07 19:33:29] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20210708,"transportrev":2},"type":"zStack3x0"}'
[2024-08-07 19:33:29] info: z2m: Currently 0 devices are joined:
[2024-08-07 19:33:29] info: z2m: Zigbee: disabling joining new devices.
[2024-08-07 19:33:29] info: z2m: Connecting to MQTT server at mqtt://core-mosquitto:1883
[2024-08-07 19:33:29] error: z2m: MQTT error: Connection refused: Not authorized
[2024-08-07 19:33:29] error: z2m: MQTT failed to connect, exiting...
[2024-08-07 19:33:29] info: z2m: Stopping zigbee-herdsman...
[2024-08-07 19:33:30] error: z2m: MQTT error: Connection refused: Not authorized
mosquito logs
2024-08-07 19:33:18: New connection from 172.30.33.4:49564 on port 1883.
2024-08-07 19:33:18: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:19: New connection from 172.30.33.4:49576 on port 1883.
2024-08-07 19:33:19: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:20: New connection from 172.30.33.4:49586 on port 1883.
2024-08-07 19:33:20: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:21: New connection from 172.30.33.4:49598 on port 1883.
2024-08-07 19:33:21: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:22: New connection from 172.30.33.4:49604 on port 1883.
2024-08-07 19:33:22: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:23: New connection from 172.30.33.4:49608 on port 1883.
2024-08-07 19:33:23: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:24: New connection from 172.30.33.4:47490 on port 1883.
2024-08-07 19:33:24: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:25: New connection from 172.30.33.4:47496 on port 1883.
2024-08-07 19:33:25: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:26: New connection from 172.30.33.4:47502 on port 1883.
2024-08-07 19:33:26: Client mqttjs_725cf60a disconnected, not authorised.
2024-08-07 19:33:29: New connection from 172.30.33.4:47508 on port 1883.
2024-08-07 19:33:29: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:30: New connection from 172.30.33.4:47514 on port 1883.
2024-08-07 19:33:30: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:31: New connection from 172.30.33.4:47516 on port 1883.
2024-08-07 19:33:31: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:32: New connection from 172.30.33.4:47524 on port 1883.
2024-08-07 19:33:32: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:33: New connection from 172.30.33.4:47530 on port 1883.
2024-08-07 19:33:33: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:34: New connection from 172.30.33.4:39938 on port 1883.
2024-08-07 19:33:34: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:35: New connection from 172.30.33.4:39954 on port 1883.
2024-08-07 19:33:35: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:36: New connection from 172.30.33.4:39956 on port 1883.
2024-08-07 19:33:36: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:37: New connection from 172.30.33.4:39958 on port 1883.
2024-08-07 19:33:37: Client mqttjs_1946fa4c disconnected, not authorised.
2024-08-07 19:33:40: New connection from 172.30.33.4:39974 on port 1883.
2024-08-07 19:33:40: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:41: New connection from 172.30.33.4:39984 on port 1883.
2024-08-07 19:33:41: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:42: New connection from 172.30.33.4:39996 on port 1883.
2024-08-07 19:33:42: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:43: New connection from 172.30.33.4:40002 on port 1883.
2024-08-07 19:33:43: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:44: New connection from 172.30.33.4:34230 on port 1883.
2024-08-07 19:33:44: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:45: New connection from 172.30.33.4:34238 on port 1883.
2024-08-07 19:33:45: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:46: New connection from 172.30.33.4:34242 on port 1883.
2024-08-07 19:33:46: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:47: New connection from 172.30.33.4:34250 on port 1883.
2024-08-07 19:33:47: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:48: New connection from 172.30.33.4:34266 on port 1883.
2024-08-07 19:33:48: Client mqttjs_acc2124a disconnected, not authorised.
2024-08-07 19:33:52: New connection from 172.30.33.4:34280 on port 1883.
2024-08-07 19:33:52: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:53: New connection from 172.30.33.4:34292 on port 1883.
2024-08-07 19:33:53: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:54: New connection from 172.30.33.4:34308 on port 1883.
2024-08-07 19:33:54: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:55: New connection from 172.30.33.4:42362 on port 1883.
2024-08-07 19:33:55: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:56: New connection from 172.30.33.4:42378 on port 1883.
2024-08-07 19:33:56: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:57: New connection from 172.30.33.4:42394 on port 1883.
2024-08-07 19:33:57: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:58: New connection from 172.30.33.4:42396 on port 1883.
2024-08-07 19:33:58: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:33:59: New connection from 172.30.33.4:42406 on port 1883.
2024-08-07 19:33:59: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:34:00: New connection from 172.30.33.4:42414 on port 1883.
2024-08-07 19:34:00: Client mqttjs_65702b41 disconnected, not authorised.
2024-08-07 19:34:03: New connection from 172.30.33.4:42416 on port 1883.
2024-08-07 19:34:03: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:04: New connection from 172.30.33.4:42432 on port 1883.
2024-08-07 19:34:04: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:05: New connection from 172.30.33.4:43542 on port 1883.
2024-08-07 19:34:05: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:06: New connection from 172.30.33.4:43546 on port 1883.
2024-08-07 19:34:06: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:07: New connection from 172.30.33.4:43550 on port 1883.
2024-08-07 19:34:07: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:08: New connection from 172.30.33.4:43560 on port 1883.
2024-08-07 19:34:08: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:09: New connection from 172.30.33.4:43576 on port 1883.
2024-08-07 19:34:09: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:10: New connection from 172.30.33.4:43584 on port 1883.
2024-08-07 19:34:10: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:11: New connection from 172.30.33.4:43598 on port 1883.
2024-08-07 19:34:11: Client mqttjs_c53a9152 disconnected, not authorised.
2024-08-07 19:34:14: New connection from 172.30.33.4:41106 on port 1883.
2024-08-07 19:34:14: Client mqttjs_3f01f38c disconnected, not authorised.
2024-08-07 19:34:15: New connection from 172.30.33.4:41120 on port 1883.
2024-08-07 19:34:15: Client mqttjs_3f01f38c disconnected, not authorised.
As best I can tell, it is zigbee2mqtt that is the problem and not mosquito. I can connect to mosquito using MQTT Explorer from my PC.
I’m not sure if it is relevant but I will post it here regardles, I am using a SONOFF Universal Zigbee 3.0 ZBdongle-P with the Z-Stack 3.x.0 coordinator firmware.