forked from Clooos/Home-Assistant-Mobile-First
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
6686 lines (6679 loc) · 176 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: '1594300644662'
alias: Présence - Start Deezer when I'm home
description: ''
trigger:
- entity_id: input_boolean.quentin_is_home
from: 'off'
platform: state
to: 'on'
condition:
- after: 08:00:00
before: '21:00'
condition: time
- condition: not
conditions:
- condition: state
entity_id: switch.television
state: 'on'
- condition: state
entity_id: media_player.salon
state: playing
- condition: state
entity_id: device_tracker.laptop_s4277thu_2
state: not_home
- condition: state
entity_id: input_boolean.mode_silencieux
state: 'off'
action:
- data: {}
entity_id: switch.deezer
service: switch.turn_on
mode: single
- id: '1594300756991'
alias: Mode absent - Quit Deezer when I leave home
description: ''
trigger:
- entity_id: input_boolean.quentin_is_home
from: 'on'
platform: state
to: 'off'
- entity_id: input_boolean.geraldine_is_home
platform: state
to: 'off'
- platform: state
entity_id: binary_sensor.presence_maison
from: 'on'
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.presence_maison
state: 'off'
action:
- data: {}
entity_id: switch.deezer
service: switch.turn_off
- data: {}
entity_id: switch.television
service: switch.turn_off
mode: single
- id: '1594301551866'
alias: Mode absent - Turn off the everything when I leave home
description: ''
trigger:
- entity_id: binary_sensor.presence_maison
from: 'on'
platform: state
to: 'off'
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id:
- light.bar_cuisine_1
- light.bar_cusine_2
- light.colorikea
- light.dimmable_light_1
- light.dimmable_light_1_2
- light.dimmable_light_2
- light.hue_filament_bulb_1
- light.lampadaire
- light.lampes_meuble
- light.led_lit
- light.spots_cuisine
- light.table_salle_a_manger_1
- light.table_salle_a_manger_2
- light.table_salle_a_manger_3
- light.toutes_les_lampes
- service: media_player.media_stop
data: {}
entity_id: media_player.salon
- data: {}
entity_id: switch.television
service: switch.turn_off
- service: media_player.turn_off
data: {}
target:
entity_id:
- media_player.salon_2
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: script.eteint_tous_les_appareils
data: {}
- service: light.turn_off
data: {}
entity_id: light.toutes_les_lampes
- service: switch.turn_off
data: {}
entity_id: switch.ambihue
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: light.turn_off
data: {}
entity_id: light.toutes_les_lampes
- service: switch.turn_off
data: {}
entity_id: switch.television
- service: light.turn_off
data: {}
entity_id: light.ambilight
mode: single
- id: '1594465616430'
alias: IFTTT
description: ''
trigger:
- event_data:
action: call_service
event_type: ifttt_webhook_received
platform: event
condition: []
action:
- data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
service_template: '{{ trigger.event.data.service }}'
- id: '1595774821971'
alias: Multimédia - Source PC auto
description: ''
trigger:
- entity_id: switch.pc
from: 'off'
platform: state
to: 'on'
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: switch.television
state: 'off'
sequence:
- service: switch.turn_on
data: {}
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: media_player.select_source
data:
source: PC
entity_id: media_player.salon_2, media_player.salon
- data:
command: am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8
-n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
entity_id: media_player.android_tv
service: androidtv.adb_command
default:
- service: media_player.select_source
data:
source: PC
entity_id: media_player.salon_2, media_player.salon
enabled: false
- data:
command: am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8
-n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
entity_id: media_player.android_tv
service: androidtv.adb_command
enabled: false
mode: single
- id: '1595789770682'
alias: Alarme - Mode absent (auto)
description: ''
trigger:
- entity_id: binary_sensor.motion_sensor_ascenseur
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.motion_sensor_escaliers
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.geraldine_is_home
state: 'off'
- condition: state
entity_id: input_boolean.quentin_is_home
state: 'off'
action:
- data:
media_content_id: /local/audio/alarm.mp3
media_content_type: music
entity_id: media_player.google_nest_mini_3
service: media_player.play_media
- data:
message: Votre alarme s'est activée, il est fort possible que quelqu'un se soit
introduit chez vous !
title: Alarme activée !
service: notify.mail
mode: single
- id: '1595830731813'
alias: Aspirateur - Etage - Rez-de-chaussée - Démarrage journalier
description: ''
trigger:
- entity_id: input_boolean.geraldine_is_home
from: 'on'
platform: state
to: 'off'
- platform: state
entity_id: input_boolean.quentin_is_home
from: 'on'
to: 'off'
condition:
- after: 07:30:00
before: '12:00:00'
condition: time
weekday:
- mon
- wed
- fri
- tue
- thu
- condition: state
entity_id: input_boolean.geraldine_is_home
state: 'off'
- condition: state
entity_id: input_boolean.quentin_is_home
state: 'off'
action:
- data: {}
service: vacuum.start
target:
entity_id:
- vacuum.aspirateur_rez_de_chaussee
- data:
fan_speed: Turbo
service: vacuum.set_fan_speed
target:
entity_id:
- vacuum.aspirateur_rez_de_chaussee
mode: single
- id: '1597063052712'
alias: Play music in bathroom
description: ''
trigger:
- entity_id: device_tracker.megaboom3
platform: state
to: home
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.media_state
state: unknown
- condition: state
entity_id: sensor.media_state
state: denon_paused
- condition: state
entity_id: sensor.media_state
state: tv_paused
action:
- service: switch.turn_on
data: {}
entity_id: switch.deezer
mode: restart
max: 10
- id: '1600104688902'
alias: Mode nuit - ON
description: ''
trigger:
- entity_id: input_boolean.mode_nuit
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data: {}
service: script.bonne_nuit
mode: single
- id: '1600255901886'
alias: Présence - Quentin is home
description: ''
trigger:
- entity_id: device_tracker.telephone_mi
platform: state
to: home
- entity_id: device_tracker.quentin
platform: state
to: home
- platform: state
entity_id: person.quentin
to: home
- platform: state
entity_id: input_boolean.quentin_is_home
to: 'on'
- platform: state
entity_id: device_tracker.mi_9
to: home
- platform: state
entity_id: device_tracker.mi9_mi9
to: home
- platform: state
entity_id: device_tracker.telephone_mi
to: home
- platform: template
value_template: '{{ is_state("sensor.mi_9_lieu_geocode", "!secret street !secret house_number_2, !secret postcode
!secret town, !secret country") }}'
condition:
- condition: state
entity_id: input_boolean.quentin_is_home
state: 'off'
action:
- data: {}
entity_id: input_boolean.quentin_is_home
service: input_boolean.turn_on
mode: single
- id: '1600269951918'
alias: Présence - Géraldine is home
description: ''
trigger:
- entity_id: person.geraldine2
platform: state
from: not_home
to: home
condition:
- condition: state
entity_id: input_boolean.geraldine_is_home
state: 'off'
action:
- data: {}
entity_id: input_boolean.geraldine_is_home
service: input_boolean.turn_on
mode: single
- id: '1600270135231'
alias: Présence - Géraldine is not home
description: ''
trigger:
- entity_id: person.geraldine2
for: 00:17:00
from: home
platform: state
to: not_home
- platform: state
entity_id: device_tracker.iphone_de_geraldine
from: home
to: not_home
for: 00:10:00
condition: []
action:
- data: {}
entity_id: input_boolean.geraldine_is_home
service: input_boolean.turn_off
mode: single
- id: '1600272761200'
alias: Mode absent - ON
description: ''
trigger:
- entity_id: input_boolean.mode_absent
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data: {}
entity_id: input_boolean.mode_absent
service: input_boolean.turn_on
- service: switch.turn_off
target:
entity_id: switch.turn_off_all_devices
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- data: {}
service: input_boolean.turn_off
target:
entity_id:
- input_boolean.geraldine_is_home
- input_boolean.quentin_is_home
- service: automation.turn_off
target:
entity_id: automation.geraldine_is_home
mode: single
- id: '1600273028066'
alias: Mode absent - OFF
description: ''
trigger:
- entity_id: input_boolean.mode_absent
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: automation.geraldine_is_home
service: automation.turn_on
- condition: state
entity_id: device_tracker.geraldine_iphone
state: home
- data: {}
entity_id: input_boolean.geraldine_is_home
service: input_boolean.turn_on
mode: single
- id: '1600355850574'
alias: Annonce Google Home - Trash day
description: ''
trigger:
- entity_id: binary_sensor.presence_hall_entree
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.mode_silencieux
state: 'off'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
action:
- choose:
- conditions:
- after: '17:30'
before: '23:59'
condition: time
- condition: state
entity_id: sensor.collecte_des_dechets
state: Collecte déchets résiduelles, Collecte déchets organiques in 1 days
sequence:
- service: tts.google_say
data:
entity_id: media_player.google_nest_mini
message: N'oubliez pas de sortir les poubelles résiduelles et organiques
cache: true
language: fr
- conditions:
- after: '17:30'
before: '23:59'
condition: time
- condition: state
entity_id: sensor.collecte_des_dechets
state: Collecte poubelles PMC in 1 days
sequence:
- service: tts.google_say
data:
entity_id: media_player.google_nest_mini
message: N'oubliez pas de sortir les poubelles PMC
cache: true
language: fr
- conditions:
- after: '17:30'
before: '23:59'
condition: time
- condition: state
entity_id: sensor.collecte_des_dechets
state: Collecte papiers et cartons in 1 days
sequence:
- service: tts.google_say
data:
entity_id: media_player.google_nest_mini
message: N'oubliez pas de sortir les papiers et les cartons
cache: true
language: fr
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
mode: single
- id: '1607186573484'
alias: Ambiances - Extinction - Chambre
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.presence_chambre_parentale
to: 'off'
for:
hours: 0
minutes: 1
seconds: 30
from: 'on'
condition:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
action:
- service: light.turn_off
data:
transition: 7
target:
entity_id:
- light.led_lit
- light.hue_filament_bulb_1
- light.chambre_chevet
mode: restart
- id: '1607250742115'
alias: Ambiances - Allumage auto du sapin
description: ''
trigger:
- event: sunset
offset: -00:45:00
platform: sun
- entity_id: input_boolean.quentin_is_home
from: 'off'
platform: state
to: 'on'
- entity_id: input_boolean.geraldine_is_home
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.quentin_is_home
state: 'on'
- condition: state
entity_id: input_boolean.geraldine_is_home
state: 'on'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
action:
- service: light.turn_on
data: {}
entity_id: light.ventilateur
mode: single
max: 10
- id: '1608423029342'
alias: Mode nuit - Off / Matin automatique (old)
description: ''
trigger:
- platform: webhook
webhook_id: upcoming_alarm
- platform: state
entity_id: sensor.mi_9_charger_type
to: none
condition:
- condition: state
entity_id: input_boolean.quentin_is_home
state: 'on'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'on'
action:
- service: script.morning
mode: single
- id: '1609238597771'
alias: Présence - Quentin is not home
description: ''
trigger:
- platform: state
entity_id: person.quentin
to: not_home
for:
hours: 0
minutes: 2
seconds: 0
- platform: state
entity_id: device_tracker.quentin
to: not_home
for:
hours: 0
minutes: 2
seconds: 0
- platform: template
value_template: '{{ not is_state_attr("sensor.mi_9_lieu_geocode", "thoroughfare",
!secret street ) }}'
condition:
- condition: template
value_template: '{{ not is_state_attr("sensor.mi_9_lieu_geocode", "thoroughfare",
"unknown") }}'
action:
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.quentin_is_home
mode: restart
- id: '1609779711615'
alias: Annonce Google Home - Quentin est rentré TTS
description: ''
trigger:
- platform: state
entity_id:
- sensor.quentin_presence
to: Présent
from: Absent
condition:
- condition: state
entity_id: input_boolean.mode_silencieux
state: 'off'
action:
- service: tts.google_say
data:
entity_id: media_player.google_nest_mini
message: Quentin est rentré
cache: true
language: fr-fr
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
mode: single
- id: '1609779745615'
alias: Annonce Google Home - Géraldine est rentrée TTS
description: ''
trigger:
- platform: state
entity_id: input_boolean.geraldine_is_home
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
- condition: not
conditions:
- condition: state
entity_id: device_tracker.laptop_s4277thu_2
state: home
- condition: state
entity_id: input_boolean.mode_silencieux
state: 'off'
action:
- service: tts.google_say
data:
entity_id: media_player.google_nest_mini
message: Géraldine est rentré
cache: true
language: fr-fr
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
mode: single
- id: '1611851441854'
alias: Multimédia - Denon source automatique
description: ''
trigger:
- platform: state
entity_id:
- sensor.media_state
- platform: state
entity_id:
- media_player.android_tv
attribute: source
- platform: state
entity_id:
- media_player.salon_2
attribute: source
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: sensor.media_state
state: video_playing
- condition: not
conditions:
- condition: state
entity_id: media_player.android_tv
attribute: source
state: org.droidtv.playtv
sequence:
- service: media_player.select_source
data:
source: TV Audio
target:
entity_id: media_player.salon_2
mode: restart
- id: '1612124560746'
alias: Multimédia - PlayStation 4 auto switch source on Denon and TV
description: ''
trigger:
- platform: state
entity_id: device_tracker.playstation_4
to: home
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: switch.television
state: 'off'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.television
- service: media_player.turn_on
data: {}
entity_id: media_player.salon_2
- service: media_player.select_source
data:
source: PS4
entity_id: media_player.salon_2, media_player.salon
- data:
command: am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8
-n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
entity_id: media_player.android_tv
service: androidtv.adb_command
- service: media_player.select_source
data:
source: PS4
entity_id: media_player.salon_2, media_player.salon
default:
- service: media_player.turn_on
data: {}
entity_id: media_player.salon_2
- service: media_player.select_source
data:
source: PS4
entity_id: media_player.salon_2, media_player.salon
- data:
command: am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2F.hdmi.HDMIInputService%2FHW8
-n org.droidtv.playtv/.PlayTvActivity -f 0x10000000
entity_id: media_player.android_tv
service: androidtv.adb_command
mode: single
- id: '1612463368418'
alias: Do not disturb - Stop music when Ge PC is ON
description: ''
trigger:
- platform: state
entity_id: device_tracker.laptop_s4277thu_2
to: home
condition: []
action:
- service: media_player.media_stop
data: {}
entity_id: media_player.salon, media_player.salon_2
mode: single
- id: '1612560623852'
alias: Multimédia - Denon Muting ON fix
description: ''
trigger:
- platform: template
value_template: '{{ is_state_attr("media_player.salon_2", "is_volume_muted", true)
}}'
condition:
- condition: state
entity_id: input_boolean.mode_silencieux
state: 'off'
- condition: state
entity_id: switch.television
state: 'off'
action:
- repeat:
count: '10'
sequence:
- service: media_player.volume_mute
data:
is_volume_muted: false
entity_id: media_player.salon_2, media_player.salon
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 10
mode: single
- id: '1614367747264'
alias: Ambiances - Changement en fonction de la période de la journée
description: ''
trigger:
- platform: state
entity_id: sensor.day_part
condition:
- condition: state
entity_id: switch.ambiance_auto
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: sensor.day_part
state: Matin
sequence:
- service: input_select.select_option
target:
entity_id: input_select.ambiances
data:
option: Clair
- conditions:
- condition: state
entity_id: sensor.day_part
state: Après-midi
sequence:
- service: input_select.select_option
target:
entity_id: input_select.ambiances
data:
option: Clair
- conditions:
- condition: state
entity_id: sensor.day_part
state: Soir
sequence:
- service: input_select.select_option
target:
entity_id: input_select.ambiances
data:
option: Détente
default: []
mode: single
- id: '1617553796023'
alias: Ambiances - Allumage - Chambre
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.hue_motion_sensor_2_motion
to: 'on'
from: 'off'
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.darkness_sensor
state: 'on'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'on'
enabled: false
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'on'
sequence:
- service: light.turn_on
data:
brightness: 205
transition: 3
rgb_color:
- 244
- 38
- 255
target:
entity_id:
- light.led_lit
- light.chambre_chevet
- service: light.turn_on
target:
entity_id: light.hue_filament_bulb_1
data:
brightness: 3
transition: 3
- service: script.mi_box_volume_progressif
data: {}
enabled: false
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: automation.turn_on
target:
entity_id: automation.turn_off_bedroom_at_night_no_motion
data: {}
- service: automation.turn_off
target:
entity_id: automation.allume_progressivement_la_chambre
data: {}
- conditions:
- condition: and
conditions:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
- condition: state
entity_id: binary_sensor.darkness_sensor
state: 'on'
- condition: time
after: 00:00:00
before: 06:10:00
sequence:
- service: light.turn_on
data:
brightness: 30
target:
entity_id:
- light.led_lit
- light.hue_filament_bulb_1
- light.chambre_chevet
- conditions:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
- condition: state
entity_id: binary_sensor.darkness_sensor
state: 'on'
sequence:
- service: light.turn_on
data:
brightness: 255
color_temp: 403
transition: 3
target:
entity_id:
- light.led_lit
- light.chambre_chevet
- service: light.turn_on
target:
entity_id: light.hue_filament_bulb_1
data:
transition: 3
color_temp: 500
brightness: 94
default: []
mode: restart
- id: '1617803326301'
alias: Ambiances - Extinction nuit - Chambre
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.presence_chambre_parentale
to: 'off'
for:
hours: 0
minutes: 8
seconds: 30
from: 'on'
condition: []
action:
- service: light.turn_off
data:
transition: 60
target:
entity_id: light.chambre
- service: switch.turn_off
target:
entity_id: switch.megaboom_3
data: {}
- service: media_player.turn_off
target:
entity_id:
- media_player.salon_2
data: {}
- service: automation.turn_off
target:
entity_id: automation.turn_off_bedroom_at_night_no_motion
data: {}
mode: restart
- id: '1618148272311'
alias: Ambiances - Allume la pièce principale automatiquement la nuit / le matin
description: ''
trigger:
- platform: state
from: 'off'
to: 'on'
entity_id: binary_sensor.hue_motion_sensor_1_motion
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.darkness_sensor
state: 'on'
- condition: state
entity_id: light.lampadaire
state: 'off'
- condition: state
entity_id: input_boolean.mode_nuit
state: 'off'
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.mode_nuit
state: 'on'
sequence:
- service: light.turn_on
data:
color_temp: 500