fusterjj / HoneywellSecurityMQTT

MQTT integration of Honeywell/Ademco/2GIG wireless security sensors
Apache License 2.0
31 stars 9 forks source link

Immediate disconnected(7) after running /honeywell #8

Open ramgolams opened 5 years ago

ramgolams commented 5 years ago

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

fusterjj commented 5 years ago

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

ramgolams commented 5 years ago

I'm using mosquitto as well.

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

jlt24 commented 5 years ago

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

ramgolams commented 5 years ago

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

curt7000 commented 5 years ago

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 commented 5 years ago

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.

ramgolams commented 5 years ago

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

curt7000 commented 5 years ago

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