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 @@ -162,6 +162,10 @@ def getDomesticHotWaterMinTemperature(self):
def getDomesticHotWaterChargingActive(self):
return self.getProperty("heating.dhw.charging")["properties"]["active"]["value"]

@handleNotSupported
def getDomesticHotWaterOperatingMode(self):
return self.service.getProperty("heating.dhw.operating.modes.active")["properties"]["value"]["value"]

Comment on lines +165 to +168
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should update the getDomesticHotWaterActiveMode function.

@handleAPICommandErrors
def setDomesticHotWaterTemperature(self, temperature):
""" Set the target temperature for domestic host water
Expand Down
1 change: 0 additions & 1 deletion tests/test_TestForMissingProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def test_missingProperties(self):
'heating.dhw.hygiene.trigger',
'heating.dhw.temperature.hygiene',
'heating.dhw.operating.modes.off',
'heating.dhw.operating.modes.active',
'heating.dhw.operating.modes.comfort',
'heating.dhw.operating.modes.eco',
'heating.circuits.0.heating.roomInfluenceFactor',
Expand Down
3 changes: 3 additions & 0 deletions tests/test_Vitodens200W_B2HF.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ def test_getSupplyPressure(self):

def test_getSupplyPressureUnit(self):
self.assertEqual(self.device.getSupplyPressureUnit(), 'bar')

def test_getDomesticHotWaterOperatingMode(self):
self.assertEqual(self.device.getDomesticHotWaterOperatingMode(), "balanced")