mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add an open window sensor for heating zones (#30090)
This commit is contained in:
parent
04b5d6c697
commit
84e1b3d07f
@ -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…
x
Reference in New Issue
Block a user