ksheumaker / homeassistant-apsystems_ecur

Home Assistant custom component for local querying of APSystems ECU-R Solar System
Apache License 2.0
178 stars 43 forks source link

Detect 0 lifetime #32

Closed ksheumaker closed 2 years ago

ksheumaker commented 2 years ago

Attempt to fix #16 problems with ECU_R_PRO by adding additional waits when closing sockets, and sleep for 1 second to help the ECU not get "overloaded"

Attempt to fix #31 by detecting lifetime_energy = 0 and throwing an exception, which should cause integration to pull from it's last cached value instead of sending a 0 through to home assistant and screwing up the graph/calculations.