Hello,
I’m trying to install Zigbee2MQTT, but it can’t connect to MQTT, and I don’t understand why.
I’ve install Mosquitto broker, and configured it with basic login/password (it’s tmp password, I’ll change it when everything will work)
- username: mttq
password: mttq
Then I’ve created a user, with admin permission, named “mqtt”, with same password
And then I configured Zigbee2MQTT
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto:1883
user: mqtt
password: mttq
and serial:
port: >-
/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220818082337-if00
adapter: ezsp
But Zigbee2MQTT failed to login to MQTT
[11:39:33] INFO: Preparing to start...
[11:39:34] INFO: Socat not enabled
[11:39:36] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info 2023-09-24 11:39:42: Logging to console and directory: '/config/zigbee2mqtt/log/2023-09-24.11-39-42' filename: log.txt
Zigbee2MQTT:info 2023-09-24 11:39:42: Starting Zigbee2MQTT version 1.33.0 (commit #unknown)
Zigbee2MQTT:info 2023-09-24 11:39:42: Starting zigbee-herdsman (0.18.5)
Zigbee2MQTT:info 2023-09-24 11:39:45: zigbee-herdsman started (resumed)
Zigbee2MQTT:info 2023-09-24 11:39:45: Coordinator firmware version: '{"meta":{"maintrel":"3 ","majorrel":"6","minorrel":"10","product":8,"revision":"6.10.3.0 build 297"},"type":"EZSP v8"}'
Zigbee2MQTT:info 2023-09-24 11:39:45: Currently 0 devices are joined:
Zigbee2MQTT:info 2023-09-24 11:39:45: Zigbee: disabling joining new devices.
Zigbee2MQTT:info 2023-09-24 11:39:45: Connecting to MQTT server at mqtt://core-mosquitto:1883
Zigbee2MQTT:error 2023-09-24 11:39:45: MQTT error: Connection refused: Not authorized
Zigbee2MQTT:error 2023-09-24 11:39:45: MQTT failed to connect, exiting...
Zigbee2MQTT:info 2023-09-24 11:39:45: Stopping zigbee-herdsman...
Zigbee2MQTT:info 2023-09-24 11:39:46: Stopped zigbee-herdsman
Do you know what I did wrong?
I tried several other servers for the Zigbee2MQTT configuration:
server: mqtt://core-mosquitto:1883
server: mqtt://core-mosquitto
server: mqtt://192.168.1.28:1883
server: mqtt://192.168.1.28
But nothing, same error each time
MQTT is well running, and I see each login attempt:
2023-09-24 11:42:05: New connection from 172.30.32.1:42111 on port 1883.
2023-09-24 11:42:05: Client 6gJzxodADaXIBby9MlkTuP disconnected, not authorised.
2023-09-24 11:43:18: New connection from 172.30.32.2:39582 on port 1883.
2023-09-24 11:43:18: Client <unknown> closed its connection.
2023-09-24 11:44:06: New connection from 172.30.32.1:43235 on port 1883.
2023-09-24 11:44:06: Client 6gJzxodADaXIBby9MlkTuP disconnected, not authorised.
2023-09-24 11:45:18: New connection from 172.30.32.2:43006 on port 1883.
2023-09-24 11:45:18: Client <unknown> closed its connection.
2023-09-24 11:46:06: New connection from 172.30.32.1:45849 on port 1883.
2023-09-24 11:46:06: Client 6gJzxodADaXIBby9MlkTuP disconnected, not authorised.
2023-09-24 11:47:18: New connection from 172.30.32.2:60312 on port 1883.
Home Assistant 2023.9.2
Supervisor 2023.09.2
Operating System 10.5
Zigbee2MQTT 1.33.0-1
Mosquitto broker 6.3.1
Thanks for your help