github Xunil99/ha-bosch-ebike v1.2.1
v1.2.1 — Persist battery consumption state

latest releases: v1.19.35b1, v1.19.34, v1.19.33...
3 months ago

Bugfix

Last Ride Battery sensors stayed on "Unknown" after HA restart.

Previously, the state used to compute battery consumption (_prev_delivered_wh, _prev_activity_ids, _activity_consumption) was kept only in memory. After any Home Assistant restart or integration reload (including HACS updates), it was lost and the Last Ride Battery sensors stayed on "Unknown" until a new ride AND a Wh delta coincided in the same poll.

The state is now persisted via HA's Store helper (`.storage/ha_bosch_ebike_consumption_state`) and restored at startup. Sensors keep their values across restarts and resume tracking immediately.

Installation

Update via HACS, restart Home Assistant. No configuration changes required.

Don't miss a new ha-bosch-ebike release

NewReleases is sending notifications on new releases.