Skip to content

Commit

Permalink
Add properties for heatingrod
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyfx1 committed Sep 30, 2020
1 parent 93516e3 commit 591aa19
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions PyViCare/PyViCareHeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,27 @@ def getReturnTemperaturePrimaryCircuit(self):
return self.service.getProperty("heating.primaryCircuit.sensors.temperature.return")["properties"]["value"]["value"]
except KeyError:
return "error"

def getHeatingRodStatusOverall(self):
try:
return self.service.getProperty("heating.heatingRod.status")["properties"]["overall"]["value"]
except KeyError:
return "error"

def getHeatingRodStatusLevel1(self):
try:
return self.service.getProperty("heating.heatingRod.status")["properties"]["level1"]["value"]
except KeyError:
return "error"

def getHeatingRodStatusLevel2(self):
try:
return self.service.getProperty("heating.heatingRod.status")["properties"]["level2"]["value"]
except KeyError:
return "error"

def getHeatingRodStatusLevel3(self):
try:
return self.service.getProperty("heating.heatingRod.status")["properties"]["level3"]["value"]
except KeyError:
return "error"

0 comments on commit 591aa19

Please sign in to comment.