sidoh / esp8266_milight_hub

Replacement for a Milight/LimitlessLED hub hosted on an ESP8266
MIT License
934 stars 220 forks source link

Sometimes NodeMCU not reachable over network #555

Open hutmitfrosch opened 4 years ago

hutmitfrosch commented 4 years ago

Hi there :-)

Sometimes (after some weeks), NodeMCU seems to lost its connection to MQTT (?). I am using HomeAssistant and its automatic MQTT bulb discovery by the given homeassistant topic. When happening, HomeAssistant states that the lights are not reachable. And of course, when pressing corresponding buttons at my wall, nothing happens (because HomeAssistant cannot forward that "command" to NodeMCU using MQTT).

Most of the times, the web interface still is reachable and if I throw arround some bulb commands over the air using the web interface, the device comes back to MQTT / HomeAssistant after a while. But sometimes, it seems I have to restart the whole device (taking away the power and reconnect it).

Could it bring improvement to change the hardware to D1 mini (which I use in other projects without problems, but honestly not tested it for weeks online time ...)?

Best, thanks for your support! JD

sidoh commented 4 years ago

Hello,

This would mean that the ESP8266 MQTT client has disconnected. It's retries the connection every 5 seconds or something like that, so it should come back on its own (and I've tested this pretty extensively, but only on my own network).

Serial logs would probably be helpful.