Open test2a opened 5 months ago
Your observation is correct: If the api
connection to the ESP gets lost the ESPHome integration of Home Assistant changes all sensor states of the node to unavailable
. If the connection recovers a few seconds later the ESP cannot provide/push new measurements because the inverter doesn't provide any data (as long its unavailable).
[23:35:18][W][component:214]: Component esphome.coroutine took a long time for an operation (0.08 s). [23:35:18][W][component:215]: Components should block for at most 20-30ms.
the setup is working fine. i do not know why it happens but every often the esphome reports "unknown" but i am not sure if its always because the inverter is off or because of range issues.
anyway, the problem is, most of the time when inverter is turned off because grid power goes out, esphome reports "unknown" and not off. same for all entities (52 for me)
i can go to reimann integration and create a new entity to convert unknown into 0 value for example but what if the esphome does that?
also, can it be that esp is loosing wifi connection? maybe that can be a problem? is there a way to detect that because sometimes the logs say apiconnection error, so what can be the reason or reasons?
and now grid is back on
also, what does coroutine took a long time for operation mean?