am43 icon indicating copy to clipboard operation
am43 copied to clipboard

MQTT connect failed, rc=-2 retrying in 5s.

Open awaismun opened this issue 4 years ago • 1 comments

Hi,

Thanks for this setup.

For some reason my MQTT connection is failing. This is what the serial monitor is returning: 'MQTT connect failed, rc=-2 retrying in 5s.'

These are my settings:

// MQTT server details. #define MQTT_ADDRESS "192.168.0.88" #define MQTT_USERNAME "username" #define MQTT_PASSWORD "password"

I am not sure if the MQTT_ADDRESS is right. I am using Zigbee2Mqtt and this is what I use for MQTT connection:

server: 'mqtt://homeassistant'

I have tried to use this but not working.

awaismun avatar Oct 08 '20 21:10 awaismun

Perhaps using 'homeassistant.local' as the MQTT address will work. Else you may need to find out the actual IP address and specify that.

buxtronix avatar Feb 11 '21 23:02 buxtronix