diff --git a/PyViCare/PyViCareHeatingDevice.py b/PyViCare/PyViCareHeatingDevice.py index d4219418..6f77a4de 100644 --- a/PyViCare/PyViCareHeatingDevice.py +++ b/PyViCare/PyViCareHeatingDevice.py @@ -588,6 +588,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"][ diff --git a/tests/test_Vitocal111S.py b/tests/test_Vitocal111S.py index 8d05c482..a6f2a2c9 100644 --- a/tests/test_Vitocal111S.py +++ b/tests/test_Vitocal111S.py @@ -32,3 +32,6 @@ def test_ventilationQuickmodes(self): "eco", "holiday", ]) + + def test_cooling_active(self): + self.assertEqual(self.device.circuits[0].getCoolingActive(), False)