Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
awaismun opened this issue Oct 8, 2020 · 1 comment
Open

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

awaismun opened this issue Oct 8, 2020 · 1 comment

Comments

@awaismun
Copy link

awaismun commented Oct 8, 2020

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.

@buxtronix
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants