I have been running Zigbee2MQTT
successfully for over a year now. I have been experimenting with ESPresense
lately and have been using MQTT Explorer
to determine both the device IDs and the topics to use in the creation of sensors. I’m running HA on an i86 box and both Mosquitto Broker and Zigbee2MQTT are installed through the UI. I am running MQTT Explorer in a Windows laptop.
This all worked well until yesterday. Suddenly Zigbee2MQTT was failing to start during boot. After some investigation, I realized that I had been using credentials in Zigbee2MQTT to log into Mosquitto Broker. Once I removed the credentials section in Zigbee2MQTT HA operated as expected.
But now I cannot log in using the credentials on MQTT Explorer.
This is my Mosquitto Broker configuration YAML:
logins:
- username: mqtt-user
password: mqtt-pwd
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:
active: false
folder: mosquitto
This is my Zigbee2MQTT configuration YAML:
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: {}
serial:
port: >-
/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0
zigbee_herdsman_debug: false
The MQTT integration is showing 120 devices connected.
All the Zigbee2MQTT devices and ESPresense nodes and sensors are visible within HA. Below is just a sample of the 120 devices visible in MQTT.
.
This is the log in screen from MQTT Explorer:
Just yesterday morning MQTT Explorer would display all the MQTT messages being received my HA within a second. Now I can wait for 5 minutes with no response, eventually clicking on the Abort button.
Obviously I left out the credentials in this attempt to log in. But I get the same response if I use the credentials specified in the Mosquitto Broker configuration.
Any ideas?
This is the log from Mosquitto Broke showing a login attempt from MQTT Explorer.
2024-01-10 07:09:33: New connection from 172.30.xxx.xxx:38433 on port 1883.
2024-01-10 07:09:33: New client connected from 172.30.xxx.xxx:38433 as 3Ud1MnwlS6XXwyrd9tSIBW (p2, c1, k60, u'mqtt-user').
2024-01-10 07:09:33: Client 3Ud1MnwlS6XXwyrd9tSIBW disconnected.
2024-01-10 07:10:52: New connection from 172.30.xxx.xxx:53776 on port 1883.
2024-01-10 07:10:52: Client <unknown> closed its connection.
2024-01-10 07:12:52: New connection from 172.30.xxx.xxx:42340 on port 1883.
2024-01-10 07:12:52: Client <unknown> closed its connection.
2024-01-10 07:14:52: New connection from 172.30.xxx.xxx:60700 on port 1883.
2024-01-10 07:14:52: Client <unknown> closed its connection.
2024-01-10 07:16:52: New connection from 172.30.xxx.xxx:51428 on port 1883.
2024-01-10 07:16:52: Client <unknown> closed its connection.
2024-01-10 07:18:52: New connection from 172.30.xxx.xxx:41682 on port 1883.
2024-01-10 07:18:52: Client <unknown> closed its connection.
2024-01-10 07:20:52: New connection from 172.30.xxx.xxx:36790 on port 1883.
2024-01-10 07:20:52: Client <unknown> closed its connection.