This repository has been archived by the owner on Sep 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
297 lines (297 loc) · 6.74 KB
/
automations.yaml
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
- id: '1589767890705'
alias: AC Leak Notification
description: Notify Austin and Rachael when a leak is detected
trigger:
- entity_id: sensor.ac_leak_detector
platform: state
to: '255'
condition: []
action:
- data:
data:
push:
sound:
critical: 1
name: default
message: A leak has been detected near the air conditioner!
title: Leak Detected
service: notify.mobile_app_austins_iphone
- data:
data:
push:
sound:
critical: 1
name: default
message: A leak has been detected near the air conditioner!
title: Leak Detected
service: notify.mobile_app_rachaels_iphone
- id: '1590463525502'
alias: Anti-Snooze
description: ''
trigger:
- platform: webhook
webhook_id: antisnooze
condition:
- condition: template
value_template: '{{ now().date() > strptime(states(''input_datetime.last_snooze_date''),
''%Y-%m-%d'').date() }}'
action:
- data_template:
date: '{{ now().date() }}'
entity_id: input_datetime.last_snooze_date
service: input_datetime.set_datetime
- data: {}
service: script.1590461886795
- id: '1591979902035'
alias: Don’t forget the baby!
description: ''
trigger:
- entity_id: sensor.austins_iphone_activity
from: Automotive
platform: state
condition: []
action:
- data:
data:
push:
sound:
critical: 1
name: default
message: Don't forget the baby!
service: notify.mobile_app_austins_iphone
- id: '1592459342650'
alias: Austin Bedside Button
description: ''
trigger:
- platform: device
domain: mqtt
device_id: bbf16375750b41dfabff1626b5b63404
type: click
subtype: single
discovery_id: 0x286d9700010c0519 click_single
condition: []
action:
- type: toggle
device_id: 58d467de6a5d4d82aa78bf61faf6e5e5
entity_id: light.austin_bedside
domain: light
mode: single
- id: '1592459512451'
alias: Rachael Button
description: ''
trigger:
- device_id: c700b38e68a84781932b1efe7e6384d4
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- device_id: 6d76bee1732c48f083abddcf746bffd2
domain: light
entity_id: light.rachael_bedside
type: toggle
mode: single
- id: '1594009139252'
alias: Cool garage at 5 AM
description: ''
trigger:
- at: 05:00
platform: time
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- data:
hvac_mode: cool
entity_id: climate.garage
service: climate.set_hvac_mode
- id: '1594010597767'
alias: Start Secondary Winddown
description: ''
trigger:
- entity_id: input_boolean.secondary_winddown
platform: state
to: 'on'
condition: []
action:
- data:
brightness: 1
rgb_color:
- 0
- 0
- 255
transition: 300
entity_id:
- light.rachael_bedside
- light.austin_bedside
service: light.turn_on
- timeout: '300'
wait_template: ''
- data: {}
entity_id:
- light.austin_bedside
- light.rachael_bedside
service: light.turn_off
- id: '1594641410814'
alias: Task Complete
description: Increase the Task Complete counter
trigger:
- platform: webhook
webhook_id: task_complete
condition: []
action:
- data: {}
entity_id: input_number.tasks_worked
service: input_number.increment
- id: '1600062360773'
alias: 'Nursery Button: Nighttime Lights'
description: ''
trigger:
- device_id: 607c91e7bfcb431eb004f7f9b9f44447
domain: zha
platform: device
subtype: remote_button_short_press
type: remote_button_short_press
condition: []
action:
- data:
brightness: 180
rgb_color:
- 255
- 92
- 0
entity_id: light.right_cloud
service: light.toggle
- data: {}
entity_id: light.rocker_lamp
service: light.turn_off
mode: single
- id: '1600062900190'
alias: 'Nursery Button: Lights On'
description: ''
trigger:
- device_id: 607c91e7bfcb431eb004f7f9b9f44447
domain: zha
platform: device
subtype: remote_button_long_press
type: remote_button_long_press
condition: []
action:
- data:
brightness: 255
entity_id: light.rocker_lamp
service: light.turn_on
- data:
brightness: 255
color_temp: 500
entity_id: light.right_cloud
service: light.turn_on
- data:
brightness: 255
color_temp: 500
entity_id: light.left_cloud
service: light.turn_on
mode: single
- id: '1607056043306'
alias: Tag Austin Bedside is scanned
description: ''
trigger:
- platform: tag
tag_id: austin_bedside
condition: []
action:
- type: toggle
device_id: 58d467de6a5d4d82aa78bf61faf6e5e5
entity_id: light.austin_bedside
domain: light
mode: single
- id: '1608510495349'
alias: Shower Mode On
description: ''
trigger:
- platform: state
entity_id: input_boolean.shower_mode
to: 'on'
condition: []
action:
- service: climate.turn_on
data: {}
entity_id: climate.hvac
- wait_for_trigger:
- platform: state
entity_id: input_boolean.shower_mode
from: 'on'
timeout: '1200'
continue_on_timeout: true
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.shower_mode
- service: climate.set_fan_mode
data:
mode: 'on'
entity_id: climate.hvac
mode: single
- id: '1610137913824'
alias: Shower fan
description: Turn on the fan for an hour
trigger:
- platform: tag
tag_id: a54ea0fc-4962-4a85-80b9-918177f0c39e
condition:
- condition: not
conditions:
- condition: state
entity_id: climate.hvac
attribute: fan_modes
state: On Low
action:
- service: climate.set_fan_mode
data:
fan_mode: On Low
entity_id: climate.hvac
- delay: '3600'
- service: climate.set_fan_mode
data:
fan_mode: Auto Low
entity_id: climate.hvac
mode: restart
- id: '1610296342550'
alias: Turn up the heat when leaving Aldi
description: ''
trigger:
- platform: zone
entity_id: person.austin_rainwater
zone: zone.aldi
event: leave
condition: []
action:
- service: climate.set_temperature
data:
temperature: 71
hvac_mode: heat
entity_id: climate.hvac
mode: single
- id: '1612448662021'
alias: Window Open - Heating Up
description: Notify when the temperature starts to raise and a window is ipen
trigger:
- platform: numeric_state
entity_id: weather.home
attribute: temperature
above: '71'
for: 0:20:00
condition:
- condition: state
entity_id: group.all_windows
state: 'on'
action:
- service: notify.notify
data:
message: It's starting to heat up! You may want to close the windows.
mode: single