-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscripts.yaml
576 lines (576 loc) · 14.2 KB
/
scripts.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
playstation:
alias: Playstation
sequence:
- action: script.living_room_tv_turn_on
data: {}
- action: media_player.turn_on
data: {}
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: scene.turn_on
target:
entity_id: scene.play_playstation
metadata: {}
enabled: false
- action: media_player.select_source
data:
source: PS5
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_sound_mode
data:
sound_mode: DOLBY DIGITAL
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.volume_set
data:
volume_level: 0.4
target:
entity_id: media_player.living_room
- if:
- condition: not
conditions:
- condition: state
entity_id: media_player.living_room
attribute: source
state: PS5
then:
- action: media_player.select_source
data:
source: PS5
target:
entity_id: media_player.living_room
mode: restart
icon: mdi:sony-playstation
all_lights_off:
alias: All Lights Off
sequence:
- action: light.turn_off
data: {}
target:
entity_id:
- light.all_lights_zigbee_group
- light.crawl_space_lights
- light.office_string_lights
- light.bathroom_light
- light.living_room_lights
- light.kitchen_stove_hood_light_enable
- light.office_closet_lights
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.silver_lamp
mode: single
icon: mdi:lightbulb-group-off
goodnight:
alias: 'Goodnight '
sequence:
- action: switch.turn_on
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_hallway
- switch.adaptive_lighting_sleep_mode_living_room
- switch.adaptive_lighting_sleep_mode_office
- switch.adaptive_lighting_sleep_mode_kitchen
- switch.adaptive_lighting_sleep_mode_bedroom
- action: media_player.turn_off
data: {}
target:
entity_id: media_player.living_room_tv
- action: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.bedroom_filter_lights
- input_boolean.livingroom_filter_lights
- action: script.all_lights_off
data: {}
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 200
enabled: false
- action: script.all_lights_off
data: {}
enabled: false
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
enabled: true
- action: script.all_lights_off
data: {}
enabled: true
mode: single
icon: mdi:weather-night
air_conditioners_on:
alias: Air Conditioners On
sequence:
- device_id: 4b987c6c5611f851761cceac2d341f5e
domain: climate
entity_id: 0b2e89c8d9dde29d44a86d06541aee11
type: set_hvac_mode
hvac_mode: cool
- device_id: 4d342d88be4e71bf65993a020f1fc6b9
domain: climate
entity_id: 757b2309cadeda1a7daa9008ca7ff6fe
type: set_hvac_mode
hvac_mode: cool
- device_id: 6833b84bb9fbdfd52286d43e14fa7596
domain: climate
entity_id: 4c3f38b88fc0931fe2cc6dbcd3377e26
type: set_hvac_mode
hvac_mode: cool
mode: single
icon: mdi:air-conditioner
adapt_all_lights:
alias: Adapt All Lights
sequence:
- action: script.enable_all_adaptive_lights
data: {}
- action: switch.turn_off
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_living_room
- switch.adaptive_lighting_sleep_mode_bedroom
- switch.adaptive_lighting_sleep_mode_bedroom_lamp
- switch.adaptive_lighting_sleep_mode_hallway
- switch.adaptive_lighting_sleep_mode_kitchen
- switch.adaptive_lighting_sleep_mode_office
enabled: true
- action: adaptive_lighting.apply
data:
lights:
- light.living_room_ceiling
entity_id: switch.adaptive_lighting_living_room
adapt_color: true
enabled: true
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_adapt_color_bedroom_lamp
enabled: true
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_adapt_color_kitchen
enabled: true
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_adapt_color_hallway
enabled: true
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_adapt_color_office
enabled: true
- action: adaptive_lighting.apply
data:
entity_id: switch.adaptive_lighting_adapt_color_bedroom
enabled: true
- action: switch.turn_on
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_living_room
enabled: true
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
enabled: true
- action: switch.turn_off
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_living_room
enabled: true
mode: single
icon: mdi:theme-light-dark
max_air_conditioning:
alias: Max Air Conditioning
sequence:
- action: script.air_conditioners_on
data: {}
- action: climate.set_fan_mode
data:
fan_mode: high
target:
entity_id:
- climate.living_room_air_conditioner
- climate.bedroom_air_conditioner
- climate.office_air_conditioner
mode: single
icon: mdi:snowflake
air_conditioning_off:
alias: Air Conditioning Off
sequence:
- action: climate.set_hvac_mode
data:
hvac_mode: 'off'
target:
entity_id:
- climate.bedroom_air_conditioner
- climate.living_room_air_conditioner
- climate.office_air_conditioner
mode: single
icon: mdi:snowflake-off
day_lights:
alias: Day Lights
sequence:
- action: switch.turn_off
data: {}
target:
entity_id:
- switch.adaptive_lighting_sleep_mode_bedroom
- switch.adaptive_lighting_sleep_mode_bedroom_lamp
- switch.adaptive_lighting_sleep_mode_hallway
- switch.adaptive_lighting_sleep_mode_kitchen
- switch.adaptive_lighting_sleep_mode_living_room
- switch.adaptive_lighting_sleep_mode_office
- action: light.turn_on
data: {}
target:
entity_id:
- light.bathroom_light
- light.hallway_lights
- light.bedroom_lights
- light.office_lights
- light.kitchen_lights
- light.bedroom_closet_light
- light.laundry_room_lights
- light.living_room_lights
- light.office_closet_lights
mode: single
icon: mdi:coffin
bedtime:
alias: Bedtime
sequence:
- action: switch.turn_on
data: {}
target:
entity_id: switch.adaptive_lighting_sleep_mode_bedroom_lamp
- action: light.turn_on
data: {}
target:
entity_id: light.bedroom_lamp
- action: light.turn_off
data: {}
target:
entity_id:
- light.bedroom_ceiling
- light.hallway_ceiling
- light.bedroom_closet_light
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.bedroom_filter_lights
mode: single
icon: mdi:bed
nintendo:
alias: Nintendo
sequence:
- action: script.living_room_tv_turn_on
data: {}
- action: media_player.turn_on
data: {}
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_source
data:
source: Switch
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_sound_mode
data:
sound_mode: DOLBY DIGITAL
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.volume_set
data:
volume_level: 0.4
target:
entity_id: media_player.living_room
mode: restart
icon: mdi:nintendo-switch
apple_tv:
alias: Apple TV
sequence:
- action: script.living_room_tv_turn_on
data: {}
- action: media_player.turn_on
data: {}
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_source
data:
source: AppleTV
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_sound_mode
data:
sound_mode: DOLBY DIGITAL
target:
device_id: 0f884b9e46116da8295560f82bba789f
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 250
- action: media_player.volume_set
data:
volume_level: 0.5
target:
entity_id: media_player.living_room
enabled: true
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 250
- action: media_player.volume_up
metadata: {}
data: {}
target:
entity_id: media_player.living_room
mode: restart
icon: mdi:apple
tivo:
alias: Tivo
sequence:
- action: script.living_room_tv_turn_on
data: {}
- action: media_player.turn_on
data: {}
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_source
data:
source: TiVo
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_sound_mode
data:
sound_mode: DOLBY DIGITAL
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.volume_set
data:
volume_level: 0.5
target:
entity_id: media_player.living_room
mode: restart
icon: mdi:television-classic
apple_tv_music:
alias: Apple TV Music
sequence:
- action: script.living_room_tv_turn_on
data: {}
- action: media_player.turn_on
data: {}
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_source
data:
source: AppleTV
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.select_sound_mode
data:
sound_mode: STEREO
target:
device_id: 0f884b9e46116da8295560f82bba789f
- action: media_player.volume_set
data:
volume_level: 0.5
target:
entity_id: media_player.living_room
mode: restart
icon: mdi:apple
living_room_tv_turn_on:
alias: Living Room TV Turn On
sequence:
- action: wake_on_lan.send_magic_packet
data:
broadcast_port: 9
mac: b0:37:95:d5:eb:69
broadcast_address: 255.255.255.255
mode: single
icon: mdi:television
christmas_lights:
alias: Christmas Lights
sequence:
- action: script.disable_all_adaptive_lights
data: {}
- action: light.turn_on
target:
entity_id:
- light.laundry_room_light
- light.kitchen_counter_west
- light.kitchen_ceiling_1_1
- light.kitchen_ceiling_1_2
- light.kitchen_ceiling_1_3
- light.office_desk_lights
- light.front_porch
- light.hallway_ceiling_zigbee_group
- light.office_ceiling_group
- light.bedroom_lamp
- light.bedroom_closet_light
data:
rgb_color:
- 255
- 0
- 0
brightness_pct: 100
- action: light.turn_on
data:
rgb_color:
- 0
- 255
- 0
brightness_pct: 100
target:
entity_id:
- light.kitchen_ceiling_2_1
- light.kitchen_ceiling_2_2
- light.kitchen_ceiling_2_3
- light.bedroom_ceiling_zigbee_group
- light.front_entry_light
- light.living_room_ceiling
- light.office_bench_lights
- light.kitchen_counter_east
- light.piano_light
mode: single
icon: mdi:pine-tree
enable_all_adaptive_lights:
alias: Enable All Adaptive Lights
sequence:
- action: switch.turn_on
target:
entity_id:
- switch.adaptive_lighting_bedroom
- switch.adaptive_lighting_bedroom_lamp
- switch.adaptive_lighting_hallway
- switch.adaptive_lighting_living_room
- switch.adaptive_lighting_kitchen
- switch.adaptive_lighting_office
data: {}
mode: single
icon: mdi:sun-thermometer
disable_all_adaptive_lights:
alias: Disable All Adaptive Lights
sequence:
- action: switch.turn_off
target:
entity_id:
- switch.adaptive_lighting_bedroom
- switch.adaptive_lighting_bedroom_lamp
- switch.adaptive_lighting_hallway
- switch.adaptive_lighting_living_room
- switch.adaptive_lighting_kitchen
- switch.adaptive_lighting_office
device_id: []
area_id: []
data: {}
mode: single
icon: mdi:sun-thermometer-outline
christmas_lights_alternate:
alias: Christmas Lights (Alternate)
sequence:
- action: script.disable_all_adaptive_lights
data: {}
- action: light.turn_on
target:
entity_id:
- light.laundry_room_light
- light.kitchen_counter_west
- light.kitchen_ceiling_1_1
- light.kitchen_ceiling_1_2
- light.kitchen_ceiling_1_3
- light.office_desk_lights
- light.front_porch
- light.hallway_ceiling_zigbee_group
- light.office_ceiling_group
- light.bedroom_lamp
- light.bedroom_closet_light
data:
rgb_color:
- 0
- 255
- 0
brightness_pct: 100
- action: light.turn_on
data:
rgb_color:
- 255
- 0
- 0
brightness_pct: 100
target:
entity_id:
- light.kitchen_ceiling_2_1
- light.kitchen_ceiling_2_2
- light.kitchen_ceiling_2_3
- light.bedroom_ceiling_zigbee_group
- light.front_entry_light
- light.living_room_ceiling
- light.office_bench_lights
- light.kitchen_counter_east
- light.piano_light
mode: single
icon: mdi:pine-tree-variant
welcome_lights:
alias: Welcome Lights
sequence:
- action: light.turn_on
metadata: {}
data:
transition: 0
target:
entity_id:
- light.hallway_lights
- light.kitchen_lights
- light.living_room_lights
mode: single
icon: mdi:home-import-outline
front_door_unlock:
alias: Front door unlock
sequence:
- if:
- condition: and
conditions:
- condition: state
entity_id: device_tracker.aarons_watch_3
state: home
- condition: state
entity_id: device_tracker.ham
state: home
then:
- action: lock.unlock
metadata: {}
data: {}
target:
entity_id: lock.front_door
mode: single
icon: mdi:lock-open-variant-outline
naptime:
alias: Naptime
sequence:
- action: light.turn_off
data: {}
target:
entity_id:
- light.hallway_ceiling
- light.bedroom_closet_light
- light.bathroom_lights
- light.bedroom_lights
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.bedroom_filter_lights
mode: single
icon: mdi:bed
description: ''