-
Notifications
You must be signed in to change notification settings - Fork 3
/
Update: Window open HAVC off
137 lines (132 loc) · 4.32 KB
/
Update: Window open HAVC off
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
blueprint:
name: "Window open, climate off after a defined time"
description: "Climate device like heating and cooling devices (if active) are turned off and go back to the previous set stage after the windows is closed again. Now it supports several heating modes and different vendors like Tado. The supported HAVC modes are: automatic, auto, heat, heat_cool and off. If you need more please let me know. Happy automating!"
domain: automation
input:
window_entity:
name: Window Sensor
description: The window sensor that controls the climate entity. If you have more window sensors please make a group sensor.
selector:
entity:
domain: binary_sensor
device_class: window
minimum_open_time:
name: Miniumum open time
description: Time in seconds to wait until the automation is triggered
default: 12
selector:
number:
min: 0.0
max: 120.0
unit_of_measurement: seconds
mode: slider
step: 1.0
climate_target:
name: Climate Device
description: The climate entity that is controlled by the window sensor.
selector:
entity:
domain: climate
trigger:
- platform: state
entity_id: !input "window_entity"
to: "on"
for: !input "minimum_open_time"
condition:
- condition: not
conditions:
- condition: state
entity_id: !input "climate_target"
state: "off"
action:
- choose:
- conditions:
- condition: state
entity_id: !input "climate_target"
state: cool
sequence:
- service: climate.turn_off
target:
entity_id: !input "climate_target"
- wait_for_trigger:
- platform: state
entity_id: !input "window_entity"
to: "off"
continue_on_timeout: false
- service: climate.set_hvac_mode
target:
entity_id: !input "climate_target"
data:
hvac_mode: cool
- conditions:
- condition: state
entity_id: !input "climate_target"
state: heat_cool
sequence:
- service: climate.turn_off
target:
entity_id: !input "climate_target"
- wait_for_trigger:
- platform: state
entity_id: !input "window_entity"
to: "off"
continue_on_timeout: false
- service: climate.set_hvac_mode
target:
entity_id: !input "climate_target"
data:
hvac_mode: heat_cool
- conditions:
- condition: state
entity_id: !input "climate_target"
state: heat
sequence:
- service: climate.turn_off
target:
entity_id: !input "climate_target"
- wait_for_trigger:
- platform: state
entity_id: !input "window_entity"
to: "off"
continue_on_timeout: false
- service: climate.set_hvac_mode
data:
hvac_mode: heat
target:
entity_id: !input "climate_target"
- conditions:
- condition: state
entity_id: !input "climate_target"
state: automatic
sequence:
- service: climate.turn_off
target:
entity_id: !input "climate_target"
- wait_for_trigger:
- platform: state
entity_id: !input "window_entity"
to: "off"
continue_on_timeout: false
- service: climate.set_hvac_mode
data:
hvac_mode: automatic
target:
entity_id: !input "climate_target"
- conditions:
- condition: state
entity_id: !input "climate_target"
state: auto
sequence:
- service: climate.turn_off
target:
entity_id: !input "climate_target"
- wait_for_trigger:
- platform: state
entity_id: !input "window_entity"
to: "off"
continue_on_timeout: false
- service: climate.set_hvac_mode
data:
hvac_mode: auto
target:
entity_id: !input "climate_target"