HoneywellSecurityMQTT icon indicating copy to clipboard operation
HoneywellSecurityMQTT copied to clipboard

Immediate disconnected(7) after running /honeywell

Open ramgolams opened this issue 6 years ago • 8 comments

As soon as I run honeywell it shows a disconnect mqtt message. I tried running with and without a username and password and it's the same problem. I've tested my mqtt broker with another client and there are no issues there.

image

ramgolams avatar Feb 26 '19 17:02 ramgolams

What broker are you using? I've almost exclusively used Mosquitto. Does it support MQTT v3.1.1?

fusterjj avatar Mar 12 '19 00:03 fusterjj

I'm using mosquitto as well.

https://www.home-assistant.io/addons/mosquitto/

ramgolams avatar Mar 13 '19 14:03 ramgolams

I have this same problem. Did you find a solution? NM - it was a problem with my mqtt_congif.h

jlt24 avatar Apr 09 '19 00:04 jlt24

I never found a solution. How did you fix it?

ramgolams avatar Apr 10 '19 22:04 ramgolams

Encountering the same problem. Does anyone know how to resolve this? Running Mosquitto w/ MQTT Ver. 3.1.1 and credentials are confirmed working with other applications.

curt7000 avatar Sep 10 '19 14:09 curt7000

I never found a solution. How did you fix it?

Figured it out!

If your MQTT Broker requires username/password authentication, add the reference line below to your mqtt_config.h file, in Line 2, of the mqtt.cpp file, then rebuild.

#include "mqtt_config.h"

Step #1 - nano mqtt.cpp Step #2 - Add to Line 2, #include "mqtt_config.h" Step #3 - Rebuild using the command, ./build.sh

You should then be able to immediately connect to your MQTT Broker with username/password authentication.

curt7000 avatar Sep 11 '19 20:09 curt7000

Do you need to do this even if using anonymous auth?

ramgolams avatar Sep 11 '19 22:09 ramgolams

No. This is only if your MQTT Broker requires username/password.

curt7000 avatar Sep 11 '19 23:09 curt7000