v0.9.8
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
quarterlyreset behavior is shown as15-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_resetmetadata to cost sensors - change
PowerCostSensor.state_classtoTOTALso 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
Wsensor 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.jsonversion is0.9.8and matches this release tagPowerCostSensor.state_classchanged fromMEASUREMENTtoTOTAL; this should improve statistics semantics, but it may slightly change how Home Assistant interprets existing recorder/statistics history for those entities