-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautomations.yaml
579 lines (579 loc) · 14.4 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
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
- id: '1703638107345'
alias: Office Closet Light - Door Trigger
description: ''
use_blueprint:
path: mkosmo/closet-light-from-door-sensor.yaml
input:
door_sensor: binary_sensor.office_closet_door_sensor_contact
light_switch:
entity_id: light.office_closet_light
light_timeout: 1800
- id: '1705870296732'
alias: Hall Aux Switch - Pause Living Room TV
description: ''
trigger:
- platform: device
domain: mqtt
device_id: f6a3f0606ae31f561f4c700f5917deed
type: action
subtype: aux_config_single
discovery_id: 0xb43a31fffe34e475 action_aux_config_single
condition: []
action:
- service: media_player.media_play_pause
metadata: {}
data: {}
target:
device_id: 0e47eccd7765e50037be8ffc24099a13
mode: single
- id: '1710728057701'
alias: Linen Closet Light - Door Trigger
description: ''
use_blueprint:
path: mkosmo/closet-light-from-door-sensor.yaml
input:
door_sensor: binary_sensor.linen_closet_door_sensor_contact
light_switch:
entity_id:
- light.linen_closet_wall_switch
light_timeout: 1800
- id: '1710728130096'
alias: Coat Closet Light - Door Trigger
description: ''
use_blueprint:
path: mkosmo/closet-light-from-door-sensor.yaml
input:
door_sensor: binary_sensor.coat_closet_door_sensor_contact
light_switch:
entity_id: light.coat_closet_light
light_timeout: 1800
- id: '1710814441742'
alias: Hold Kitchen Light Switches to Control Area Lights
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 9f61f3f1b573c3799a54ee705f98034f
type: action
subtype: up_held
id: 'on'
- platform: device
domain: mqtt
device_id: 9f61f3f1b573c3799a54ee705f98034f
type: action
subtype: down_held
id: 'off'
- platform: device
domain: mqtt
device_id: f6a3f0606ae31f561f4c700f5917deed
type: action
subtype: up_held
id: 'on'
- platform: device
domain: mqtt
device_id: f6a3f0606ae31f561f4c700f5917deed
type: action
subtype: down_held
id: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- service: light.turn_on
metadata: {}
data: {}
target:
area_id: 4872200594374640b069eaeee79e9ec6
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- service: light.turn_off
metadata: {}
data: {}
target:
area_id: 4872200594374640b069eaeee79e9ec6
mode: single
- id: '1710989410744'
alias: Display Garage Door Status on Kitchen Bar Light LED Strip
description: ''
trigger:
- platform: state
entity_id:
- cover.ratgdo_left_garage_door_door
- cover.ratgdo_right_garage_door_door
- binary_sensor.garage_side_person_door_contact
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: cover.ratgdo_right_garage_door_door
state: open
- condition: state
entity_id: cover.ratgdo_left_garage_door_door
state: open
- condition: state
entity_id: binary_sensor.garage_side_person_door_contact
state: 'on'
sequence:
- service: script.inovelli_led_control
metadata: {}
data:
led: All
color: Purple
level: 62
duration: Indefinitely
target:
device_id: 9f61f3f1b573c3799a54ee705f98034f
effect: Solid
alias: Set LED strip to purple - Kitchen Bar Light
- alias: Set LED strip to purple - Utility Closet Light
service: script.inovelli_led_control
metadata: {}
data:
led: All
color: Purple
level: 62
duration: Indefinitely
effect: Solid
target:
device_id: b61d7bab7432d5e91ddb6fb6e28bf5fd
alias: If any door is open
default:
- service: script.inovelli_led_control
metadata: {}
data:
led: All
target:
device_id: 9f61f3f1b573c3799a54ee705f98034f
effect: Clear
alias: Clear LED Strip - Kitchen Bar Light
- alias: Clear LED Strip - Utility Closet Light
service: script.inovelli_led_control
metadata: {}
data:
led: All
target:
device_id:
- b61d7bab7432d5e91ddb6fb6e28bf5fd
effect: Clear
mode: single
- id: '1711145973507'
alias: Pantry Door Light
description: ''
use_blueprint:
path: mkosmo/closet-light-from-door-sensor.yaml
input:
door_sensor: binary_sensor.pantry_door_sensor_contact
light_switch:
entity_id: light.pantry_lights
light_timeout: 1200
- id: '1711159946532'
alias: Hall Light Aux Switch - Hold to Control Multiple Lights
description: ''
trigger:
- platform: device
domain: mqtt
device_id: f6a3f0606ae31f561f4c700f5917deed
type: action
subtype: aux_up_held
id: 'on'
- platform: device
domain: mqtt
device_id: f6a3f0606ae31f561f4c700f5917deed
type: action
subtype: aux_down_held
id: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- service: light.turn_on
metadata: {}
data:
transition: 0
target:
entity_id:
- light.first_floor_hall_light
- light.kitchen_main_lights
- light.kitchen_bar_light
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- service: light.turn_off
metadata: {}
data:
transition: 0
target:
entity_id:
- light.first_floor_hall_light
- light.kitchen_main_lights
- light.kitchen_bar_light
mode: single
- id: '1712374070637'
alias: Mudroom Lamp Follows Kitchen Bar Light
description: ''
trigger:
- platform: device
type: turned_on
device_id: 9f61f3f1b573c3799a54ee705f98034f
entity_id: bf668f7758c2b3fe2ca6adb4bf41ea23
domain: light
id: 'on'
- platform: device
type: turned_off
device_id: 9f61f3f1b573c3799a54ee705f98034f
entity_id: bf668f7758c2b3fe2ca6adb4bf41ea23
domain: light
id: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- service: light.turn_on
metadata: {}
data:
transition: 0
brightness_pct: 100
target:
device_id: def287c341c870f1a188cf2c5e84a3a3
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- service: light.turn_off
metadata: {}
data:
transition: 0
target:
device_id: def287c341c870f1a188cf2c5e84a3a3
mode: single
- id: '1712671842634'
alias: Guest Room Remote
description: ''
trigger:
- platform: device
device_id: f55558e66b8f403aed6dc6acc7450363
domain: lutron_caseta
type: press
subtype: 'on'
id: 'on'
- platform: device
device_id: f55558e66b8f403aed6dc6acc7450363
domain: lutron_caseta
type: press
subtype: 'off'
id: 'off'
- platform: device
device_id: f55558e66b8f403aed6dc6acc7450363
domain: lutron_caseta
type: press
subtype: stop
id: center
- platform: device
device_id: f55558e66b8f403aed6dc6acc7450363
domain: lutron_caseta
type: press
subtype: raise
id: up
- platform: device
device_id: f55558e66b8f403aed6dc6acc7450363
domain: lutron_caseta
type: press
subtype: lower
id: down
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- if:
- condition: device
type: is_on
device_id: d147d6e3346a3d70950d269c7a076981
entity_id: 185cf978cbd071ed26785da783bafbb2
domain: light
then:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 100
target:
device_id: d147d6e3346a3d70950d269c7a076981
else:
- service: light.turn_on
metadata: {}
data: {}
target:
device_id: d147d6e3346a3d70950d269c7a076981
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- type: turn_off
device_id: d147d6e3346a3d70950d269c7a076981
entity_id: 185cf978cbd071ed26785da783bafbb2
domain: light
- conditions:
- condition: trigger
id:
- center
sequence:
- type: toggle
device_id: a5a3ebd634d6ed70eb3fac972d75fa58
entity_id: 3a460dca444dfc6c59d66cb0cddc89b4
domain: light
- conditions:
- condition: trigger
id:
- up
sequence:
- alias: Brightness up
service: light.turn_on
metadata: {}
data:
brightness_step_pct: 25
target:
entity_id: light.guest_bedroom_ceiling_fan_light
- conditions:
- condition: trigger
id:
- down
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_step_pct: -25
target:
entity_id: light.guest_bedroom_ceiling_fan_light
alias: Brightness down
mode: single
- id: '1714258867767'
alias: Kitchen Bar Light Switch - Double Tap Config for Garage Doors
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 9f61f3f1b573c3799a54ee705f98034f
type: action
subtype: config_double
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: device
device_id: 2bbbe29de187f6e1b1522f5f2513b258
domain: cover
entity_id: 5401d8e4327d5e9b6d71d56d09b8ec35
type: is_open
- condition: device
device_id: a918ed1d740d5527c120a872d5b36fdd
domain: cover
entity_id: fa3c1b2c28746f6e9edce10a8a74e955
type: is_open
sequence:
- service: cover.close_cover
metadata: {}
data: {}
target:
entity_id:
- cover.ratgdo_right_garage_door_door
- cover.ratgdo_left_garage_door_door
alias: 'If either garage door is open, close it. '
default:
- service: cover.open_cover
metadata: {}
data: {}
target:
entity_id: cover.ratgdo_left_garage_door_door
mode: single
- id: '1715117158694'
alias: Upstairs Hall Light Switch - Triple tap config to move Eve to dump spot
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 6239543fc9a684fbba5d4af77ccdf052
type: action
subtype: config_triple
condition: []
action:
- service: script.vacuum_dump_process
metadata: {}
data: {}
mode: single
- id: '1724423649065'
alias: Stairs Wall Switch - Red During Meetings
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.corban_on_a_call
from: 'off'
to: 'on'
id: 'on'
- platform: state
entity_id:
- binary_sensor.corban_on_a_call
from: 'on'
to: 'off'
id: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- action: script.inovelli_led_control
metadata: {}
data:
led: All
color: Red
level: 100
duration: Indefinitely
target:
device_id: 6239543fc9a684fbba5d4af77ccdf052
effect: Aurora
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- action: script.inovelli_led_control
metadata: {}
data:
led: All
color: Red
level: 100
duration: Indefinitely
target:
device_id: 6239543fc9a684fbba5d4af77ccdf052
effect: Clear
mode: single
- id: '1724980786427'
alias: Notify if windows are open with rain forecast overnight
description: ''
trigger:
- platform: time
at: '22:00:00'
condition:
- condition: state
entity_id: input_select.home_mode
state: Home
- condition: numeric_state
entity_id: sensor.open_window_count
above: 0
action:
- action: weather.get_forecasts
metadata: {}
data:
type: hourly
target:
entity_id: weather.openweathermap
response_variable: forecasts
alias: Get Hourly Forecast
- variables:
hours_to_check: 8
precip_percent_min: 70
entity_id: weather.openweathermap
max_precipitation_chance: '{{ forecasts[entity_id].forecast[0:hours_to_check]
| map(attribute=''precipitation_probability'') | max }}'
- alias: Check if there's >70% chance of rain in the next 8 hours
condition: template
value_template: '{{ max_precipitation_chance > precip_percent_min }}'
- action: notify.corban
metadata: {}
data:
title: Rain Tonight. Close Windows?
message: 'There is a {{ max_precipitation_chance }}% chance of rain tonight
and these windows are open: {{ states(''sensor.open_windows'') }}'
mode: single
- id: '1725645532252'
alias: Notify Corban when Ben leaves with guest mode on
description: ''
trigger:
- platform: state
entity_id:
- device_tracker.bens_iphone_se_unifi
to: not_home
from: home
for:
hours: 0
minutes: 3
seconds: 0
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'on'
- condition: state
entity_id: binary_sensor.corban_person_home
state: 'off'
action:
- action: notify.corban
metadata: {}
data:
message: Ben left
title: Ben Left
mode: single
- id: '1725649471485'
alias: Toggle Living Room Cabinet Lights with Wall Switch Button
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 21e10aa0c624e6abdcbbbbb97e0373c5
type: action
subtype: config_single
- platform: device
domain: mqtt
device_id: d9db549c961eecf0f3fc66794fe297ad
type: action
subtype: config_single
condition: []
action:
- action: light.toggle
metadata: {}
data:
brightness_pct: 100
target:
entity_id: light.living_room_cabinet_lights
mode: single
- id: '1725812307580'
alias: Reload the Wall Display After Home Assistant Restarts
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- action: script.tablet_wall_display_reload
metadata: {}
data: {}
mode: single