Repository navigation
V2.8.4
Bug Fixes
Sub-device sensors (hp1_, hc1_, boil1_, buff1_, sol1_*, …) failed to load after updating Home Assistant Core 2026.9.0.
logged as Error adding entity sensor._hp1_hot_water_energy_monthly for domain sensor with platform lambda_heat_pumps with a RuntimeError: ... calls device_registry.async_get_or_create with a deprecated via_device parameter; use via_device_id instead underneath: recent Home Assistant versions removed the old via_device field (an identifiers tuple) from DeviceInfo in favor of via_device_id (a resolved device id), and now raise a hard RuntimeError instead of just logging a warning when core itself performs the device registration for an entity that still supplies the removed field (see the Home Assistant developer blog). build_subdevice_info() (utils.py) set "via_device": main_identifier for every HP/Boiler/HC/Buffer/Solar sub-device, so on an affected Home Assistant version every sub-device entity failed async_add_entities() — only the main-device sensors kept working. The function now accepts the entity's hass and resolves the already-registered main device's id via the device registry, setting via_device_id instead; if the main device can't (yet) be resolved, the key is simply omitted rather than passing the removed field, so entity creation can no longer fail because of it — worst case the sub-device just isn't nested under the main device visually until Home Assistant re-evaluates device_info on a later run. All call sites in sensor.py, climate.py, number.py and template_sensor.py now pass self.hass through.
cycle_energy_persist.json could silently regress an energy sensor's cumulative value back down after a restart — most visibly as Energy sensor : Persist last_hour_value (X) > energy_value (0.00), correct to energy_value in the log for _hourly sensors, but for _total sensors (and the _total-period COP sensors that read from them) the same regression happened without any warning at all, since ENERGY_PERIOD_CONFIG doesn't cover the total period. _apply_persisted_energy_state() (sensor.py) unconditionally trusted whatever energy_value was in the coordinator's own cycle_energy_persist.json snapshot, overwriting the value restore_state() had just correctly restored from Home Assistant's own Recorder-based history. That snapshot is only refreshed when some entity's dirty flag triggers a persist write, so an entity that spent time failing to be added to Home Assistant (e.g. every sub-device sensor during the via_device outage above, in any session before that fix) never ran set_energy_value() and kept the JSON frozen at its constructor default of 0.0 — regressing the real value back to 0.0 on the next successful restart. Confirmed live on a running installation via the Home Assistant MCP server: a _total sensor correctly restored to 2518.51 kWh from Recorder history was silently reset to 0.0 by this exact path, cascading into the corresponding _total-period COP sensor also dropping to 0.0. _apply_persisted_energy_state() now discards the entire persisted snapshot (not just energy_value) whenever it is lower than the value already restored — energy_value is a monotonically increasing cumulative counter everywhere in this integration (see set_energy_value()'s existing "never decrease" guard), and that invariant now holds during restore too, for every period.
Full Changelog: V2.8.3...V2.8.4