github PeterH24x7/-Solar-Analytics-integration-for-Home-Assistant-Energy-monitoring v10
Release 10 - major internal overhaul, but externally unchanged behaviour

9 days ago

Release 10 notes:

  • Migrated to modern template sensor patterns for future HA compatibility.
  • Fixed generation allocation logic to suppress negative xx_energy_last5min
    generation attributes, ensuring physically valid solar contribution and more
    accurate cost attribution.
  • Enhanced history sensors to mask invalid periods (all-zero/none data) by
    persisting and reusing the last valid value, improving continuity and visual
    accuracy of energy trends
  • Added change-guard logic to prevent unnecessary and repeated state updates.
  • Improved reset detection with large drop threshold (old - new > RESET_THRESHOLD)
    check. Ensures reliable midnight resets for continuous-load systems while
    ignoring small drift/rounding noise.
  • Added numeric-safe fallback handling to ensure valid sensor states during
    startup.
  • Eliminated template loops using this.state and state-preserving update logic
    for non-raw energy (e.g. sa_todays_...) and power (e.g. sa_consumed_power)
    sensors.
  • Introduced monotonic decrease protection for derived total_increasing sensors
    (import/export/battery splits) to prevent small decreases caused by rounding, unit
    conversion (Wh ↔ kWh) and calculation drift.
  • Improved overall data validation, stability and resilience across all sensors.
  • Maintained full backward compatibility of entity names, outputs and dashboards.

If you find my work useful, please buy me a coffee ... thank you! https://www.buymeacoffee.com/peter24x7

Don't miss a new -Solar-Analytics-integration-for-Home-Assistant-Energy-monitoring release

NewReleases is sending notifications on new releases.