Skip to content

0.0.13b4 (beta)

Pre-release
Pre-release

Choose a tag to compare

@dmoo500 dmoo500 released this 06 Apr 15:38

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:

  1. Developer Tools → Statistics → select sensor.electricity_consumption_ekz_{id} and sensor.electricity_production_ekz_{id}Clear data
  2. 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.