Skip to content

0.1.7

Choose a tag to compare

@dmoo500 dmoo500 released this 18 Apr 13:48

0.1.7

Bug Fix

Fix — negative energy spike on current day after HA restart

Version 0.1.6 improved the rewind offset calculation, but used UTC midnight of the rewind date as the query boundary. In CEST (UTC+2), EKZ data for a given local date starts at 22:00 UTC the previous day — so the 0.1.6 query ended 2 hours too early and missed the 22:00–23:00 UTC slot, causing the offset to be 22 hours of energy too low → a negative spike in the Energy Dashboard on the current day after restart.

Fix: the offset query now uses midnight CEST/CET of the rewind date (= from_date in local time converted to UTC), ensuring the offset is taken from the last DB entry immediately before the first re-imported statistic.

If you see a negative spike on today's data after restart: update to 0.1.7 and reload the integration (Settings → Integrations → EKZ → Reload). HA will overwrite the incorrect entries automatically.