kellerza / sunsynk

Deye/Sunsynk Inverter Python library and Home Assistant OS Addon
https://kellerza.github.io/sunsynk/
MIT License
221 stars 92 forks source link

ESP32 requires reset if Wifi intermittent #345

Closed kcin-devil closed 3 weeks ago

kcin-devil commented 1 month ago

Issue related to

Sunsynk / mbusd Home Assistant Add-On

Describe the issue/bug

Is there a way to verify the Wifi is connected, and if not either reset the ESP32 or re-initiate the setup loop? I had the ESP32 connected via the 12V outputs on the Inverter, but if for instance it looses connection to the WiFi for whatever reason, I need to reset the ESP32 for it to connect back to WiFi. As a work around I have the ESP32 powered via USB, plugged into a smart plug, if SOC becomes in a state unknown, I power cycle the smart plug, but I would prefer for it to only be connected via the Inverter power supply.

Expected behavior Reset Wifi if disconnected

Your environment

You configuration


paste config in the block surrounded by 3x backticks

Logs


paste logs in 3x backticks...
kellerza commented 1 month ago

Try the cabled solution :wink:

Can you post your addon config?