-
Notifications
You must be signed in to change notification settings - Fork 37
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
home assistant problem #80
Comments
the same here. This problem is from i remeber I had version 6.6 and problem was too. |
Can you please recheck with version 7.0. My guess is that the discovery topics missed the retained flag, which should be fixed in 7.0. |
have 7.0 will write here after some days if problem exist still |
still the same with v7 |
I'm not really sure what would cause this. As a workaround you could automatically restart the ESP whenever home assistants starts up. There's an MQTT node to trigger the restart (maintenance/reset) |
What broker are you using? I haven't seen this with Mosquitto. |
I am using mosquitto |
Ah yes, I can confirm the issue when the host is restarted, even with EMQX. I'm assuming it is because the MQTT broker runs on the same machine (at least in my case). The discovery messages appear to have the retained flag (but perhaps not all?). Note to @technyon: That was with the |
Any option to fix that on the Nuki Hub side? Some kind of automatic restart? |
I'm neither sure exactly why this doesn't nor how I should detect if HA has restarted. If someone can enlighten me, I can do something about it. Do the autodiscovery topics need to be republished after HA has started? This should be handled by the retained already. And if so, how can a restart be detected? |
The problem occurs when the broker is restarted. It's possible this is an issue with persistence (broker configuration), but my other MQTT client with HA auto-discovery does not have this problem, so it must do something differently. I'll try to look into the differences between the two. |
What do you think about publishing the autodiscovery topics again after reconnect? |
Mhm, I experimented a bit, but actually the discovery topics seem to be fine. The ESP however entered into an automatic reboot loop after a broker restart, connecting and disconnecting from the broker again and again, toggling availability in HA. There might be a bug in the MQTT reconnect handling? Edit: Unplugging/replugging the ESP from its power source fixed the loop. |
Currently I can't unfortunately. |
Hey. Sorry for opening an old issue. But I still get this Issue to date. Pretty much it works when I start the nuki hub after I start Homeassistant. When I restart Homeassistant it shows as unavailable until I restart the Nuki hub. Then it works again. |
if I restart the home assistant computer home assistant does not see the nuki esp unless I restart the esp bridge?
I dont have to restart my other mqttt stuff.
The text was updated successfully, but these errors were encountered: