v1.0.1
v1.0.1
Bug fix
Fixed: daily values missing after v1.0.0 update (#216)
The v0.9.10 fix for #215 (first energy delta swallowed after reset) inadvertently broke users whose source energy sensor also resets periodically (e.g. daily energy sensors going back to zero at midnight). This caused missing or incorrect daily cost values.
Root cause: The energy baseline was preserved across cost resets, so when the source sensor reset to zero, the integration calculated a large negative delta instead of re-initialising the baseline.
Fix: The energy baseline is now cleared on cost reset. The first reading after reset sets a fresh baseline, and the second reading produces the correct cost. Source sensor resets to zero are detected and handled gracefully. Feed-in / negative energy deltas remain fully supported.
Upgrade notes
Update and restart Home Assistant. Daily cost values will resume tracking correctly from the next period.