Skip to content

Commit 65c0fbb

Browse files
authored
Merge pull request #170 from plugwise/legacy_anna_heater_fix
Fix legacy_anna missing heater_id
2 parents 0b26826 + a2eb624 commit 65c0fbb

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changelog
22

3+
# v0.17.1 - Smile: bugfix for https://github.com/home-assistant/core/issues/68621
4+
35
# v0.17.0 - Smile: add more outputs
46
- Add regulation_mode and regulation_modes to gateway dict, add related set-function
57
- Add max_boiler_temperature to heater_central dict, add related set-function

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Plugwise module."""
22

3-
__version__ = "0.17.0"
3+
__version__ = "0.17.1"
44

55
from plugwise.smile import Smile
66
from plugwise.stick import Stick

plugwise/helper.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,17 @@ def _all_appliances(self) -> None:
621621
}
622622
)
623623

624-
# The presence of either indicates a local active device, e.g. heat-pump or gas-fired heater
624+
# Find the connected heating/cooling device (heater_central), e.g. heat-pump or gas-fired heater
625+
# Legacy Anna only:
626+
boiler_state = self._appliances.find(".//logs/point_log[type='boiler_state']")
627+
# Anna, Adam:
625628
c_heating_state = self._appliances.find(
626629
".//logs/point_log[type='central_heating_state']"
627630
)
628631
ot_fault_code = self._appliances.find(
629632
".//logs/point_log[type='open_therm_oem_fault_code']"
630633
)
631-
if c_heating_state is not None:
634+
if boiler_state is not None or c_heating_state is not None:
632635
self._opentherm_device = ot_fault_code is not None
633636
self._on_off_device = ot_fault_code is None
634637

0 commit comments

Comments
 (0)