Skip to content

v0.9.8

Choose a tag to compare

@martinarva martinarva released this 21 Mar 10:36

0.9.8 Improvements and stability updates

This release continues the stabilization work and improves statistics compatibility, power-based cost calculation reliability, and interval naming clarity.

Included

  • clarify the quarter-hour interval naming in sensor labels so the old quarterly reset behavior is shown as 15-Minute Energy Cost
  • improve power-based cost calculation accuracy by integrating elapsed time using the previous realtime cost rate, making restart/restore handling safer, and keeping more internal precision for low-load scenarios
  • add last_reset metadata to cost sensors
  • change PowerCostSensor.state_class to TOTAL so interval cost sensors better match Home Assistant statistics semantics

Why this matters

  • power-based (W) tracking is now more resistant to spikes and restart-related jumps, especially for sparse updates and low loads
  • cost sensors provide better metadata for statistics consumers and cards that rely on reset-aware totals
  • quarter-hour sensors are now named more clearly without changing their existing 15-minute behavior

Recommendation

  • if you have a cumulative energy (kWh) sensor, prefer that over a power (W) sensor
  • the W sensor path remains supported, but it is still an approximation that depends on reporting cadence and source sensor quality

Validation

  • ruff check .
  • ruff format --check .
  • pytest

Notes

  • manifest.json version is 0.9.8 and matches this release tag
  • PowerCostSensor.state_class changed from MEASUREMENT to TOTAL; this should improve statistics semantics, but it may slightly change how Home Assistant interprets existing recorder/statistics history for those entities