bruxy70 / Home-Assistant-ESPHome-Weather-Station

Nextion display with ESP8266 microcontroller (Wemos D1 mini) showing Home Assistant temperature sensors and weather forecast
MIT License
171 stars 30 forks source link

nextion display is not working after network disconnect #12

Closed asafmatan closed 2 years ago

asafmatan commented 2 years ago

Hello there.

I have cloned your project successfully with all the hmi/code uptodate changes with esphome 2021.11.1 and nov home assistant as well.

The phenomena I'm facing is that after a sudden network disconnect esphome is able to connect again to the nodemcu but it seems that display lambda loop is not running anymore.

INFO nextion_test.local: Ping timed out! INFO Disconnected from ESPHome API for nextion_test.local WARNING Disconnected from API INFO Successfully connected to nextion_test.local [17:45:55][D][sntp:075]: Synchronized time: 2021-11-28 17:45:55 [17:45:56][D][api:098]: Accepted 192.168.86.80 [17:45:56][D][api.connection:747]: Home Assistant 2021.11.5 (192.168.86.80): Connected successfully [17:45:56][D][homeassistant.sensor:024]: 'sensor.temperature_158d00022266cc': Got state 23.20 [17:45:57][D][sensor:113]: 'temperature_outside': Sending state 23.20000 with 1 decimals of accuracy

Is this phenomena familiar to you? can you tell how to restart both nextion and esp processor in case of network reconnect and get back to the display loop?

Regards Asaf

bruxy70 commented 2 years ago

No, it does not happen this any of my ESPHome devices. I'd check on the ESPHome discord if it ever happened to anyone.