We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d06304e commit 0432c6aCopy full SHA for 0432c6a
1 file changed
plugwise/helper.py
@@ -482,8 +482,13 @@ def _get_toggle_state(
482
if xml.find("type").text == "heater_central":
483
locator = f"./actuator_functionalities/toggle_functionality[type='{toggle}']/state"
484
if (state := xml.find(locator)) is not None:
485
- data["switches"][name] = state.text == "on"
486
- self._count += 1
+ match toggle:
+ case "cooling_ena_switch":
487
+ data["switches"][name] = state.text == "on"
488
+ self._count += 1
489
+ case "dhw_cm_switch":
490
+ self._dhw_allowed_modes = ["comfort", "off"]
491
+ self.select_dhw_mode = "comfort" if state.text == "on" else "off"
492
493
def _get_plugwise_notifications(self) -> None:
494
"""Collect the Plugwise notifications."""
0 commit comments