Error connecting to MQTT broker

Hi,

Since a couple of days I get spontaneous errors in the logs stating connection errors to the MQTT broker. I've not seen these errors before. I was thinking about a synchronisation problem, so I rebooted both the HE and MQTT/Domoticz boxes. This disconnect in the logfile was due to my reboot. Reboots doesn't solve the problem ie. errors.

My broker is installed on 192.168.132.31:1883 (on the same machine as Domoticz/Nodered are running).

I use the drivers from parasaurolophus the "MQTT Connection" and "MQTT Handler".

Is there someone who can help me with this issue?

I don't use those packages but my guess is the problem lies at 192.168.132.31 - not Hubitat. You need to check the logs for you mqtt broker - I suspect it's rejecting requests. Lot's of potential reasons why - start with the logs.

1 Like

Make sure your MQTT server (mosquitto?) is actually running at the other end (192.168.132.31). The Hubitat logs indicate it either isn't running or isn't accepting connections.

Thanks for your help. I've been checking the Raspberry. The MQTT broker is running but still getting the errors in HE. Strangely commands through MQTT are running without any problem although in the HE log there are errors. MQTT works from HE over Nodered into Domoticz and vice versa.

I've reinstalled the MQTT device in HE, reinstalled the MQTT package in the Raspberry. Still the same errors.

Later this week I'll configure a brand new Raspberry with Domoticz and MQTT. Just to see if there is a corruption somewhere in my current used Domoticz server.

Keep you posted.

I think this is an MQTT broker issue ...

Just out of interest you're not using duplicate clientID's are you ?

Or have any restriction on the same username /password being used simultaneously ?

Maybe @parasaurolophus ??

@kevin thanks for pointing me towards the duplications.

Finally I’ve found out that there were a couple of issues. The MQTT broker on the Domoticz server was niet running after a reboot. In my Nodered accidentically pointed towards a test system and to the Hubitat.

After correcting these issues I had to remove the mosquitto device in HE. After re-installation of the device now my logs are clean and everything is working ok.

2 Likes