Add an open window sensor for heating zones (#30090)
This commit is contained in:
parent
04b5d6c697
commit
84e1b3d07f
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,7 @@ ZONE_SENSORS = {
|
|||
"tado mode",
|
||||
"overlay",
|
||||
"early start",
|
||||
"open window",
|
||||
],
|
||||
TYPE_AIR_CONDITIONING: [
|
||||
"temperature",
|
||||
|
@ -240,3 +241,9 @@ class TadoSensor(Entity):
|
|||
self._state = True
|
||||
else:
|
||||
self._state = False
|
||||
|
||||
elif self.zone_variable == "open window":
|
||||
if "openWindowDetected" in data:
|
||||
self._state = data["openWindowDetected"]
|
||||
else:
|
||||
self._state = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue