forked from jlpouffier/home-assistant-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
3788 lines (3773 loc) · 96.3 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: '1688111538910'
alias: Litière Intelligente - Incrementer passages litière
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.capteur_mouvement_litiere
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_clean_cat_litter_box
state: 'on'
action:
- service: input_number.increment
data: {}
target:
entity_id: input_number.litter_tracking
mode: single
- id: '1688112377959'
alias: "Litière Intelligente - \U0001F514 Notifier litière pleine"
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.is_litter_full
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_clean_cat_litter_box
state: 'on'
action:
- event: NOTIFIER
event_data:
action: send_when_present
title: "\U0001F408 Litière"
message: Penser a nettoyer la litière !
callback:
- title: Litière Nettoyée
event: reset_litter_tracking
icon: sfsymbols:checkmark.circle.fill
persistent: true
tag: litter_full
until:
- entity_id: binary_sensor.is_litter_full
new_state: 'off'
mode: single
- id: '1688112671844'
alias: "Litière Intelligente - \U0001F4F2 Remettre à zero passages litière depuis
notification"
description: ''
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: reset_litter_tracking
condition: []
action:
- service: input_number.set_value
data:
value: 0
target:
entity_id: input_number.litter_tracking
mode: single
- id: '1688114260897'
alias: Poubelles Intelligentes - Informer poubelle noire à sortir
description: ''
trigger:
- platform: state
entity_id:
- schedule.planning_poubelle_noire
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.poubelle_noire_a_sortir
mode: single
- id: '1688114327500'
alias: Poubelles Intelligentes - Informer poubelle verte à sortir
description: ''
trigger:
- platform: state
entity_id:
- schedule.planning_poubelle_verte
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.poubelle_verte_a_sortir
mode: single
- id: '1688114732811'
alias: "Poubelles Intelligentes - \U0001F514 Notifier poubelle noir non sortie"
description: ''
trigger:
- platform: state
entity_id:
- schedule.planning_poubelle_noire
to: 'off'
from: 'on'
condition:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
- condition: state
entity_id: input_boolean.poubelle_noire_a_sortir
state: 'on'
action:
- event: NOTIFIER
event_data:
action: send_to_present
title: "\U0001F5D1 Poubelle Noire"
message: N'oublie pas de sortir la poubelle noire
tag: black_trash
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.poubelle_noire_a_sortir
mode: single
- id: '1688114808231'
alias: "Poubelles Intelligentes - \U0001F514 Notifier poubelle verte non sortie"
description: ''
trigger:
- platform: state
entity_id:
- schedule.planning_poubelle_verte
to: 'off'
from: 'on'
condition:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
- condition: state
entity_id: input_boolean.poubelle_verte_a_sortir
state: 'on'
action:
- event: NOTIFIER
event_data:
action: send_to_present
title: ♻️ Poubelle Verte
message: N'oublie pas de sortir la poubelle verte
tag: green_trash
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.poubelle_verte_a_sortir
mode: single
- id: '1688116237944'
alias: "Boîte aux Lettres Intelligente - \U0001F514 Notifier courrier "
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.capteur_mouvement_boite_aux_lettres
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_monitor_mailbox
state: 'on'
- condition: state
entity_id: binary_sensor.is_front_door_recently_open
state: 'off'
action:
- event: NOTIFIER
event_data:
action: send_when_present
title: "\U0001F4EC Boite aux lettres"
message: Vous avez du courrier !
tag: you_got_mail
mode: single
- id: '1688116301973'
alias: Boîte aux Lettres Intelligente - Supprimer notification courrier
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.capteur_mouvement_boite_aux_lettres
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_monitor_mailbox
state: 'on'
- condition: state
entity_id: binary_sensor.is_front_door_recently_open
state: 'on'
action:
- event: NOTIFIER_DISCARD
event_data:
tag: you_got_mail
mode: single
- id: '1688117249626'
alias: Boutons Hue - Bouton Entrée
description: ''
trigger:
- platform: state
entity_id:
- event.hue_tap_dial_switch_1_bouton_1
attribute: event_type
to: repeat
id: 'on'
- platform: state
entity_id:
- event.hue_tap_dial_switch_1_bouton_2
attribute: event_type
to: repeat
id: 'on'
- platform: state
entity_id:
- event.hue_tap_dial_switch_1_bouton_3
attribute: event_type
to: repeat
id: off_no_vacuum
- platform: state
entity_id:
- event.hue_tap_dial_switch_1_bouton_4
attribute: event_type
to: repeat
id: off_vacuum
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- choose:
- conditions:
- condition: trigger
id: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.alexa
- switch.wyoming_satellite_salon_microphone
- service: cover.open_cover
data: {}
target:
entity_id: cover.living_room_cover
- service: script.welcome_home
data: {}
- conditions:
- condition: trigger
id:
- off_no_vacuum
- off_vacuum
sequence:
- service: script.leave_home
data:
call_from_main_door: true
- choose:
- conditions:
- condition: trigger
id:
- off_vacuum
sequence:
- service: vacuum.start
metadata: {}
data: {}
target:
entity_id: vacuum.neuneu
mode: parallel
max: 10
- id: '1688117431729'
alias: Boutons Hue - Bouton Salon Couloir
description: ''
trigger:
- platform: state
entity_id:
- event.hue_tap_dial_switch_7_bouton_1
attribute: event_type
to: repeat
id: on_no_cover
- platform: state
entity_id:
- event.hue_tap_dial_switch_7_bouton_2
attribute: event_type
to: repeat
id: on_cover
- platform: state
entity_id:
- event.hue_tap_dial_switch_7_bouton_3
attribute: event_type
to: repeat
id: off_no_cover
- platform: state
entity_id:
- event.hue_tap_dial_switch_7_bouton_4
attribute: event_type
to: repeat
id: off_cover
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- choose:
- conditions:
- condition: trigger
id:
- on_no_cover
- on_cover
sequence:
- service: hue.activate_scene
target:
entity_id:
- scene.salon_salon_100
- scene.entree_entree_100
- scene.cuisine_cuisine_100
data:
transition: 1
- conditions:
- condition: trigger
id:
- off_no_cover
- off_cover
sequence:
- service: light.turn_off
data: {}
target:
floor_id: rez_de_chaussee
- choose:
- conditions:
- condition: trigger
id:
- on_cover
sequence:
- service: cover.open_cover
metadata: {}
data: {}
target:
entity_id: cover.living_room_cover
- conditions:
- condition: trigger
id:
- off_cover
sequence:
- service: cover.close_cover
target:
entity_id:
- cover.living_room_cover
data: {}
mode: single
- id: '1688118075093'
alias: "Machine a Laver Intelligente - \U0001F514 Notifier cycle de lavage terminé"
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.is_washing_machine_running
to: 'off'
from: 'on'
condition:
- condition: state
entity_id: input_boolean.automation_monitor_washing_machine
state: 'on'
action:
- event: NOTIFIER
event_data:
action: send_when_present
title: "\U0001FAE7 Machine à laver"
message: Cycle de lavage terminé !
tag: washing_mashine_over
mode: single
- id: '1688129246113'
alias: Irrigation intelligente - Calculer fin arrosage
description: ''
trigger:
- platform: state
entity_id:
- valve.irrigation
to: open
from: closed
condition:
- condition: state
entity_id: input_boolean.irrigation_automation
state: 'on'
action:
- service: input_datetime.set_datetime
data:
datetime: '{{ now() + timedelta (minutes = states(''input_number.irrigation_time'')
| int) }}'
target:
entity_id: input_datetime.end_of_irrigation
mode: single
- id: '1688129871554'
alias: Irrigation intelligente - Arrêter arrosage
description: ''
trigger:
- platform: time
at: input_datetime.end_of_irrigation
id: end
- platform: homeassistant
event: start
id: restart
- platform: state
entity_id:
- input_boolean.irrigation_automation
condition:
- condition: state
entity_id: input_boolean.irrigation_automation
state: 'on'
- condition: state
entity_id: valve.irrigation
state: open
- condition: template
value_template: '{{now() >= as_local(as_datetime(states("input_datetime.end_of_irrigation")))}}'
action:
- service: valve.close_valve
target:
entity_id: valve.irrigation
data: {}
mode: queued
max: 10
- id: '1688134691132'
alias: Tesla - Modifier cible charge heure Creuses
description: ''
trigger:
- platform: state
entity_id:
- sensor.meme_charge
to: charging
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.automation_tesla
state: 'on'
- condition: state
entity_id: device_tracker.meme_emplacement
state: home
- condition: state
entity_id: schedule.heures_pleines
state: 'off'
- condition: template
value_template: '{{as_datetime(states("sensor.meme_temps_avant_la_charge_complete"))
> state_attr(''schedule.heures_pleines'', ''next_event'') }}'
action:
- variables:
new_target_percentage: '{{((states(''number.meme_limite_de_recharge'')|float-states(''sensor.meme_niveau_de_la_batterie'')|float)*(state_attr(''schedule.heures_pleines'',''next_event'')-now())/(as_datetime(states(''sensor.meme_temps_avant_la_charge_complete''))-now())+states(''sensor.meme_niveau_de_la_batterie'')|float)|round(0)}}'
actual_end_date: '{{as_local(as_datetime(states(''sensor.meme_temps_avant_la_charge_complete''))).strftime("%H:%M")}}'
- service: number.set_value
metadata: {}
data:
value: '{{max(new_target_percentage,50)}}'
target:
entity_id: number.meme_limite_de_recharge
- event: NOTIFIER
event_data:
action: send_to_jl
title: "️\U0001F697 Tesla"
message: Cible de recharge modifiée ({{new_target_percentage}}%) pour finir
dans les heures creuses.
click_url: /lovelace/tesla
tag: tesla_end_charge_after_off_peak_hours
mode: single
- id: '1688139412657'
alias: Réveil intelligent - Régler heures de déclenchement
description: ''
trigger:
- platform: state
entity_id:
- input_datetime.wake_up_time
condition: []
action:
- service: input_datetime.set_datetime
data:
datetime: '{{today_at(states(''input_datetime.wake_up_time'')) - timedelta(minutes
= 5)}}'
target:
entity_id: input_datetime.wake_up_time_lights
mode: single
- id: '1688139621896'
alias: Réveil intelligent - Allumer Lumières
description: ''
trigger:
- platform: time
at: input_datetime.wake_up_time_lights
condition:
- condition: state
entity_id: input_boolean.automation_wake_up
state: 'on'
- condition: state
entity_id: binary_sensor.home_occupied
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: input_boolean.forcer_le_reveil
state: 'on'
action:
- service: script.wake_up
data: {}
mode: single
- id: '1688301259694'
alias: TV intelligente - Allumer / Éteindre KEF
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.is_tv_on
to: 'on'
id: 'on'
- platform: state
entity_id:
- binary_sensor.is_tv_on
to: 'off'
id: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_watch_tv
state: 'on'
- condition: not
conditions:
- condition: state
entity_id: media_player.music_assistant_salon
state: playing
action:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- service: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.music_assistant_salon
- service: media_player.turn_on
data: {}
target:
entity_id: media_player.kef
- service: media_player.select_source
data:
source: Opt
target:
entity_id: media_player.kef
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- service: media_player.turn_off
data: {}
target:
entity_id: media_player.kef
mode: single
- id: '1688303443168'
alias: 'TV intelligente - Controller Lumières '
description: ''
trigger:
- platform: state
entity_id:
- media_player.media_center
from:
to:
variables:
from_state: '{{trigger.from_state.state}}'
to_state: '{{trigger.to_state.state}}'
from_app: "{% if 'app_name' in trigger.from_state.attributes -%}\n {{trigger.from_state.attributes.app_name}}\n{%-
else -%}\n no_app\n{%- endif %}"
to_app: "{% if 'app_name' in trigger.to_state.attributes -%}\n {{trigger.to_state.attributes.app_name}}\n{%-
else -%}\n no_app\n{%- endif %}"
supported_apps: '{{["Netflix", "Plex", "Prime Video"]}}'
condition:
- condition: state
entity_id: input_boolean.automation_watch_tv
state: 'on'
- condition: state
entity_id: sun.sun
state: below_horizon
enabled: true
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- choose:
- conditions:
- condition: template
value_template: "{{\n from_state in [\"off\", \"paused\", \"idle\", \"on\",
\"buffering\"] and \n to_state == \"playing\" and \n to_app in supported_apps\n}}"
sequence:
- service: hue.activate_scene
target:
entity_id: scene.salon_salon_tv_playing
data: {}
- service: light.turn_off
metadata: {}
data: {}
target:
area_id:
- 71e221f94f4a4e929747570179d52280
- entree
- conditions:
- condition: template
value_template: "{{\n from_state == \"playing\" and \n to_state in [\"paused\",
\"buffering\"] and \n to_app in supported_apps\n}}"
sequence:
- service: hue.activate_scene
metadata: {}
data: {}
target:
entity_id:
- scene.salon_salon_tv_paused
- scene.entree_entree_tv_paused
- scene.cuisine_cuisine_tv_paused
- conditions:
- condition: template
value_template: "{{\n from_state in [\"playing\", \"paused\", \"buffering\"]
and \n to_state in [\"off\", \"on\", \"idle\"] and \n from_app in supported_apps\n}}"
sequence:
- service: hue.activate_scene
metadata: {}
data:
transition: 10
target:
entity_id:
- scene.salon_salon_100
- scene.entree_entree_100
- scene.cuisine_cuisine_100
mode: queued
max: 10
- id: '1688305917710'
alias: TV intelligente - Controller Lumières (PS5)
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.is_ps5_used
from: 'off'
to: 'on'
id: 'on'
- platform: state
entity_id:
- binary_sensor.is_ps5_used
from: 'on'
to: 'off'
id: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_watch_tv
state: 'on'
- condition: state
entity_id: sun.sun
state: below_horizon
enabled: true
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- choose:
- conditions:
- condition: trigger
id: 'on'
sequence:
- service: hue.activate_scene
target:
entity_id: scene.salon_salon_tv_playing
data: {}
- service: light.turn_off
metadata: {}
data: {}
target:
area_id:
- 71e221f94f4a4e929747570179d52280
- entree
- conditions:
- condition: trigger
id: 'off'
sequence:
- service: hue.activate_scene
metadata: {}
data:
transition: 10
target:
entity_id:
- scene.salon_salon_100
- scene.entree_entree_100
- scene.cuisine_cuisine_100
mode: single
- id: '1688329966467'
alias: Volet - Edge Cases
description: ''
trigger:
- platform: event
event_type: call_service
event_data:
domain: cover
service: open_cover
service_data:
entity_id: cover.living_room_cover
id: open
- platform: event
event_type: call_service
event_data:
domain: cover
service: close_cover
service_data:
entity_id: cover.living_room_cover
id: closed
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: trigger
id: open
- condition: state
entity_id: cover.living_room_cover
attribute: current_position
state: 100
- condition: and
conditions:
- condition: trigger
id: closed
- condition: state
entity_id: cover.living_room_cover
attribute: current_position
state: 0
action:
- choose:
- conditions:
- condition: trigger
id: open
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.living_room_cover_volet_salon_bouton_up_fallback
- conditions:
- condition: trigger
id: closed
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.living_room_cover_volet_salon_bouton_down_fallback
mode: single
- id: '1688333037837'
alias: Chauffage intelligent - Choisir Planning
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.home_occupied
to:
from:
- platform: homeassistant
event: start
- platform: state
entity_id:
- input_boolean.automation_heat_home
- platform: state
entity_id:
- binary_sensor.is_home_open_since_more_than_one_minute
condition:
- condition: state
entity_id: input_boolean.automation_heat_home
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.is_home_open_since_more_than_one_minute
state: 'on'
sequence:
- service: input_select.select_option
data:
option: Frost Guard
target:
entity_id: input_select.heating_schedule_selector
- conditions:
- condition: state
entity_id: binary_sensor.home_occupied
state: 'off'
sequence:
- service: input_select.select_option
data:
option: Absent
target:
entity_id: input_select.heating_schedule_selector
- conditions:
- condition: state
entity_id: binary_sensor.home_occupied
state: 'on'
sequence:
- service: input_select.select_option
data:
option: Présent
target:
entity_id: input_select.heating_schedule_selector
mode: queued
max: 10
- id: '1688333375509'
alias: Chauffage intelligent - Changer Température
description: ''
trigger:
- platform: state
entity_id:
- sensor.heating_target_temperature
- platform: homeassistant
event: start
- platform: state
entity_id:
- climate.netatmo
attribute: temperature
id: temperature_changed
- platform: state
entity_id:
- input_boolean.heating_manual_boost
for:
hours: 0
minutes: 0
seconds: 5
- platform: time
at: input_datetime.heating_manual_boost_end
- platform: state
entity_id:
- input_boolean.automation_heat_home
condition:
- condition: state
entity_id: input_boolean.automation_heat_home
state: 'on'
action:
- choose:
- conditions:
- condition: template
value_template: '{{now() >= as_local(as_datetime(states("input_datetime.heating_manual_boost_end")))}}'
- condition: state
entity_id: input_boolean.heating_manual_boost
state: 'on'
sequence:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.heating_manual_boost
- conditions:
- condition: trigger
id:
- temperature_changed
- alias: When manually triggered by a user
condition: template
value_template: '{{ trigger.to_state.context.user_id != None }}'
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.heating_manual_boost
- conditions:
- condition: template
value_template: '{{states("sensor.heating_target_temperature") | float !=
state_attr("climate.netatmo","temperature")}}'
alias: When it's not coherent with the current schedule
- condition: state
entity_id: input_boolean.heating_manual_boost
state: 'off'
sequence:
- service: climate.set_temperature
target:
entity_id: climate.netatmo
data:
temperature: '{{states("sensor.heating_target_temperature")}}
'
mode: queued
max: 10
- id: '1688364991944'
alias: Bureau - Meetings VR
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.quest_in_use
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automation_meetings
state: 'on'
- condition: state
entity_id: person.jenova70
state: home
- condition: state
state: 'on'
entity_id: binary_sensor.capteur_presence_bureau_occupancy
action:
- service: scene.create
data:
scene_id: office_previous_light_state
snapshot_entities:
- light.bureau
- service: light.turn_on
data:
brightness_pct: 100
kelvin: 3521
target:
entity_id:
- light.bureau
- light.hue_play_bars
- service: switch.turn_off
data: {}
target:
entity_id: switch.hal_use_wake_word
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.quest_in_use
to: 'off'
from: 'on'
continue_on_timeout: false
- service: light.turn_off
data: {}
target:
entity_id: light.hue_play_bars
- service: scene.turn_on
data: {}
target:
entity_id: scene.office_previous_light_state
- service: switch.turn_on
data: {}
target:
entity_id: switch.hal_use_wake_word
mode: queued
max: 10
- id: '1688368387161'
alias: Bureau - Meetings
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.jean_loics_macbook_pro_camera_in_use
to: 'on'
from: 'off'
for:
hours: 0
minutes: 0
seconds: 5
condition:
- condition: state
entity_id: input_boolean.automation_meetings
state: 'on'
- condition: state
entity_id: person.jenova70
state: home
- condition: state
state: 'on'
entity_id: binary_sensor.capteur_presence_bureau_occupancy
- condition: state
entity_id: device_tracker.jean_loics_macbook_pro
state: home
action:
- service: scene.create
data:
scene_id: office_previous_light_state
snapshot_entities:
- light.bureau
- service: light.turn_on
data:
brightness_pct: 100
kelvin: 3521
target:
entity_id:
- light.bureau
- service: light.turn_on
data:
brightness_pct: 60
kelvin: 3521
target:
entity_id:
- light.hue_play_bars
- service: switch.turn_off
data: {}
target:
entity_id: switch.hal_use_wake_word
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.jean_loics_macbook_pro_camera_in_use
to: 'off'