0.1.10
0.1.10
New Features
- 4-hour poll interval (was 24h) — new EKZ data appears in HA within a few hours instead of waiting until the next day
- New sensor: EKZ Next Sync — shows the timestamp of the next scheduled data fetch (device class: timestamp, visible in HA dashboard)
Bug Fix
Fix — DAY-level fallback corrupts recent hourly statistics on session error
When the EKZ session expired mid-cycle, the 15-min API returned 0 values. The code then fell back to PK_VERB_TAG_METER (day-level), which returned a single daily entry at midnight UTC. This overwrote an existing hourly slot → spike at start of day and negative spike shortly after.
Fix: the DAY-level fallback is now only used for periods older than 30 days (genuine historical data without 15-min granularity). For recent periods, an empty 15-min response is treated as a transient session error and the import is skipped — the next poll cycle will retry with a fresh session.
To fix corrupted data: reload the integration (Settings → Integrations → EKZ → Reload).