Skip to content

Commit

Permalink
Add ability to set DHW operating mode (#319)
Browse files Browse the repository at this point in the history
* feat(dhw Operating Mode): Add ability to set dhw operating mode to eco, comfort, off

* fix(dhw Operating Mode): rename

---------

Co-authored-by: Pavel <[email protected]>
  • Loading branch information
pavelsidla and Pavel authored Jun 8, 2023
1 parent e1e0c48 commit 8ba4114
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PyViCare/PyViCareHeatingDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ def setDomesticHotWaterTemperature2(self, temperature):
return self.service.setProperty("heating.dhw.temperature.temp2", "setTargetTemperature",
{"temperature": int(temperature)})

@handleAPICommandErrors
def setDomesticHotWaterOperatingMode(self, mode):
return self.service.setProperty("heating.dhw.operating.modes.active", "setMode",
{'mode': mode})

@handleNotSupported
def getDomesticHotWaterSchedule(self):
properties = self.service.getProperty(
Expand Down

0 comments on commit 8ba4114

Please sign in to comment.