Skip to content

Commit 2bc7697

Browse files
committed
Base heating_state on intended_boiler_temperature
1 parent 306a59a commit 2bc7697

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plugwise/helper.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -974,11 +974,12 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
974974
if self._elga or (
975975
self.smile_name in ("Adam", "Smile Anna") and self._on_off_device
976976
):
977-
data["heating_state"] = data["c_heating_state"]
978-
# For Adam + OnOff cooling, central_heating_state = True means cooling is active
979-
# For Smile Anna, _cooling_active will be corrected in the next if-construc
980-
if self._cooling_present:
981-
self._cooling_active = True
977+
if data["intended_boiler_temperature"] != 0:
978+
data["heating_state"] = data["c_heating_state"]
979+
# For Adam + OnOff cooling, central_heating_state = True means cooling is active
980+
# For Smile Anna, _cooling_active will be corrected in the next if-construc
981+
if self._cooling_present:
982+
self._cooling_active = True
982983

983984
# Finally, remove c_heating_state from the output
984985
data.pop("c_heating_state")

0 commit comments

Comments
 (0)