Skip to content

Commit 7cc5b2a

Browse files
committed
Update cooling_state according to plugwise spec
1 parent 19cab15 commit 7cc5b2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugwise/helper.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,12 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
861861
self.anna_cooling_enabled = data["cooling_enabled"]
862862
data.pop("cooling_enabled", None)
863863

864+
# Create updated cooling_state based on cooling_state = on and modulation = 1.0
865+
if "cooling_state" in data:
866+
data["cooling_state"] = data["cooling_state"] and data[
867+
"modulation_level"
868+
] == float(1)
869+
864870
return data
865871

866872
def _rank_thermostat(

0 commit comments

Comments
 (0)