Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PyViCare/PyViCareHeatingDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ def getActiveMode(self):
self.getProperty(f"heating.circuits.{self.circuit}.operating.modes.active")["properties"]["value"][
"value"]

@handleNotSupported
def getCoolingActive(self):
return self.getProperty(f"heating.circuits.{self.circuit}.operating.modes.cooling")["properties"]["active"]["value"]

@handleNotSupported
def getHeatingCurveShift(self):
return self.getProperty(f"heating.circuits.{self.circuit}.heating.curve")["properties"]["shift"][
Expand Down
3 changes: 3 additions & 0 deletions tests/test_Vitocal111S.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ def test_ventilationQuickmodes(self):
"eco",
"holiday",
])

def test_cooling_active(self):
self.assertEqual(self.device.circuits[0].getCoolingActive(), False)
Loading