-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
6123 lines (6083 loc) · 170 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
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
- id: '1640833273099'
alias: NWS Announce Weather Alert for Tornado
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.weatheralerts_active_alerts
attribute: tornado_warning_count
above: '0'
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.tornado_alarm
- service: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.white_noise_kallen_bedroom
- input_boolean.white_noise_basement
- input_boolean.white_noise_emma_bedroom
alias: Turn off white noise
- service: script.turn_on
target:
entity_id: script.max_brightness
- service: script.text_notify
data:
type: critical
title: Tornado Warning - TAKE COVER!
message: The National Weather Service has issued a Tornado Warning for our area.
Take Cover NOW!!!!
who: all
tag: tornado-warning
alias: CRITICAL PHONE ALERT
- service: script.tv_notify
data:
who: all
title: Tornado Warning - TAKE COVER!
message: The National Weather Service has issued a Tornado Warning for our area.
Take Cover NOW!!!!
alias: TV Alert
- service: script.speech_engine
data:
who: everywhere
message: A tornado warning has been issued, please take cover immediately! A
tornado warning has been issued, please take cover immediately! A tornado
warning has been issued, please take cover immediately!
type: alert
alias: Elevated TTS alert
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: script.speech_engine
data:
who: everywhere
message: A tornado warning has been issued, please take cover immediately! A
tornado warning has been issued, please take cover immediately! A tornado
warning has been issued, please take cover immediately!
type: critical
alias: CRITICAL TTS ALERT
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
mode: single
- id: '1640916845901'
alias: Cast to Chromecast
description: ''
use_blueprint:
path: kind3r/cast-and-re-cast-a-lovelace-view-to-a-google-hub.yaml
input:
dashboard: lovelace
player: media_player.living_room_tv
view: chromecast
- id: '1640989510134'
alias: New Years
description: Flash lights for New Years
trigger:
- platform: time
at: 00:00:00
condition: []
action:
- alias: Prepare affected lighting areas
service: switch.turn_off
target:
entity_id:
- switch.adaptive_lighting_basement_studio
- switch.adaptive_lighting_kallen_bedroom
- switch.adaptive_lighting_living_room
- switch.adaptive_lighting_master_bedroom
- switch.adaptive_lighting_mud_room
- switch.adaptive_lighting_upstairs_hallway
- switch.adaptive_lighting_tina_lamp
- switch.animated_scene_christmas
- switch.adaptive_lighting_emma_bedroom
- switch.adaptive_lighting_downstairs_bathroom
- switch.adaptive_lighting_upstairs_bathroom
- switch.adaptive_lighting_front_porch
data: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
alias: Delay to make sure all switches turn off
- alias: Turn on lights, change to red for capable bulbs
service: light.turn_on
target:
entity_id:
- light.hallway_overhead
- light.kallen_bedroom_lights
- light.mud_room_overhead
- light.front_porch_light
- light.emma_bedroom_light
- light.downstairs_bathroom_lights
- light.upstairs_bathroom_lights
- light.living_room_lights
- light.master_bedroom_lights
- light.basement_studio_lights
- light.tina_lamp_top
- light.tina_lamp_side
- light.stairwell_led_strip
data:
color_name: red
brightness_pct: 100
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
alias: Delay to wait for lights to turn on
- alias: Flash lights and send TTS notification
parallel:
- alias: Flash lights
service: light.turn_on
target:
entity_id:
- light.hallway_overhead
- light.kallen_bedroom_lights
- light.mud_room_overhead
- light.front_porch_light
- light.emma_bedroom_light
- light.downstairs_bathroom_lights
- light.upstairs_bathroom_lights
- light.master_bedroom_lights
- light.tina_lamp_top
- light.tina_lamp_side
data:
flash: long
- alias: Send TTS notification to the common areas
service: script.speech_engine
data:
who: common_areas
message: Happy new year! Heres to 2024!
type: alert
- alias: Basement Lights Alert
service: script.basement_lights_alert
data:
type: police
duration: 30
flash: true
- alias: Living Room Lights Alert
service: script.living_room_lights_alert
data:
type: police
duration: 30
flash: true
- alias: Restore previous functionality
service: switch.turn_on
target:
entity_id:
- switch.animated_scene_christmas
data: {}
- alias: Return to evening mode
service: script.turn_on
target:
entity_id:
- script.evening_on_first_floor
- script.evening_on_second_floor
data: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
alias: Delay because adaptive lighting is stupid sometimes
- service: input_select.select_option
data:
option: Reset
target:
entity_id: input_select.tina_desk_scenes
alias: Reset Tina desk scene
- service: light.turn_off
target:
entity_id: light.downstairs_bathroom_lights
data: {}
alias: Turn off downstairs bathroom lights
mode: single
- id: '1641101491581'
alias: Family Has Arrived
description: Runs when family arrives at home
trigger:
- platform: state
entity_id:
- binary_sensor.parents_home
not_from: unavailable
to: 'on'
condition:
- condition: not
conditions:
- condition: state
entity_id: binary_sensor.internet
state: 'off'
action:
- if:
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'on'
then:
- service: script.family_is_home_night
data: {}
else:
- service: script.family_is_home_day
data: {}
alias: Check early night mode, choose which script to run
mode: restart
- id: '1641102018783'
alias: Family Has Left
description: Runs when the family has left home
trigger:
- platform: state
entity_id:
- binary_sensor.parents_home
not_from: unavailable
to: 'off'
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: binary_sensor.internet
state: 'off'
action:
- service: script.family_is_away
data: {}
mode: single
- id: '1643321652916'
alias: Time-Based Presence Simulation
description: ''
trigger:
- platform: state
entity_id: binary_sensor.parents_home
to: 'off'
for:
hours: 1
minutes: 0
seconds: 0
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.presence_simulation
mode: single
- id: '1644510872801'
alias: iCloud3 Restart
description: For restarting iCloud3 when my phone goes off the rails
trigger:
- platform: state
entity_id: sensor.tony_s_iphone_info
to: ●● PAUSED ●●
condition: []
action:
- service: icloud3.restart
data: {}
mode: single
- id: '1645738561470'
alias: Cast to Basement TV
description: ''
use_blueprint:
path: kind3r/cast-and-re-cast-a-lovelace-view-to-a-google-hub.yaml
input:
dashboard: lovelace
player: media_player.basement_tv_chromecast
view: chromecast
- id: '1651785688186'
alias: Watchman Audit on Startup
description: Runs the Watchman Audit script after Home Assistant has successfully
started up
trigger:
- platform: homeassistant
event: start
condition: []
action:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: watchman.report
data: {}
alias: Watchman Report
mode: single
- id: '1651787468337'
alias: Reboot handling
description: ''
triggers:
- event: start
id: hass_start
trigger: homeassistant
- event: shutdown
id: hass_stop
trigger: homeassistant
conditions: []
actions:
- alias: Routing
choose:
- conditions:
- condition: trigger
id: hass_start
alias: Startup
sequence:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- data: {}
target:
entity_id:
- automation.family_has_arrived
- automation.family_has_left
- automation.scheduled_alarm_rearm
- automation.scheduled_alarm_disarm
action: automation.turn_on
- if:
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'off'
then:
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id:
- input_boolean.give_me_darkness
- input_boolean.night_mode
- input_boolean.goodnight
alias: If early night mode is off, turn off other night-related modes
- target:
entity_id:
- switch.presence_simulation
data: {}
action: switch.turn_off
- if:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.holiday_mode
state: 'on'
alias: Is holiday mode on?
- condition: state
entity_id: binary_sensor.early_night_mode
state: 'on'
alias: Is early night mode on?
alias: Test conditions
then:
- data: {}
target:
entity_id: switch.animated_scene_{{ states('input_select.holiday_animation')
| lower }}
alias: Turn on the appropriate animated holiday scene
action: switch.turn_on
alias: Turn on animated holiday scene if night time and holiday mode is on
- data: {}
action: script.tony_desktop_refresh
- data: {}
action: script.tina_desktop_refresh
- data: {}
action: script.asus_laptop_refresh
- data: {}
action: script.kallen_desktop_refresh
- data: {}
action: script.win10vm_refresh
- data:
topic: house/basement/server/glances
payload: restart
qos: 0
retain: false
alias: Restart Glances via MQTT
action: mqtt.publish
- data: {}
alias: Reset all speaker volumes
action: script.volume_reset
- if:
- condition: state
entity_id: input_boolean.studio_quiet
state: 'off'
then:
- data:
who: basement
call_ha_started: 1
action: script.status_annc
else:
- stop: Studio has requested quiet, and Jarvis respects this
alias: Announce back online, unless studio has requested quiet
- conditions:
- condition: trigger
id: hass_stop
alias: Shutdown
sequence:
- data:
stop_actions: true
target:
entity_id:
- automation.family_has_arrived
- automation.family_has_left
action: automation.turn_off
mode: queued
- id: '1654547257475'
alias: Battery Monitoring
description: Monitor all battery-powered things for low battery states
use_blueprint:
path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
input:
time: '11:00:00'
exclude:
entity_id:
- sensor.tinas_iphone_battery_level
- sensor.kallen_iphone_battery_level
- sensor.tinas_ipad_battery_level
- sensor.tony_s_iphone_battery_level
- sensor.tony_s_ipad_battery_level
actions:
- service: script.text_notify
data:
type: normal
who: tony
title: Low Batteries in House
message: 'Low battery alert for: {{sensors}}'
tag: battery-monitoring
- id: '1655493590791'
alias: NWS Announce Weather Alert for Tornado (CLEAR)
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.weatheralerts_active_alerts
attribute: tornado_warning_count
below: '1'
condition:
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- condition: state
entity_id: input_boolean.tornado_alarm
state: 'on'
action:
- service: script.text_notify
data:
type: alert
who: all
message: clear_notification
tag: tornado-warning
alias: Clear critical notification
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.tornado_alarm
- service: script.volume_reset
data: {}
- service: script.max_brightness_cleanup
data: {}
- service: script.text_notify
data:
title: Tornado Warning is cleared
message: Check your surroundings and make sure it is safe to leave cover
who: all
type: alert
tag: tornado-cleared
- service: script.tv_notify
data:
title: Tornado Warning is cleared
message: Check your surroundings and make sure it is safe to leave cover
who: all
- service: script.speech_engine
data:
who: everywhere
message: Tornado warning has been cleared. Check your surroundings and make
sure it is safe to leave cover.
type: alert
- wait_template: '{{ is_state(''input_boolean.tornado_alarm'',''on'') }}'
continue_on_timeout: true
timeout: 00:05:00
alias: Make sure no further warnings are issued
- if:
- condition: state
entity_id: input_boolean.tornado_alarm
state: 'off'
then:
- if:
- condition: or
conditions:
- condition: time
before: input_datetime.audible_notification_on
alias: Before audible notifications on
- condition: time
after: input_datetime.audible_notification_off
alias: After audible notifications off
alias: Should audible notifications be off
then:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.audible_notifications
else:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.audible_notifications
else:
- stop: Tornado alert re-activated
mode: single
- id: '1667341156218'
alias: White Noise
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.white_noise_emma_bedroom
to: 'on'
from: 'off'
id: emma-on
alias: Emma On
- platform: state
entity_id:
- input_boolean.white_noise_basement
to: 'on'
from: 'off'
id: basement-on
alias: Basement On
- platform: state
entity_id:
- input_boolean.white_noise_kallen_bedroom
to: 'on'
from: 'off'
id: kallen-on
alias: Kallen On
- platform: state
entity_id:
- input_boolean.white_noise_emma_bedroom
from: 'on'
to: 'off'
id: emma-off
alias: Emma Off
- platform: state
entity_id:
- input_boolean.white_noise_basement
from: 'on'
to: 'off'
id: basement-off
alias: Basement Off
- platform: state
entity_id:
- input_boolean.white_noise_kallen_bedroom
from: 'on'
to: 'off'
id: kallen-off
alias: Kallen Off
- alias: Emma Timeout
platform: state
id: emma-timeout
entity_id:
- media_player.emma_bedroom_google_speaker
to: 'off'
- alias: Basement Timeout
platform: state
id: basement-timeout
entity_id:
- media_player.basement_google_speaker
to: 'off'
- alias: Kallen Timeout
platform: state
id: kallen-timeout
entity_id:
- media_player.kallen_bedroom_google_speaker
to: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: emma-on
sequence:
- alias: Start river sounds
service: google_assistant_sdk.send_text_command
data:
command: give me river noise on emma bedroom speaker
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.emma_bedroom_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.emma_bedroom_google_speaker
alias: Set volume
alias: Emma On
- conditions:
- condition: trigger
id: basement-on
sequence:
- service: google_assistant_sdk.send_text_command
data:
command: give me thunderstorm sounds on basement studio speaker
alias: Start thunderstorm sounds
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.basement_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.basement_google_speaker
alias: Set volume
alias: Basement On
- conditions:
- condition: trigger
id: kallen-on
sequence:
- alias: Start river sounds
service: google_assistant_sdk.send_text_command
data:
command: give me river noise on kallen bedroom speaker
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.kallen_bedroom_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.kallen_bedroom_google_speaker
alias: Set volume
alias: Kallen On
- conditions:
- condition: trigger
id: emma-off
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id: media_player.emma_bedroom_google_speaker
alias: Turn off speaker
- alias: If Emma is awake, reset volume
if:
- condition: state
entity_id: input_boolean.emma_sleeping
state: 'off'
then:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: "{% if is_state('input_boolean.give_me_darkness','on') %}\n
\ {{ states('input_number.emma_bedroom_google_speaker_night_volume')
}}\n{% else %}\n {{ states('input_number.emma_bedroom_google_speaker_day_volume')
}}\n{% endif %}\n"
target:
entity_id: media_player.emma_bedroom_google_speaker
alias: Reset volume
alias: Emma Off
- conditions:
- condition: trigger
id: basement-off
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id: media_player.basement_google_speaker
alias: Turn off speaker
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: "{% if is_state('input_boolean.give_me_darkness','on') %}\n
{{ states('input_number.basement_google_speaker_night_volume') }}\n{%
else %}\n {{ states('input_number.basement_google_speaker_day_volume')
}}\n{% endif %}\n"
target:
entity_id: media_player.basement_google_speaker
alias: Reset volume
alias: Basement Off
- conditions:
- condition: trigger
id: kallen-off
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id: media_player.kallen_bedroom_google_speaker
alias: Turn off speaker
- alias: If Kallen is awake, reset volume
if:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.kallen_sleeping
state: 'off'
- condition: state
entity_id: input_boolean.kallen_morning_briefing
state: 'off'
then:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: "{% if is_state('input_boolean.give_me_darkness','on') %}\n
\ {{ states('input_number.kallen_bedroom_google_speaker_night_volume')
}}\n{% else %}\n {{ states('input_number.kallen_bedroom_google_speaker_day_volume')
}}\n{% endif %}\n"
target:
entity_id: media_player.kallen_bedroom_google_speaker
alias: Reset volume
alias: Kallen Off
- conditions:
- condition: trigger
id:
- emma-timeout
sequence:
- alias: Reset white noise
if:
- condition: state
entity_id: input_boolean.white_noise_emma_bedroom
state: 'on'
alias: Check if white noise is still desired
then:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- alias: Start river sounds
service: google_assistant_sdk.send_text_command
data:
command: give me river noise on emma bedroom speaker
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.emma_bedroom_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.emma_bedroom_google_speaker
alias: Set volume
alias: Emma Timeout
- conditions:
- condition: trigger
id:
- basement-timeout
sequence:
- alias: Reset white noise
if:
- alias: Check if white noise is still desired
condition: state
entity_id: input_boolean.white_noise_basement
state: 'on'
then:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- alias: Start thunderstorm sounds
service: google_assistant_sdk.send_text_command
data:
command: give me thunderstorm sounds on basement studio speaker
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.basement_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.basement_google_speaker
alias: Set volume
alias: Basement Timeout
- conditions:
- condition: trigger
id:
- kallen-timeout
sequence:
- alias: Reset white noise
if:
- alias: Check if white noise is still desired
condition: state
entity_id: input_boolean.white_noise_kallen_bedroom
state: 'on'
then:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- alias: Start river sounds
service: google_assistant_sdk.send_text_command
data:
command: give me river noise on kallen bedroom speaker
- service: media_player.volume_set
data:
volume_level: '{{ states(''input_number.kallen_bedroom_google_speaker_night_volume'')
}}'
target:
entity_id: media_player.kallen_bedroom_google_speaker
alias: Set volume
alias: Kallen Timeout
mode: parallel
max: 20
- id: '1671584633378'
alias: Delivery Mode Cleanup
description: ''
trigger:
- platform: time
at: 00:00:00
alias: At midnight
condition:
- condition: state
entity_id: input_boolean.delivery_mode
state: 'on'
alias: If Delivery Mode is on
for:
hours: 1
minutes: 0
seconds: 0
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.delivery_mode
alias: Turn off Delivery Mode
mode: single
- id: '1671946146837'
alias: Christmas Day Show
description: For that one special day a year, to make it just a little more magical
trigger:
- platform: state
entity_id:
- input_boolean.christmas_day_show
from: 'off'
to: 'on'
alias: Start Show
id: start-show
- platform: state
entity_id:
- input_boolean.christmas_day_show
from: 'on'
to: 'off'
alias: Stop Show
id: stop-show
condition: []
action:
- alias: If starting show
if:
- condition: trigger
id: start-show
then:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.adaptive_lighting_living_room
- switch.adaptive_lighting_tina_lamp
alias: Turn off adaptive lighting
- alias: Start light show
parallel:
- alias: Run effect on Living Room LED Strip
service: lifx.effect_move
data:
speed: 4
direction: right
theme: christmas
power_on: true
target:
entity_id: light.living_room_led_strip
- service: switch.turn_on
data: {}
target:
entity_id: switch.animated_scene_christmas_day
alias: Turn on Christmas Day scene
- alias: TTS Announcement
service: script.speech_engine
data:
who: living_room
message: Merry Christmas everyone. And now, let us enjoy some awesome Christmas
music!
type: alert
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
alias: Give TTS time to finish
enabled: true
- alias: Play music via built-in Chromecast on Living Room TV
service: media_player.play_media
data:
media_content_type: cast
media_content_id: ' { "app_name": "youtube", "media_id": "9yZEwvKdGTY", "playlist_id":
"PLPggnb95lN4n2rQBKYK-qBn1PNqpDfq4y" }'
target:
entity_id: media_player.living_room_tv_chromecast
- service: media_player.select_source
data:
source: Living Room TV
target:
entity_id: media_player.spotify_iron_nerd
alias: Set source to Living Room TV
enabled: false
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
alias: Make sure that took effect
enabled: false
- service: media_player.play_media
data:
media_content_id: https://open.spotify.com/track/7LPOnS3OvbF6DGrt9fQ7x9?si=3c7e28d623324a80
media_content_type: music
target:
entity_id: media_player.spotify_iron_nerd
alias: Play my Christmas Music playlist
enabled: false
- service: media_player.media_play
data: {}
target:
entity_id: media_player.spotify_iron_nerd
alias: Actually play the music
enabled: false
- alias: If stopping show
if:
- condition: trigger
id: stop-show
then:
- service: media_player.media_pause
data: {}
target:
entity_id: media_player.spotify_iron_nerd
alias: Stop the music
enabled: false
- service: media_player.media_pause
target:
entity_id: media_player.living_room_tv_chromecast
data: {}
alias: Pause music
- service: switch.turn_off
data: {}
target:
entity_id: switch.animated_scene_christmas_day
alias: Turn off Christmas Day scene
- alias: Reset lights
parallel:
- service: input_select.select_option
data:
option: Adaptive
target:
entity_id: input_select.living_room_scenes
alias: Set living room back to adaptive
- service: input_select.select_option
data:
option: Reset
target:
entity_id: input_select.tina_desk_scenes
alias: Reset Tina desk scene
- service: switch.turn_on
data: {}
target:
entity_id: switch.animated_scene_christmas
alias: Turn on Front Porch Christmas scene
- alias: TTS Announcement
service: script.speech_engine
data:
who: living_room
message: Thats all folks, enjoy the rest of your Christmas Day! Eat lots of
food and have lots of fun! And hey, maybe you could bring me some cake?
I love cake!
type: alert
- alias: Give TTS time to finish
delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
enabled: true
- service: media_player.media_play
target: