mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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",
|
"tado mode",
|
||||||
"overlay",
|
"overlay",
|
||||||
"early start",
|
"early start",
|
||||||
|
"open window",
|
||||||
],
|
],
|
||||||
TYPE_AIR_CONDITIONING: [
|
TYPE_AIR_CONDITIONING: [
|
||||||
"temperature",
|
"temperature",
|
||||||
@ -240,3 +241,9 @@ class TadoSensor(Entity):
|
|||||||
self._state = True
|
self._state = True
|
||||||
else:
|
else:
|
||||||
self._state = False
|
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