Skip to content

v4.3.5 - LAB-verified spike fix

Choose a tag to compare

@ergo5 ergo5 released this 28 Jan 13:10

Critical Fix

This release is a complete sync of LAB-verified code that has been running without Energy Dashboard spikes for ~48 hours.

Root Cause (v4.3.4 bug)

\EnergaStatisticsSensor\ had \state_class=TOTAL_INCREASING\, causing Home Assistant Recorder to auto-create statistics from \
ative_value\. This generated massive spikes on Energy Dashboard.

Fix Applied

  • Removed \state_class\ from \EnergaStatisticsSensor\ - prevents HA auto-aggregation
  • \
    ative_value\ now returns \None\
    - statistics are imported manually only via \�sync_import_statistics\
  • Removed unused \statistics_builder.py\

Migration from v4.3.4

After updating to v4.3.5, you may need to:

  1. Clear statistics for \sensor.xxx_panel_energia_zuzycie\ and \sensor.xxx_panel_energia_produkcja\
  2. Call service \energa_mobile.fetch_history\ to reimport clean data

Verification

This code was verified on LAB environment for 48+ hours with no spikes.