0.0.13b4 (beta)
Pre-release
Pre-release
Beta 4 — fix timestamps 1h off
What was fixed
All statistics stored 1 hour too early (or 2h in summer)
The EKZ API's numeric timestamp field (e.g. 20260323091500) is UTC. The human-readable time field is Zürich-local. The code was calling .replace(tzinfo=ZRH) which treated the UTC value as Zürich time, causing every hourly statistic to be stored one hour too early in the HA statistics DB.
Fix: .replace(tzinfo=UTC) in both the consumption and production importers.
⚠️ Action required after update: Because the existing statistics have wrong timestamps, delete and re-import:
- Developer Tools → Statistics → select
sensor.electricity_consumption_ekz_{id}andsensor.electricity_production_ekz_{id}→ Clear data- Restart HA — the integration will re-import from contract start automatically.
(A dedicated reset action is coming in b5 to make this easier.)
How to update
In HACS enable Show beta versions and update to 0.0.13b4.