Skip to content

Commit

Permalink
Merge branch 'master' into CFenner-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner authored Nov 20, 2024
2 parents 2a396c7 + 68bb80b commit c7efec8
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 138 deletions.
12 changes: 12 additions & 0 deletions PyViCare/PyViCareVentilationDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,15 @@ def getSchedule(self):
"sat": properties["entries"]["value"]["sat"],
"sun": properties["entries"]["value"]["sun"]
}

@handleNotSupported
def getVentilationDemand(self) -> str:
return str(self.service.getProperty("ventilation.operating.state")["properties"]["demand"]["value"])

@handleNotSupported
def getVentilationLevel(self) -> str:
return str(self.service.getProperty("ventilation.operating.state")["properties"]["level"]["value"])

@handleNotSupported
def getVentilationReason(self) -> str:
return str(self.service.getProperty("ventilation.operating.state")["properties"]["reason"]["value"])
Loading

0 comments on commit c7efec8

Please sign in to comment.