Skip to content

0.1.3

Choose a tag to compare

@dmoo500 dmoo500 released this 17 Apr 15:17
4dc172d

0.1.3

⚠️ Important: Re-import required

A mistake was introduced in version 0.1.2 while implementing the pending day lookback feature. That change accidentally caused 15-min slot data to be imported as one daily entry per day instead of individual 15-min statistics. This means users on 0.1.2 or 0.1.3b1 have incorrect (daily) entries in their HA history for the affected period.

What to do: Use the built-in Reset Statistics action to clear all EKZ statistics and trigger a full re-import:

Home Assistant → Developer Tools → Actions → ekz_ha.reset_statistics → Perform action

This will delete all existing EKZ statistics and restart the import from your contract start date on the next poll.


Bug Fixes

Fix 1 — HT tariff was silently dropped (consumption underreported by ~50%)
The EKZ API returns NT and HT tariff values as separate entries sharing the same timestamp. The previous deduplication kept only NT, discarding HT entirely. NT and HT values are now correctly summed per slot.

Fix 2 — 15-min granularity restored
QUARTER_HOUR data (PK_VERB_15MIN) is no longer aggregated to a single daily entry. Each 15-min slot is written as an individual statistic entry in Home Assistant, as originally intended. DAY-level data (PK_VERB_TAG_METER) still produces one entry per calendar day.

Fix 3 — Infinite pending-day lookback loop (from 0.1.3b1)
Incomplete days older than 14 days are accepted as permanent and no longer trigger a lookback re-fetch. Only days within the last 14 days (the EKZ back-fill window) are re-checked on the next polling cycle.