-
Notifications
You must be signed in to change notification settings - Fork 13
/
automations.yaml
4895 lines (4885 loc) · 127 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: ''
triggers:
- entity_id:
- binary_sensor.capteur_mouvement_litiere
to: 'on'
from: 'off'
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_clean_cat_litter_box
state: 'on'
actions:
- action: 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: ''
triggers:
- entity_id:
- binary_sensor.is_litter_full
trigger: state
- trigger: state
entity_id:
- input_select.modes_de_presence_de_la_maison_v2
conditions:
- condition: state
entity_id: input_boolean.automation_clean_cat_litter_box
state: 'on'
- condition: state
entity_id: input_select.modes_de_presence_de_la_maison_v2
state: Occupée
- condition: state
entity_id: binary_sensor.is_litter_full
state: 'on'
actions:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.power_notification_litiere_pleine
mode: single
- id: '1688114260897'
alias: Poubelles Intelligentes - Poubelle noire à sortir
description: ''
triggers:
- entity_id:
- schedule.planning_poubelle_noire
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- action: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.poubelle_noire_a_sortir
mode: single
- id: '1688114327500'
alias: Poubelles Intelligentes - Poubelle verte à sortir
description: ''
triggers:
- entity_id:
- schedule.planning_poubelle_verte
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- action: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.poubelle_verte_a_sortir
mode: single
- id: '1688114732811'
alias: "Poubelles Intelligentes - \U0001F514 Poubelle noire non sortie à temps"
description: ''
triggers:
- entity_id:
- schedule.planning_poubelle_noire
to: 'off'
from: 'on'
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
- condition: state
entity_id: input_boolean.poubelle_noire_a_sortir
state: 'on'
actions:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.power_notification_poubelle_noire_non_sortie_a_temps
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.poubelle_noire_a_sortir
mode: single
- id: '1688114808231'
alias: "Poubelles Intelligentes - \U0001F514 Poubelle verte non sortie à temps"
description: ''
triggers:
- entity_id:
- schedule.planning_poubelle_verte
to: 'off'
from: 'on'
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_take_out_trash
state: 'on'
- condition: state
entity_id: input_boolean.poubelle_verte_a_sortir
state: 'on'
actions:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.power_notification_poubelle_verte_non_sortie_a_temps
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.poubelle_verte_a_sortir
mode: single
- id: '1688116237944'
alias: Boîte aux Lettres Intelligente - Courrier à relever
description: ''
triggers:
- entity_id:
- binary_sensor.capteur_mouvement_boite_aux_lettres
to: 'on'
from: 'off'
trigger: state
conditions:
- condition: state
entity_id: binary_sensor.is_front_door_recently_open
state: 'off'
actions:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.courrier_a_relever
mode: single
- id: '1688116301973'
alias: Boîte aux Lettres Intelligente - Courrier relevé
description: ''
triggers:
- entity_id:
- binary_sensor.capteur_mouvement_boite_aux_lettres
to: 'on'
from: 'off'
trigger: state
conditions:
- condition: state
entity_id: binary_sensor.is_front_door_recently_open
state: 'on'
actions:
- action: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.courrier_a_relever
mode: single
- id: '1688118075093'
alias: Machine a Laver Intelligente - Machine à laver a vider
description: ''
triggers:
- entity_id:
- binary_sensor.is_washing_machine_running
to: 'off'
from: 'on'
trigger: state
conditions: []
actions:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.machine_a_laver_a_vider
mode: single
- id: '1688139412657'
alias: Réveil intelligent - Régler heures de déclenchement
description: ''
triggers:
- entity_id:
- input_datetime.wake_up_time
trigger: state
conditions: []
actions:
- action: 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: ''
triggers:
- at: input_datetime.wake_up_time_lights
trigger: time
conditions:
- condition: state
entity_id: input_boolean.automation_wake_up
state: 'on'
- condition: state
entity_id: input_select.modes_de_presence_de_la_maison_v2
state: Occupée
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: input_boolean.forcer_le_reveil
state: 'on'
actions:
- action: script.wake_up
data: {}
mode: single
- id: '1688301259694'
alias: TV intelligente - Allumer / Éteindre KEF
description: ''
triggers:
- entity_id:
- remote.jl_s_tv
to: 'on'
id: 'on'
trigger: state
- entity_id:
- remote.jl_s_tv
to: 'off'
id: 'off'
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_watch_tv
state: 'on'
- condition: not
conditions:
- condition: state
entity_id: media_player.kef_salon_music_assistant
state: playing
actions:
- choose:
- conditions:
- condition: trigger
id:
- 'on'
sequence:
- action: media_player.turn_off
metadata: {}
data: {}
target:
entity_id: media_player.kef_salon_music_assistant
- action: media_player.turn_on
data: {}
target:
entity_id: media_player.kef
- action: media_player.select_source
data:
source: Opt
target:
entity_id: media_player.kef
- conditions:
- condition: trigger
id:
- 'off'
sequence:
- action: media_player.turn_off
data: {}
target:
entity_id: media_player.kef
mode: single
- id: '1688364991944'
alias: Bureau - Meetings VR
description: ''
triggers:
- entity_id:
- binary_sensor.quest_in_use
to: 'on'
from: 'off'
trigger: state
conditions:
- 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: binary_sensor.jean_loics_macbook_pro_active
state: 'on'
- condition: state
entity_id: device_tracker.jean_loics_macbook_pro
state: home
actions:
- action: scene.create
data:
scene_id: office_previous_light_state
snapshot_entities:
- light.bureau_suspension
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- action: light.turn_on
data:
brightness_pct: 100
kelvin: 3521
target:
area_id: bureau
- action: switch.turn_off
data: {}
target:
entity_id: switch.vpe_bureau_microphone
- wait_for_trigger:
- entity_id:
- binary_sensor.quest_in_use
to: 'off'
from: 'on'
trigger: state
continue_on_timeout: false
- action: light.turn_off
data: {}
target:
entity_id: light.hue_play_bars
- action: scene.turn_on
data: {}
target:
entity_id: scene.office_previous_light_state
- action: switch.turn_on
data: {}
target:
entity_id: switch.vpe_bureau_microphone
mode: queued
max: 10
- id: '1688368387161'
alias: Bureau - Meetings
description: ''
triggers:
- entity_id:
- binary_sensor.jean_loics_macbook_pro_camera_in_use
to: 'on'
from: 'off'
for:
hours: 0
minutes: 0
seconds: 5
trigger: state
conditions:
- 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: binary_sensor.jean_loics_macbook_pro_active
state: 'on'
- condition: state
entity_id: device_tracker.jean_loics_macbook_pro
state: home
actions:
- data:
scene_id: office_previous_light_state
snapshot_entities:
- light.bureau_suspension
action: scene.create
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- data:
brightness_pct: 100
kelvin: 3521
target:
entity_id:
- light.bureau_suspension
action: light.turn_on
- data:
brightness_pct: 60
kelvin: 3521
target:
entity_id:
- light.hue_play_bars
action: light.turn_on
- data: {}
target:
entity_id: switch.vpe_bureau_microphone
action: switch.turn_off
- wait_for_trigger:
- entity_id:
- binary_sensor.jean_loics_macbook_pro_camera_in_use
to: 'off'
from: 'on'
trigger: state
continue_on_timeout: false
- data: {}
target:
entity_id: light.hue_play_bars
action: light.turn_off
- data: {}
target:
entity_id: scene.office_previous_light_state
action: scene.turn_on
- data: {}
target:
entity_id: switch.vpe_bureau_microphone
action: switch.turn_on
mode: single
- id: '1688371620889'
alias: Surveillance de la maison - Éteindre appareils lors du départ
description: ''
triggers:
- trigger: state
entity_id:
- input_select.modes_de_presence_de_la_maison_v2
to: Vide
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_home
state: 'on'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
actions:
- action: script.leave_home
data: {}
mode: queued
max: 10
- id: '1688373819985'
alias: Surveillance de la maison - Allumer appareils lors de l'arrivée
description: ''
triggers:
- trigger: state
entity_id:
- input_select.modes_de_presence_de_la_maison_v2
to: Occupée
from: Arrivée en cours
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_home
state: 'on'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
actions:
- action: cover.open_cover
data: {}
target:
entity_id: cover.volets_salon
- if:
- condition: state
entity_id: binary_sensor.exterieur_lumineux
state: 'off'
then:
- action: script.turn_on
data: {}
target:
entity_id: script.welcome_home
mode: queued
max: 10
- id: '1688375110167'
alias: "Surveillance de la maison - \U0001F514 Notifier pluie et portes/fenêtres
ouvertes "
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.wittboy_rain_rate_piezo
above: 0
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_home
state: 'on'
- condition: state
entity_id: input_select.modes_de_presence_de_la_maison_v2
state: Occupée
- condition: state
entity_id: binary_sensor.all_openings
state: 'on'
actions:
- if:
- condition: state
entity_id: binary_sensor.all_doors
state: 'on'
then:
- variables:
open_doors: "{{ \n expand(states.binary_sensor.all_doors.attributes.entity_id)\n
\ | selectattr('state', 'eq', 'on')\n | map(attribute='attributes.friendly_name')
\n | list\n | join(\", \")\n}}"
- action: script.turn_on
data:
variables:
user_message: 'Les portes suivantes sont ouvertes et il commence a pleuvoir:
{{open_doors}}'
target:
entity_id: script.power_notification_pluie_et_portes_ouvertes
- if:
- condition: state
entity_id: binary_sensor.all_windows
state: 'on'
then:
- variables:
open_windows: "{{ \n expand(states.binary_sensor.all_windows.attributes.entity_id)\n
\ | selectattr('state', 'eq', 'on')\n | map(attribute='attributes.friendly_name')
\n | list\n | join(\", \")\n}}"
- action: script.turn_on
data:
variables:
user_message: 'Les fenêtres suivantes sont ouvertes et il commence a pleuvoir:
{{open_windows}}'
target:
entity_id: script.power_notification_pluie_et_fenetres_ouvertes
mode: single
- id: '1688386134462'
alias: "Surveillance du système - \U0001F514 Notifier mise a jour dispo"
description: ''
triggers:
- entity_id:
- sensor.pending_updates
attribute: entities
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_system
state: 'on'
- condition: template
value_template: '{{trigger.to_state.state | int(0) > 0}}'
actions:
- action: script.turn_on
metadata: {}
data:
variables:
user_message: '{{trigger.to_state.attributes.entities | join('', '')}}'
target:
entity_id: script.power_notification_mise_a_jour_dispo
mode: queued
max: 10
- id: '1688387237599'
alias: Surveillance du système - Backup
description: ''
triggers:
- at: 01:00:00
trigger: time
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_system
state: 'on'
actions:
- action: hassio.backup_full
data:
compressed: true
name: Home Assistant Backup {{now()}}
mode: single
- id: '1688390987276'
alias: "Surveillance du système - \U0001F514 Notifier batteries faibles"
description: ''
triggers:
- at: '21:00:00'
trigger: time
conditions:
- condition: state
entity_id: input_boolean.automation_monitor_system
state: 'on'
- condition: state
entity_id: person.jenova70
state: home
- condition: numeric_state
entity_id: sensor.low_batteries
above: 0
actions:
- action: script.turn_on
metadata: {}
data:
variables:
user_message: '{{state_attr(''sensor.low_batteries'',''entities'') | join('',
'')}}'
target:
entity_id: script.power_notification_batteries_faibles
mode: single
- id: '1688537182551'
alias: "Servarr - \U0001F514 Notification "
description: ''
triggers:
- allowed_methods:
- POST
local_only: true
webhook_id: sonarr-grab--KqTQ4vReuFd_as1xTR_hPqk2
id: sonarr-grab
variables:
title: "\U0001F4FA Épisode en télechargement ..."
message: '{{trigger.json.series.title}} - {{trigger.json.episodes[0].seasonNumber}}x{{trigger.json.episodes[0].episodeNumber}}
- {{trigger.json.episodes[0].title}}'
tag: '{{trigger.json.downloadId}}'
trigger: webhook
- allowed_methods:
- POST
local_only: true
webhook_id: sonarr-download--KqTQ4vReuFd_as1xTR_hPqk2
id: sonarr-download
variables:
title: ✅ Épisode téléchargé !
message: '{{trigger.json.series.title}} - {{trigger.json.episodes[0].seasonNumber}}x{{trigger.json.episodes[0].episodeNumber}}
- {{trigger.json.episodes[0].title}}'
tag: '{{trigger.json.downloadId}}'
trigger: webhook
- allowed_methods:
- POST
local_only: true
webhook_id: radarr-grab-ugUFeiF1HF_WK_-jpm1aFMCQ
id: radarr-grab
variables:
title: "\U0001F3A5 Film en télechargement ..."
message: '{{trigger.json.movie.title}} ({{trigger.json.movie.year}})'
tag: '{{trigger.json.downloadId}}'
trigger: webhook
- allowed_methods:
- POST
local_only: true
webhook_id: radarr-download-grab-ugUFeiF1HF_WK_-jpm1aFMCQ
id: radarr-download
variables:
title: ✅ Film téléchargé !
message: '{{trigger.json.movie.title}} ({{trigger.json.movie.year}})'
tag: '{{trigger.json.downloadId}}'
trigger: webhook
conditions: []
actions:
- action: script.turn_on
metadata: {}
data:
variables:
user_title: '{{title}}'
user_message: '{{message}}'
user_tag: '{{tag}}'
target:
entity_id: script.power_notification_servaar
mode: single
- id: '1689253436663'
alias: Lumières Extérieures - Synchroniser Hue et SONOFF
description: ''
triggers:
- entity_id:
- binary_sensor.is_exterior_sphere_bright
from: 'off'
to: 'on'
id: sphere_bright
for:
hours: 0
minutes: 0
seconds: 1
trigger: state
- entity_id:
- binary_sensor.is_exterior_sphere_bright
from: 'on'
to: 'off'
id: sphere_not_bright
for:
hours: 0
minutes: 0
seconds: 1
trigger: state
- entity_id:
- light.plafonnier_exterieur
from: 'off'
to: 'on'
id: ceiling_light_on
for:
hours: 0
minutes: 0
seconds: 1
trigger: state
- entity_id:
- light.plafonnier_exterieur
from: 'on'
to: 'off'
id: ceiling_light_off
for:
hours: 0
minutes: 0
seconds: 1
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- sphere_bright
- condition: state
entity_id: light.plafonnier_exterieur
state: 'off'
sequence:
- action: light.turn_on
data: {}
target:
entity_id: light.plafonnier_exterieur
- conditions:
- condition: trigger
id:
- sphere_not_bright
- condition: state
entity_id: light.plafonnier_exterieur
state: 'on'
sequence:
- action: light.turn_off
data: {}
target:
entity_id: light.plafonnier_exterieur
- conditions:
- condition: trigger
id:
- ceiling_light_on
- condition: state
entity_id: binary_sensor.is_exterior_sphere_bright
state: 'off'
sequence:
- action: light.turn_on
data:
brightness_pct: 100
target:
entity_id:
- light.exterieur_sphere
- conditions:
- condition: trigger
id:
- ceiling_light_off
- condition: state
entity_id: binary_sensor.is_exterior_sphere_bright
state: 'on'
sequence:
- action: light.turn_off
data: {}
target:
entity_id:
- light.exterieur_sphere
mode: parallel
max: 10
- id: '1690826979664'
alias: "Assist - \U0001F4E3 Commandes Multiple "
description: ''
triggers:
- command:
- '{command1} et {command2}'
trigger: conversation
conditions: []
actions:
- action: conversation.process
data:
agent_id: conversation.home_assistant
text: '{{trigger.slots.command1}}'
response_variable: response_1
- action: conversation.process
data:
agent_id: conversation.home_assistant
text: '{{trigger.slots.command2}}'
response_variable: response_2
- set_conversation_response: '{{response_1.response.speech.plain.speech}} et {{response_2.response.speech.plain.speech}}'
mode: parallel
max: 100
- id: '1691413517615'
alias: Bureau - Notification Lumineuse Meetings
description: ''
triggers:
- event: start
offset: -0:5:0
entity_id: calendar.nabucasa_calendar_personal
id: personal
trigger: calendar
- event: start
offset: -0:5:0
entity_id: calendar.nabucasa_calendar_social_time
id: social_time
trigger: calendar
- event: start
offset: -0:1:0
entity_id: calendar.nabucasa_calendar_personal
id: personal
trigger: calendar
- event: start
offset: -0:1:0
entity_id: calendar.nabucasa_calendar_social_time
id: social_time
trigger: calendar
conditions:
- condition: state
entity_id: input_boolean.automation_meetings
state: 'on'
- condition: state
entity_id: person.jenova70
state: home
- condition: state
entity_id: binary_sensor.capteur_presence_bureau_occupancy
state: 'on'
- condition: state
entity_id: binary_sensor.jean_loics_macbook_pro_active
state: 'on'
- condition: state
entity_id: device_tracker.jean_loics_macbook_pro
state: home
actions:
- action: scene.create
data:
scene_id: office_webcam_previous_light_state
snapshot_entities:
- light.hue_play_bars
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- choose:
- conditions:
- condition: trigger
id:
- personal
sequence:
- action: light.turn_on
data:
brightness_pct: 100
rgb_color:
- 0
- 76
- 255
transition: 1
target:
entity_id:
- light.hue_play_bars
- conditions:
- condition: trigger
id:
- social_time
sequence:
- action: light.turn_on
data:
brightness_pct: 100
rgb_color:
- 68
- 255
- 0
transition: 1
target:
entity_id:
- light.hue_play_bars
default:
- action: light.turn_on
data:
brightness_pct: 100
rgb_color:
- 0
- 76
- 255
transition: 1
target:
entity_id:
- light.hue_play_bars
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- action: scene.turn_on
data: {}
target:
entity_id: scene.office_webcam_previous_light_state
mode: single
- id: '1691566363432'
alias: "Simulation de présence - \U0001F6CE️ Notifier Éloignement domicile sans
simulation de présence"
description: ''
triggers:
- entity_id:
- binary_sensor.far_away
to: 'on'
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_presence_simulator
state: 'off'
actions:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.power_notification_simulation_de_presence_et_eloignement_du_domicile
mode: single
- id: '1691758172267'
alias: "Pont Chaban Delmas - \U0001F6CE️ Notifier fermeture demain"
description: ''
triggers:
- at: '20:00:00'
trigger: time
conditions:
- condition: state
entity_id: input_boolean.automation_notify_chaban_delmas_bridge
state: 'on'
- condition: template
value_template: '{{as_datetime(states("sensor.chaban_delmas_next_closing_start_date"))
- now() > timedelta(hours = 4)}}'
- condition: template
value_template: '{{as_datetime(states("sensor.chaban_delmas_next_closing_start_date"))
- now() < timedelta(days = 1, hours = 4)}}'
actions:
- variables:
human_redeable_closing_time: '{{as_timestamp(states("sensor.chaban_delmas_next_closing_start_date"))
| timestamp_custom(''%H:%M'')}}
'
- if:
- condition: numeric_state
entity_id: sensor.distance_jlo_maison
below: 20000
then:
- action: script.turn_on
metadata: {}
data:
variables:
user_message: Le pont Chaban Delmas fermera demain à {{human_redeable_closing_time}}
target:
entity_id: script.power_notification_pont_chaban_delmas
mode: single
- id: '1692118004694'
alias: Simulation de présence - Arrêter lors du retour
description: ''
triggers:
- trigger: state
entity_id:
- input_select.modes_de_presence_de_la_maison_v2
to: Occupée
conditions:
- condition: state
entity_id: input_boolean.automation_presence_simulator
state: 'on'
actions:
- action: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.automation_presence_simulator
mode: single
- id: '1693509234441'
alias: "Tesla - \U0001F514 Rappel charge "
description: ''
triggers:
- entity_id:
- schedule.heures_pleines
from: 'on'
to: 'off'
trigger: state
- entity_id:
- device_tracker.meme_emplacement
to: home
for:
hours: 0
minutes: 1
seconds: 0
trigger: state
conditions:
- condition: state
entity_id: input_boolean.automation_tesla
state: 'on'
- condition: state
entity_id: device_tracker.meme_emplacement
state: home
- condition: state
entity_id: binary_sensor.meme_cable_de_charge
state: 'off'
- condition: numeric_state
entity_id: sensor.meme_niveau_de_la_batterie
below: 65
- condition: state
entity_id: person.jenova70
state: home
- condition: state
entity_id: schedule.heures_pleines
state: 'off'
actions:
- action: script.turn_on
metadata: {}
data:
variables: