Skip to content
Merged
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
7 changes: 7 additions & 0 deletions PyViCare/PyViCareDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ def getDomesticHotWaterStorageTemperature(self):
except KeyError:
return "error"

def getDomesticHotWaterPumpActive(self):
try:
status = self.service.getProperty("heating.dhw.pumps.primary")["properties"]["status"]["value"]
return status == 'on'
except KeyError:
return "error"

def getDomesticHotWaterMaxTemperature(self):
try:
return self.service.getProperty("heating.dhw.temperature")["actions"][0]["fields"][0]["max"]
Expand Down
14 changes: 13 additions & 1 deletion PyViCare/PyViCareHeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,16 @@ def getReturnTemperature(self):
try:
return self.service.getProperty("heating.sensors.temperature.return")["properties"]["value"]["value"]
except KeyError:
return "error"
return "error"

def getCompressorStarts(self):
try:
return self.service.getProperty("heating.compressor.statistics")["properties"]["starts"]["value"]
except KeyError:
return "error"

def getCompressorHours(self):
try:
return self.service.getProperty("heating.compressor.statistics")["properties"]["hours"]["value"]
except KeyError:
return "error"