Skip to content

0.1.10 - Multiple fixes and a Breaking change

Choose a tag to compare

@buggedcom buggedcom released this 20 Apr 15:38

fix: resolve HA log errors — profits 401, duplicate sensor IDs, mean_type warning

BREAKING CHANGE: Energy meter current sensors on port 108/0 have been renamed.
The three sensors previously registered as sensor.enion_grid_current_l1/l2/l3
(a duplicate of the grid-meter sensors on port 107/1) are now registered as
sensor.enion_energy_meter_current_l1/l2/l3. Any automations, dashboards, or
history entries referencing the old entity IDs must be updated. The old orphaned
entity registry entries can be removed via Settings → Devices & Services → Entities.

  • fix: re-login before hourly profits fetch so the Bearer JWT is never stale
    (WS token expires after ~15 min; profits scheduler runs every 60 min → 401)
  • fix: round profits request timestamps to the top of the hour as required by API
  • fix: pass StatisticMeanType.NONE to async_add_external_statistics to suppress
    HA 2026.11 deprecation warning; falls back gracefully on older cores
  • fix: rename 108/0 current sensor keys from enion_grid_current_l* to
    enion_energy_meter_current_l* to eliminate duplicate unique-ID errors