Skip to content

0.1.6

Choose a tag to compare

@dmoo500 dmoo500 released this 18 Apr 13:35

0.1.6

Bug Fix

Fix — energy spikes after HA restart (regression from 0.1.5)
Version 0.1.5 introduced a 1-day rewind on restart to re-fetch the last (potentially partial) day. However, the running_sum_offset was still taken from the last DB entry (end of the rewound day), causing all re-imported statistics for that day to use the wrong offset — producing large spikes in the Energy Dashboard.

Fix: the sum offset is now read from the last statistic entry before the rewind date, so the re-imported day starts with the correct cumulative value.

If you updated to 0.1.5 and see a spike on the last 1-2 days: update to 0.1.6 and reload the integration (Settings → Integrations → EKZ → Reload). HA will overwrite the incorrect entries automatically — no reset_statistics needed.