/
automations.yaml
515 lines (515 loc) · 13.1 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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
- id: '1623896972382'
alias: Start DnD via Webhook
description: ''
trigger:
- platform: webhook
webhook_id: 71c672f8399aad2ccec8769e9ce75f46b7260ddb308de102224b9fe03ebb21f0
condition: []
action:
- type: turn_on
device_id: cdddd3246291229c09cb7cc75ff1feb1
entity_id: light.hue_play_1
domain: light
- service: hue.hue_activate_scene
data:
group_name: Office Signal
scene_name: John DnD
- repeat:
count: '3'
sequence:
- service: light.turn_on
target:
area_id: office
data:
brightness_step_pct: -50
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 750
- service: light.turn_on
target:
area_id: office
data:
brightness_step_pct: 50
mode: single
- id: '1623985104359'
alias: Garbage Day Reminder
description: ''
trigger:
- platform: time
at: '18:15:00'
condition:
- condition: time
weekday:
- thu
before: 00:00:00
after: 00:00:00
action:
- service: script.speech_engine
data:
speech_message: It's garbage day. Don't forget to collect garbage from the bathrooms
and diaper bin!
mode: single
- id: '1624048450884'
alias: Front Door Alert
description: ''
trigger:
- type: motion
platform: device
device_id: 92b464fee4dab94c831b8ff8686f330a
entity_id: binary_sensor.front_door_camera_motion
domain: binary_sensor
condition: []
action:
- service: script.set_doorbell_message
data:
message: "{% if states('input_boolean.quiet_mode') == 'on' %}\n quiet_mode\n{%
else %}\n welcome\n{% endif %}"
- service: script.display_doorbell_snapshot_on_tvs
data: {}
mode: single
- id: '1644810800643'
alias: Vacation Faux Home On
description: Make it appear as if people are home when we're out of town
trigger:
- platform: sun
event: sunset
offset: 00:01:00
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'on'
action:
- type: turn_on
device_id: 44fcccda63e4e38e416babd3f3e1fded
entity_id: light.family_room_main_lights
domain: light
- type: turn_on
device_id: 59ca60e52d36629d4f1c5cca974d0cfa
entity_id: light.kitchen_main_light_switch
domain: light
mode: single
- id: '1644810923409'
alias: Vacation Faux Home Off
description: ''
trigger:
- platform: time
at: '22:01:00'
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'on'
action:
- type: turn_off
device_id: 59ca60e52d36629d4f1c5cca974d0cfa
entity_id: light.kitchen_main_light_switch
domain: light
- type: turn_off
device_id: 44fcccda63e4e38e416babd3f3e1fded
entity_id: light.family_room_main_lights
domain: light
mode: single
- id: '1645246661438'
alias: Mudroom Light Automation
description: Automatically turn on the Mudroom lights when motion is detected.
use_blueprint:
path: homeassistant/motion_light.yaml
input:
light_target:
device_id:
- 37ab5381dccd0ec08d2043d4cf433d72
no_motion_wait: 240
motion_entity: binary_sensor.mudroom_trisensor_home_security_motion_detection
- id: '1645986690212'
alias: Water Detected in Basement
description: ''
trigger:
- type: moist
platform: device
device_id: 49e81b02d6064a7191287e8b6283278c
entity_id: binary_sensor.water_sensor_7_pro_water_alarm_water_leak_detected
domain: binary_sensor
condition: []
action:
- service: notify.mobile_app_jk
data:
message: The basement water sensor has detected water!
title: Basement Water Sensor
- service: notify.family_room_tv
data:
title: Basement Water Sensor
message: The basement water sensor has detected water!
- service: notify.mobile_app_cfalb
data:
message: The basement water sensor has detected water!
title: Basement Water Sensor
- service: notify.alexa_media_everywhere
data:
message: The basement water sensor has detected water!
data:
type: announce
method: all
mode: single
- id: '1646251632973'
alias: Doorbell Ring (Duplicate)
description: ''
trigger:
- type: occupied
platform: device
device_id: 92b464fee4dab94c831b8ff8686f330a
entity_id: binary_sensor.front_door_camera_doorbell
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/images/doorbell_camera_alert.jpg
target:
device_id: 92b464fee4dab94c831b8ff8686f330a
- service: script.display_doorbell_snapshot_on_tvs
data: {}
- service: script.play_doorbell
data: {}
- service: notify.ios_family
data:
message: ' Somebody is at the front door!'
title: Kohbo Front Door
data:
image: /config/www/images/doorbell_camera_alert.jpg
mode: single
- id: '1646272122915'
alias: Turn on Outdoor Lights
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:15:00
condition: []
action:
- service: homeassistant.turn_on
data: {}
target:
entity_id: group.exterior_lights
- service: script.speech_engine
data:
speech_message: The sun has set, turning on the exterior lights.
mode: single
- id: '1646272166786'
alias: Turn off Outdoor Lights
description: ''
trigger:
- platform: sun
event: sunrise
offset: -00:30:00
condition: []
action:
- service: homeassistant.turn_off
data: {}
target:
entity_id: group.exterior_lights
mode: single
- id: '1646274478600'
alias: Away mode
description: Automatically turn the house into away mode when nobody is home.
trigger:
- platform: device
device_id: 417292d1346b8ae9514e83186be0b755
domain: device_tracker
entity_id: device_tracker.johns_iphone_2
type: leaves
zone: zone.home
- platform: device
device_id: d3a17386e8d525871b55e54e3d58fc64
domain: device_tracker
entity_id: device_tracker.cfalb_2
type: leaves
zone: zone.home
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: group.extended_family
state: not_home
- condition: state
entity_id: group.family
state: not_home
action:
- service: script.turn_off_interior_lights
data: {}
- service: script.climate_away
data: {}
- service: script.tvs_off
data: {}
- service: script.garage_close
data: {}
- service: notify.mobile_app_jk
data:
title: Away Mode
message: Nobody is home so away mode has been activated!
mode: single
- id: '1646280009884'
alias: 'Weather: Bad Weather Lighting'
description: Extra interior lights when the weather is bad
trigger:
- platform: numeric_state
entity_id: sensor.openweathermap_weather_code
above: '199'
below: '233'
- platform: numeric_state
entity_id: sensor.openweathermap_weather_code
above: '500'
below: '532'
- platform: numeric_state
entity_id: sensor.openweathermap_weather_code
above: '761'
below: '782'
- platform: numeric_state
entity_id: sensor.openweathermap_weather_code
above: '311'
below: '322'
condition:
- condition: and
conditions:
- condition: sun
before: sunset
after: sunset
- condition: time
before: '22:00:00'
after: 07:00:00
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: state
entity_id: group.family
state: home
action:
- service: homeassistant.turn_on
data: {}
target:
entity_id:
- group.kitchen_lights
- light.family_room_main_lights
- service: notify.mobile_app_jk
data:
title: Weather Automation
message: The weather isn't looking to great so turning some interior lights
on.
- service: script.speech_engine
data:
speech_message: The weather isn't looking great so turning on the some interior
lights.
mode: single
- id: '1646884521741'
alias: Nino Pickup
description: ''
trigger:
- platform: time
at: '12:30:00'
condition:
- condition: time
before: 00:00:00
weekday:
- tue
- wed
- thu
action:
- service: script.notify_engine
data:
title: Kohbo Reminder
message: Time to pick up Nino from school!
who: family
- service: script.speech_engine
data:
speech_message: Time to pick up Nino from school!
mode: single
- id: '1647462190395'
alias: Quiet Mode - Enable
description: ''
trigger:
- type: not_opened
platform: device
device_id: b68b546103678f1b18954634f33f230b
entity_id: binary_sensor.gianlucas_door_sensor_ias_zone
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.quiet_mode
state: 'off'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.quiet_mode
mode: single
- id: '1647462317728'
alias: Quite Mode - Disable
description: ''
trigger:
- type: opened
platform: device
device_id: b68b546103678f1b18954634f33f230b
entity_id: binary_sensor.gianlucas_door_sensor_ias_zone
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.quiet_mode
state: 'on'
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.quiet_mode
mode: single
- id: '1647483168820'
alias: Arrival Mode
description: ''
trigger:
- platform: device
device_id: 417292d1346b8ae9514e83186be0b755
domain: device_tracker
entity_id: device_tracker.johns_iphone_2
type: enters
zone: zone.home
- platform: device
device_id: d3a17386e8d525871b55e54e3d58fc64
domain: device_tracker
entity_id: device_tracker.cfalb_2
type: enters
zone: zone.home
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: group.family
state: not_home
- condition: state
entity_id: group.extended_family
state: not_home
action:
- service: light.turn_on
data: {}
target:
entity_id: light.mudroom_main_lights
- device_id: d21fee64f0e0c227432ffa0d1fef645c
domain: cover
entity_id: cover.garage_door_1
type: open
- service: notify.ios_family
data:
title: Arrival Mode
message: I noticed that you're arriving home so I've opened the garage and turned
on a couple of lights.
- service: script.climate_activate
data: {}
mode: single
- id: '1647610270810'
alias: Arrival Announcement - John
description: ''
trigger:
- platform: device
device_id: 417292d1346b8ae9514e83186be0b755
domain: device_tracker
entity_id: device_tracker.johns_iphone_2
type: enters
zone: zone.home
- platform: state
entity_id: person.john_koht
from: not_home
to: home
condition: []
action:
- service: script.announce_arrival
data:
who: john
mode: single
- id: '1703382935999'
alias: Playroom play time
description: ''
trigger:
- platform: conversation
command:
- Play mode
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.sonos_playroom
data:
media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/spotify:playlist:47VW3DAzyva9wf0o505XFq
media_content_type: spotify://playlist
metadata:
title: Nino Songs
thumbnail: https://mosaic.scdn.co/640/ab67616d00001e0219ae9f2ac27cfa4de951e56eab67616d00001e0258d16d8402fd5d1c2289ec65ab67616d00001e02774249cfb4814cce97478521ab67616d00001e027f9c9b62b5c266ec1f484397
media_class: playlist
children_media_class: track
navigateIds:
- {}
- media_content_type: spotify://library
media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a
- media_content_type: spotify://current_user_playlists
media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/current_user_playlists
- media_content_type: spotify://playlist
media_content_id: spotify://1ab9efdddfcfad61a69054a109320f8a/spotify:playlist:47VW3DAzyva9wf0o505XFq
- service: light.turn_on
target:
entity_id: light.playroom_lights
data: {}
mode: single
- id: '1705228787929'
alias: New automation
description: ''
trigger:
- platform: time
at: 05:05:00
condition: []
action:
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.hue_smart_plug_1
mode: single
- id: '1708729229186'
alias: Jumpy House Toggle New
description: ''
trigger:
- device_id: 8f2fc00a55d6328dc30ed2d53372a1f4
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- type: toggle
device_id: 7468fd0c889aba8fcd895aa3387c3795
entity_id: e96ec63d4a34cf5ed92370e69442c31c
domain: switch
mode: single
- id: '1710176506867'
alias: Playroom button Test
description: ''
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
device_id: cd626e869b9ddd77c680a7c1b1bd9bfc
context: {}
condition: []
action: []
mode: single