-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
1243 lines (1240 loc) · 28 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: '1532643018186'
alias: Turn ON Kitchen
trigger:
- entity_id: binary_sensor.blue_sensor
platform: state
to: 'on'
condition:
- condition: state
entity_id: group.everyone
state: 'on'
action:
- entity_id: light.kitchen
service: light.turn_on
- id: '1506386785372'
alias: Turn off Kitchen Light
trigger:
- entity_id: binary_sensor.blue_sensor
for: 0:5:00
platform: state
to: 'off'
condition:
action:
- alias: Kitchen
entity_id: light.kitchen
service: light.turn_off
- id: '1511309564165'
alias: Mum Home
trigger:
- entity_id: binary_sensor.mum_presence
platform: state
to: 'on'
condition: []
action:
- delay: 00:00:20
- data:
data:
method: all
type: announce
message: '''{{ ["Hey everybody. Mums home", "Welcome home Good looking", "Welcome
home Mum", "Hi Nicole. Welcome home"] | random }}''
'
target:
- media_player.cinema
- media_player.living_room
service: notify.alexa_media
- id: '1514770339871'
alias: Home restarted
trigger:
- event: start
platform: homeassistant
condition: []
action:
- data:
message: Home rebooted {{ now().strftime('%I:%M %p') }}.
service: notify.android_unnamed_device_3
- data:
data:
method: all
type: announce
message: System is now ready.
target:
- media_player.cinema
- media_player.living_room
service: notify.alexa_media
- id: '1516612143501'
alias: 3am bedroom aircon off
trigger:
- at: 03:00:00
platform: time
condition: []
action:
- entity_id: switch.bedroom_air
service: switch.turn_off
- action:
data:
target:
- media_player.cinema
- media_player.living_room
message: It's Lunch time. nom nom nom
data:
type: announce
method: all
service: notify.alexa_media
alias: Lunch
condition: []
id: '1513404186579'
trigger:
- at: '12:00'
platform: time
- action:
data:
target:
- media_player.cinema
- media_player.living_room
- media_player.study
- media_player.ella_s_room
message: '''{{ ["It''s time for a shower. Ethan", "It''s time for a shower.
Ella"] | random }}''
'
data:
type: announce
method: all
service: notify.alexa_media
alias: Shower time
condition: []
id: '1517455089975'
trigger:
- at: '17:00'
platform: time
- action:
- data: {}
service: script.aircon_on
entity_id: script.aircon_on
alias: Air Conditioner
condition: []
id: '1522283659585'
trigger:
- entity_id: input_boolean.air_con
platform: state
to: 'on'
- action:
- service: script.aircon_off
alias: Air off
condition: []
id: '1522284267711'
trigger:
- entity_id: input_boolean.air_con
platform: state
to: 'off'
- action:
- service: script.cin_air_on
alias: Cinema air on
condition: []
id: '1522286679217'
trigger:
- entity_id: input_boolean.cin_air
platform: state
to: 'on'
- action:
- service: script.cin_off
alias: Cinema air off
condition: []
id: '1522286829021'
trigger:
- entity_id: input_boolean.cin_air
platform: state
to: 'off'
- id: '1522896103576'
alias: Dad's Home
trigger:
- entity_id: binary_sensor.dad_presence
platform: state
to: 'on'
condition:
- after: 06:00:00
before: '23:00:00'
condition: time
action:
- delay: 00:00:28
- data:
data:
method: all
type: announce
message: '''{{ ["Oh. Hi Shayne.", "Hooray. Dads Home", "Welcome home Shayno
you handsome devil", "Welcome home Master"] | random }}''
'
target:
- media_player.cinema
- media_player.living_room
- media_player.study
service: notify.alexa_media
- data: {}
entity_id: group.tv_area
service: homeassistant.turn_on
- id: '1530705730740'
alias: House empty shutdown
trigger:
- entity_id: group.everyone
platform: state
to: 'off'
condition: []
action:
entity_id: all
service: light.turn_off
- id: '1531902807023'
alias: Ella motion
trigger:
- entity_id: binary_sensor.ella_motion
for:
seconds: 0.1
platform: state
to: 'on'
condition:
- below: '30'
condition: numeric_state
entity_id: sensor.illumination_158d000237a778
- after: 07:00
before: '20:30'
condition: time
action:
- entity_id: switch.wall_switch_158d0002416083
service: switch.turn_on
- id: '1532412977216'
alias: Ella motion off
trigger:
- entity_id: binary_sensor.ella_motion
for: 0:03:00
platform: state
to: 'off'
condition: []
action:
- entity_id: switch.wall_switch_158d0002416083
service: switch.turn_off
- id: '1533259114786'
alias: Ethan motion
trigger:
- entity_id: binary_sensor.ethan_motion
for:
seconds: 0.1
platform: state
to: 'on'
condition:
- below: '30'
condition: numeric_state
entity_id: sensor.illumination_158d00023db764
- after: 07:00
before: '21:00'
condition: time
action:
- entity_id: switch.wall_switch_158d00024bd786
service: switch.turn_on
- id: '1533264508482'
alias: Ethan motion off
trigger:
- entity_id: binary_sensor.ethan_motion
for: 0:03:00
platform: state
to: 'off'
condition: []
action:
- entity_id: switch.wall_switch_158d00024bd786
service: switch.turn_off
- id: '1534229405468'
alias: Cinema door closed
trigger:
- entity_id: binary_sensor.cinema_door
for:
minutes: 1
platform: state
to: 'off'
condition:
- condition: state
entity_id: switch.xbox
state: 'off'
- condition: state
entity_id: switch.movie
state: 'off'
action:
- entity_id: light.cinema_lights
service: light.turn_off
- id: '1534230246422'
alias: Cinema door open
trigger:
- entity_id: binary_sensor.cinema_door
platform: state
to: 'on'
condition:
- condition: state
entity_id: switch.xbox
state: 'off'
- condition: state
entity_id: switch.movie
state: 'off'
action:
- data:
brightness: 255
entity_id: light.cinema_lights
service: light.turn_on
- id: '1534475677485'
alias: Kodi play
trigger:
- entity_id: media_player.kodi
from: idle
platform: state
to: playing
condition: []
action:
- entity_id: light.cinema_lights
service: light.turn_off
- id: '1534475736681'
alias: Kodi pause
trigger:
- entity_id: media_player.kodi
from: playing
platform: state
to: paused
condition: []
action:
- data:
brightness: 100
entity_id: light.cinema_lights
service: light.turn_on
- id: '1534476404788'
alias: Kodi pause-playing
trigger:
- entity_id: media_player.kodi
from: paused
platform: state
to: playing
condition: []
action:
- service: light.turn_off
entity_id: light.cinema_lights
- id: '1534809454223'
alias: Mum Left work
trigger:
- entity_id: device_tracker.google_maps_106172363335848164512
event: leave
platform: zone
zone: zone.mum_work
condition: []
action:
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
message: Mum is on her way home from work
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Nicole left work {{ now().strftime('%I:%M %p') }}.
target: unnamed device_3
service: notify.android
- id: '1535357162537'
alias: Sunset Lights on
trigger:
- event: sunset
offset: -00:30:00
platform: sun
condition: []
action:
- entity_id: input_boolean.rainbow
service: input_boolean.turn_on
- entity_id: group.sunset_lights
service: homeassistant.turn_on
- entity_id: script.kitbench
service: script.turn_on
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
message: Turning on ambient lighting
data:
type: announce
method: all
service: notify.alexa_media
- id: '1535498996006'
alias: Alert door open
trigger:
- entity_id: binary_sensor.door_window_sensor_158d00027b5a98
for:
minutes: 5
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.cin_air
state: 'on'
action:
- data:
message: Cinema door open with aircon on
target: unnamed device_3
service: notify.android
- id: '1535848688294'
alias: Morning Lights off
trigger:
- at: 08:00:00
platform: time
condition: []
action:
- service: script.kitbench
- entity_id: group.morning_off_lights
service: light.turn_off
- data:
data:
method: all
type: announce
message: Turning off ambient lighting
target:
- media_player.cinema
- media_player.living_room
service: notify.alexa_media
- data: {}
service: input_boolean.turn_off
entity_id: input_boolean.rainbow
- id: '1535873340810'
alias: Living room on when dark
trigger:
- event: sunset
platform: sun
condition:
- condition: state
entity_id: group.everyone
state: 'on'
action:
- entity_id: light.lounge_room
service: light.turn_on
- id: '1537397328917'
alias: Lights off midnight
trigger:
- at: '23:59'
platform: time
condition: []
action:
- entity_id: group.midnight
service: homeassistant.turn_off
- id: '1537603734524'
alias: Ethan's Home
trigger:
- entity_id: binary_sensor.ethan_presence
platform: state
to: 'on'
condition:
- after: '14:30'
before: '16:30'
condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- delay: 00:00:20
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
message: Welcome Home Ethan
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Ethan's Home at {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1538028080707'
alias: Arrived at school
trigger:
- entity_id: device_tracker.google_maps_112588450562921760094
event: enter
platform: zone
zone: zone.ethan_school
condition:
- after: 07:00
before: '10:00'
condition: time
action:
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
message: Ethan arrived at school safely
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Ethan arrived at school {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1538028186055'
alias: Ethan left school
trigger:
- entity_id: device_tracker.google_maps_112588450562921760094
event: leave
platform: zone
zone: zone.ethan_school
condition:
- after: '14:30'
before: '16:00'
condition: time
action:
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
message: Ethan is on his way home from school
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Ethan has left school {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1541469460579'
alias: Archies Door Shut
trigger:
- at: 07:30
platform: time
condition:
- condition: state
entity_id: binary_sensor.archies_door
state: 'off'
action:
- data:
data:
method: all
type: announce
message: Reminder. Archies door Is closed
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
service: notify.alexa_media
- data:
message: Archies Door is closed. Please open {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1541802814277'
alias: Motion at door
trigger:
- entity_id: binary_sensor.ring_front_door_motion
platform: state
to: 'on'
condition:
- after: '17:00:00'
before: 07:00:00
condition: time
action:
- data:
data:
method: all
type: announce
message: There is motion at the front door
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
service: notify.alexa_media
- data:
entity_id: light.front_door
service: light.turn_on
- delay: 0:05
- data:
entity_id: light.front_door
service: light.turn_off
- id: '1541802865659'
alias: Ring doorbell
trigger:
- entity_id: binary_sensor.ring_front_door_ding
platform: state
to: 'on'
condition: []
action:
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
message: Someone is at the front door
data:
type: announce
method: all
service: notify.alexa_media
- id: '1542073464746'
alias: Smoke Detected
trigger:
- entity_id: binary_sensor.smoke_sensor_158d000279d9bd
platform: state
to: 'on'
condition: []
action:
- entity_id: switch.wall_switch_158d0002416083, switch.wall_switch_158d00024bd786,
switch.wall_switch_158d000340bcd9
service: switch.turn_on
- data: {}
entity_id: all
service: light.turn_on
- data:
data:
method: all
type: announce
message: Warning. Warning. Smoke detected. please Leave the house now. Warning.
Warning. Smoke detected. please Leave the house now.
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
service: notify.alexa_media
- data:
message: Smoke alarm has been triggered {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1542255470624'
alias: Wallfan on
trigger:
- entity_id: input_boolean.wall_fan
platform: state
to: 'on'
condition: []
action:
- service: script.wallfanon
- id: '1542255507359'
alias: Wallfan OFF
trigger:
- entity_id: input_boolean.wall_fan
platform: state
to: 'off'
condition: []
action:
- service: script.wallfanoff
- id: '1542847850253'
alias: cube on
trigger:
- event_data:
action_type: shake_air
entity_id: binary_sensor.cube_158d00028f4dee
event_type: xiaomi_aqara.cube_action
platform: event
condition:
action:
- data:
brightness: 1
entity_id: light.cinema_lights
service: light.turn_on
- id: '1543206062881'
alias: Movie Hot
trigger:
- entity_id: remote.cinema
platform: state
to: 'on'
condition:
- above: '26'
condition: numeric_state
entity_id: sensor.cinema_temp
- condition: state
entity_id: input_boolean.cin_air
state: 'off'
action:
- data:
data:
method: all
type: announce
message: she's a wee bit warm in here. turning on the Air conditioner.
target:
- media_player.cinema
service: notify.alexa_media
- delay: 00:00:07
- entity_id: input_boolean.cin_air
service: input_boolean.turn_on
- id: '1543225918059'
alias: Ella Bedtime
trigger:
- at: '20:20'
platform: time
condition:
- condition: time
weekday:
- sun
- mon
- tue
- wed
- thu
action:
- data:
data:
method: all
type: announce
message: Ella Bella. It's bedtime princess.
target:
- media_player.cinema
- media_player.living_room
- media_player.ella_s_room
service: notify.alexa_media
- id: '1543225960808'
alias: Ethan Bedtime
trigger:
- at: '20:50'
platform: time
condition:
- condition: time
weekday:
- sun
- mon
- tue
- wed
- thu
action:
- data:
data:
method: all
type: announce
message: Hey Ethan. Time for bed buddy.
target:
- media_player.cinema
- media_player.living_room
- media_player.ethan_s_room
- media_player.study
service: notify.alexa_media
- id: '1543271511209'
alias: Movie hot two
trigger:
- above: '26'
entity_id: sensor.cinema_temp
platform: numeric_state
condition:
- condition: state
entity_id: input_boolean.cin_air
state: 'off'
- condition: state
entity_id: remote.cinema
state: 'on'
action:
- data:
data:
method: all
type: announce
message: It's getting a bit warm in here. turning on air conditioner
target:
- media_player.cinema
service: notify.alexa_media
- delay: 00:00:05
- entity_id: input_boolean.cin_air
service: input_boolean.turn_on
data: {}
- entity_id: input_boolean.wall_fan
service: input_boolean.turn_off
- id: '1543368605180'
alias: Alert Rain
trigger:
- entity_id: sensor.dark_sky_icon_0
platform: state
to: rain
condition:
- condition: state
entity_id: binary_sensor.laundry_door
state: 'on'
- after: 06:00:00
before: '22:00:00'
condition: time
action:
- data:
data:
method: all
type: announce
message: Warning. It's raining and the Laundry door is open
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.study
service: notify.alexa_media
- id: '1543729508430'
alias: cube move
trigger:
- platform: event
event_data:
entity_id: binary_sensor.cube_158d00028f4dee
action_type: move
event_type: xiaomi_aqara.cube_action
condition:
action:
- service: light.turn_off
entity_id: light.cinema_lights
- id: '1547958179109'
alias: Dad Left Work
trigger:
- entity_id: device_tracker.google_maps_113911579847927261006
event: leave
platform: zone
zone: zone.dads_work
condition: []
action:
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
message: Dad's on his way home from work. yee haa
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Shayne left work {{ now().strftime('%I:%M %p') }}.
target: unnamed device_2
service: notify.android
- id: '1549579427733'
alias: Morning still home
trigger:
- at: 08:00:30
platform: time
condition:
- condition: state
entity_id: binary_sensor.dad_presence
state: 'on'
action:
- entity_id: group.tv_area
service: homeassistant.turn_on
- id: '1550818208846'
alias: Ella arrived school
trigger:
- entity_id: device_tracker.google_maps_116853620882534136297
event: enter
platform: zone
zone: zone.ella_school
condition:
- after: 08:00
before: '10:00'
condition: time
action:
- data:
data:
method: all
type: announce
message: Ella has arrived at school safely
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
service: notify.alexa_media
- data:
message: Ella arrived at school {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1550818781143'
alias: Ella left school
trigger:
- entity_id: device_tracker.google_maps_116853620882534136297
event: leave
platform: zone
zone: zone.ella_school
condition:
- after: '14:50'
before: '16:00'
condition: time
action:
- data:
data:
method: all
type: announce
message: Ella is on her way home from school
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.study
- media_player.ella_s_room
service: notify.alexa_media
- data:
message: Ella has left school {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: '1550820241086'
alias: Ellas home
trigger:
- entity_id: binary_sensor.ella_presence
platform: state
to: 'on'
condition:
- after: '14:50'
before: '16:30'
condition: time
action:
- delay: 00:00:20
- data:
target:
- media_player.cinema
- media_player.living_room
- media_player.bedroom
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
message: Welcome home Ella
data:
type: announce
method: all
service: notify.alexa_media
- data:
message: Ella's Home at {{ now().strftime('%I:%M %p') }}.
service: notify.android
- id: Roku airon
alias: roku airon
trigger:
- platform: event
event_type: roku_command
event_data:
type: keypress
key: Play
action:
- service: input_boolean.turn_on
entity_id: input_boolean.cin_air
- id: Roku airoff
alias: roku airoff
trigger:
- event_data:
key: Back
type: keypress
event_type: roku_command
platform: event
action:
- entity_id: input_boolean.cin_air
service: input_boolean.turn_off
- id: Wallfan on
alias: roku Fanon
trigger:
- event_data:
key: BackSpace
type: keypress
event_type: roku_command
platform: event
action:
- entity_id: input_boolean.wall_fan
service: input_boolean.turn_on
- id: Wallfan off
alias: roku Fanoff
trigger:
- event_data:
key: Home
type: keypress
event_type: roku_command
platform: event
action:
- entity_id: input_boolean.wall_fan
service: input_boolean.turn_off
- id: Cinema come in
alias: roku cinema
trigger:
- event_data:
key: Info
type: keypress
event_type: roku_command
platform: event
action:
- data:
data:
method: all
type: announce
message: Can someone please come to the cinema room
target:
- media_player.living_room
- media_player.ethan_s_room
- media_player.ella_s_room
- media_player.study
service: notify.alexa_media
- id: '1552896355630'
alias: Vacuum
trigger:
- at: 09:15
platform: time
condition:
- condition: state
entity_id: group.parents
state: 'off'
action:
- entity_id: switch.vacuum
service: switch.turn_on
- data:
message: Vacuum Started Cleaning {{ now().strftime('%I:%M %p') }}.
service: notify.android_unnamed_device_3
- id: 1531902dsfsdfds3
alias: Bathroom Motion
trigger:
- entity_id: binary_sensor.motion_sensor_158d000313dbd7
platform: state
to: 'on'
condition:
- below: '400'
condition: numeric_state
entity_id: sensor.illumination_158d000313dbd7
action:
- data_template:
brightness: '{% if now().hour > 23 %}10{% elif now().hour < 4 %}10{% else %}200{%
endif %}'
entity_id: light.yeelight_color2_04cf8ca89afd
service: light.turn_on