-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathautomations.yaml
2445 lines (2440 loc) · 64.8 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: '1610184966825'
alias: Calcul Boolean Nuit/Jour
description: ''
triggers:
- value_template: '{{ states(''sensor.bh1750_illuminance'' )|float(default=0) >
states(''input_number.luminosite_seuil_haut'')|float(default=0) and is_state("sun.sun",
"above_horizon") }}'
id: nuit->jour
trigger: template
- value_template: '{{ states(''sensor.bh1750_illuminance'')|float(default=0) < states(''input_number.luminosite_seuil_bas'')|float(default=0)
and is_state("sun.sun", "below_horizon") }}'
id: jour->nuit
trigger: template
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: nuit->jour
sequence:
- target:
entity_id: input_boolean.nuit_jour
data: {}
action: input_boolean.turn_on
- conditions:
- condition: trigger
id: jour->nuit
sequence:
- target:
entity_id: input_boolean.nuit_jour
data: {}
action: input_boolean.turn_off
default: []
mode: single
- id: '1610371647929'
alias: 04 Purge base de données
description: ''
triggers:
- at: 00:05:00
trigger: time
conditions: []
actions:
- data:
keep_days: 10
repack: true
action: recorder.purge
mode: single
- id: '1617185147880'
alias: Surveillance et Alarme Appoint d'eau
description: Ferme la vanne d'eau si ouverte depuis 1 heure
triggers:
- entity_id:
- switch.esp178_cde_ev_eau
from: 'off'
to: 'on'
for:
hours: 1
minutes: 0
seconds: 0
trigger: state
conditions: []
actions:
- data:
message: '{{states("sensor.date_time") }}{{-"\n"-}}EV eau ouverte depuis plus
de 1 heure'
title: Alarme EV Appoint d'eau Piscine
action: notify.telegram
- target:
entity_id:
- switch.esp178_cde_ev_eau
action: switch.turn_off
data: {}
- action: select.select_option
metadata: {}
data:
option: At_f
target:
entity_id: select.esp178_mode_fonct_appoint_eau
mode: single
- id: '1617199790692'
alias: Notification alarme niveau bas
description: ' '
triggers:
- entity_id:
- binary_sensor.esp178_niv_bas
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 10
trigger: state
conditions: []
actions:
- data:
title: ALARME
message: Niveau bas Piscine
action: notify.telegram
- action: select.select_option
data:
option: At_f
target:
entity_id: select.esp178_mode_fonctionnement_filtration
- data:
message: Niveau bas piscine{{-"\n"-}}{{states("sensor.date_time") }}{{-"\n"-}}{{states("sensor.date_time")
}}
title: Piscine Alarme Niveau Bas !!!
action: notify.telegram
mode: single
- id: '1629296468909'
alias: Robot AMX435 Surveillance Pluviometrie
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.vp2_pluviometrie_moyenne
above: input_number.seuil_pluie_stop_robot
id: seuil_haut
- platform: numeric_state
entity_id: sensor.vp2_pluviometrie_moyenne
id: seuil_bas
below: input_number.seuil_pluie_stop_robot
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: seuil_haut
sequence:
- data: {}
action: lawn_mower.dock
target:
device_id: 7808727539e5cd0a67cbd0484d1835d4
- data:
message: Retour Robot à la Base!!{{-"\n"-}} Pluvio Moyenne 12h = {{states('sensor.vp2_pluviometrie_moyenne')}}
mm {{-"\n"-}} Seuil Stop robot= {{states('input_number.seuil_pluie_stop_robot')}}
mm {{-"\n"-}}{{states("sensor.date_time") }}
title: Robot-Début Alerte Meteo Pluie !!!
action: notify.telegram
- conditions:
- condition: trigger
id: seuil_bas
sequence:
- data: {}
action: lawn_mower.start_mowing
target:
device_id: 80c6c60b578848a2d4bb2a1e06f07fb1
- data:
message: Validation Départ Robot!!{{-"\n"-}} Pluvio Moyenne 12h = {{states('sensor.vp2_pluviometrie_moyenne')}}
mm {{-"\n"-}} Seuil Stop robot= {{states('input_number.seuil_pluie_stop_robot')}}
mm {{-"\n"-}}{{states("sensor.date_time") }}
title: Robot- Fin Alerte Meteo Pluie !!!
action: notify.telegram
mode: single
trace:
stored_traces: 10
- id: '1632232387237'
alias: 05 Reseau Notification Nouvelle IP
description: ''
triggers:
- entity_id:
- sensor.myip
for:
hours: 0
minutes: 10
seconds: 0
trigger: state
conditions: []
actions:
- data:
message: 'Nouvelle IP: {{ states("sensor.myip")}} {{-"\n"-}}{{states("sensor.date_time")
}}'
title: Réseau:!!!
action: notify.telegram
- data:
message: Nouvelle IP {{ states("sensor.myip")}}
title: Reseau
action: notify.telegram
mode: single
- id: '1634569261594'
alias: Blueprint Notification Alarme Status PAC
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_status_pac
alert_state: 'off'
alert_action:
- data:
message: PAC Off Line{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Reseau !!!
action: notify.telegram
- data:
message: PAC Off Line {{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
resolved_action:
- data:
message: PAC On Line{{-"\n"-}} {{states("sensor.date_time") }}
title: Etat RESEAU!!!
action: notify.telegram
- data:
message: PAC On Line{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
notify_message: ' '
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 600
resolved_message: ' '
initial_delay: 300
max_alerts: 10
condition_entity: input_boolean.inhib_alarme_pac
- id: '1634569580188'
alias: Blueprint Notification Porte Cellier Ouverte
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_porte_cellier
alert_state: 'on'
alert_action:
- data:
message: Porte Cellier ouverte après le coucher du soleil{{-"\n"-}}{{states("sensor.date_time")
}}
title: Etat Portes !!!
action: notify.telegram
- data:
message: Porte Cellier ouverte après le coucher du soleil{{-"\n"-}}{{states("sensor.date_time")
}}
action: notify.telegram
resolved_action:
- data:
message: Porte Cellier OK{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Portes!!!
action: notify.telegram
- data:
message: Porte Cellier OK{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
notify_message: ' '
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 600
resolved_message: ' '
max_alerts: 5
initial_delay: 300
- id: '1634569751638'
alias: Blueprints Notification Porte Sous Sol Ouverte
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
sensor_entity: binary_sensor.alarme_porte_sous_sol
alert_state: 'on'
alert_action:
- data:
message: Porte Sous Sol ouverte après le coucher du soleil{{-"\n"-}}{{states("sensor.date_time")
}}
title: Etat Portes !!!
action: notify.telegram
resolved_action:
- data:
message: Porte Sous Sol OK{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Portes!!!
action: notify.telegram
notify_message: Porte Sous _Sol Ouverte
notify_device: 367dba31447009458e03b70e3a29b6b2
resolved_message: Porte Sous Sol Ok
initial_delay: 300
condition_entity_state: 'off'
max_alerts: 5
repeat_delay: 600
- id: '1634569897913'
alias: Blueprint Notification Porte Garage Ouverte
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_porte_garage
alert_state: 'on'
alert_action:
- data:
message: Porte Garage ouverte après le coucher du soleil{{-"\n"-}}{{states("sensor.date_time")
}}
action: notify.telegram
resolved_action:
- data:
message: Porte Garage OK{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Portes!!!
action: notify.telegram
notify_message: Porte Garage ouverte après le coucher du soleil
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 600
resolved_message: ' Porte Garage OK'
initial_delay: 300
max_alerts: 5
- id: '1634570304569'
alias: Blueprint Notification Discordance PAC
description: ' Surveillance discordance PAC entre l''état du thermostat et l''état
du switch de commande '
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_discord_pac
alert_state: 'off'
alert_action:
- data:
message: Discordance PAC=> PU= {{states("sensor.ecocompteur_pac")}} et Pilotage=
{{states("switch.altherma")}}{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat PAC !!!
action: notify.telegram
- data:
message: Discordance PAC=> PU= {{states("sensor.ecocompteur_pac")}} et Pilotage=
{{states("switch.altherma")}}{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
resolved_action:
- data:
message: PAC OK=> PU= {{states("sensor.ecocompteur_pac")}} et Pilotage=
{{states("switch.altherma")}}{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat PAC !!!
action: notify.telegram
- data:
message: PAC OK=> PU= {{states("sensor.ecocompteur_pac")}} et Pilotage=
{{states("switch.altherma")}}{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 1200
max_alerts: 10
initial_delay: 1200
dismiss_entity: input_boolean.inhib_alarme_pac
resolved_message: ' '
notify_message: ' '
- id: '1634571065075'
alias: Blueprint Notification Porte frigo garage ouverte
description: '# Alarme porte frigo garage ouverte '
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.detecteur_porte_frigo_ouverture
alert_state: 'on'
alert_action:
- data:
message: Porte Frigo Garage Ouverte {{-"\n"-}}{{states("sensor.date_time")
}}
action: notify.telegram
resolved_action:
- data:
message: Porte Frigo Garage Fermée {{-"\n"-}}{{states("sensor.date_time")
}}
action: notify.telegram
notify_message: ' '
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 60
resolved_message: ' '
initial_delay: 60
max_alerts: 5
- id: '1634571983587'
alias: Blueprint Notification Temp congelo haute
description: '# Surveillance de la temperature du congelateur '
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_temp_congelo_haute
alert_state: 'on'
alert_action:
- data:
message: T° Haute Congelo = {{states("sensor.temp_congelo_garage") }}°C
{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
resolved_action:
- data:
message: T° Congelo normale = {{states("sensor.temp_congelo_garage") }}°C
{{-"\n"-}}{{states("sensor.date_time") }}
action: notify.telegram
notify_message: ' '
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 300
resolved_message: ' '
initial_delay: 300
max_alerts: 10
- id: '1634621594490'
alias: Blueprint Notification Def Com VP2
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.status_communication_vantage_pro_2
alert_state: 'Off'
alert_action:
- data:
message: VP2 Off Line{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Reseau !!!
action: notify.telegram
resolved_action:
- data:
message: VP2 On Line{{-"\n"-}} {{states("sensor.date_time") }}
title: Etat RESEAU!!!
action: notify.telegram
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 300
initial_delay: 60
max_alerts: 5
resolved_message: ' '
notify_message: ' '
- id: '1634916685737'
alias: 03 Pusch gitub
description: pousse vers githtub
triggers:
- at: 02:00
trigger: time
conditions: []
actions:
- data: {}
action: shell_command.push_to_github
mode: single
- id: '1637073026237'
alias: Balise ouverture Porte sous sol
description: ''
triggers:
- tag_id: 297289a4-380e-4137-bbdc-b21e165e76cc
trigger: tag
conditions: []
actions:
- target:
entity_id:
- cover.porte_sous_sol
data: {}
action: cover.open_cover
mode: single
- id: '1637074521273'
alias: Balise ouverture porte garage
description: ''
triggers:
- tag_id: dca56861-8baf-4881-a5c8-4b99d90c3716
trigger: tag
conditions: []
actions:
- target:
entity_id:
- cover.porte_garage
data: {}
action: cover.open_cover
mode: single
- id: '1638119466260'
alias: BluePrint Notification Def Com Linky
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.status_communication_linky
alert_state: 'off'
alert_action:
- data:
message: Com Linky off Line{{-"\n"-}}{{states("sensor.date_time") }}
title: Etat Reseau !!!
action: notify.telegram
resolved_action:
- data:
message: Com Linky On Line{{-"\n"-}} {{states("sensor.date_time") }}
title: Etat RESEAU!!!
action: notify.telegram
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 300
initial_delay: 60
max_alerts: 5
resolved_message: ' '
notify_message: ' '
- id: '1638433932226'
alias: 01-02-01 VMC Niv0 Automatismes
description: ' '
triggers:
- entity_id: input_select.vmc_niv0
id: mode
trigger: state
- at: input_datetime.heure_vmc_niv0_ma
trigger: time
- at: input_datetime.heure_vmc_niv0_at
trigger: time
- entity_id:
- sensor.esp145_conc_particules_2_5mm
id: pm2.5sh
above: input_number.seuil_haut_pm2_5
for:
hours: 0
minutes: 10
seconds: 0
trigger: numeric_state
- entity_id: sensor.esp145_mh_z19_co2_value
id: co2sh
above: input_number.seuil_haut_co2
for:
hours: 0
minutes: 10
seconds: 0
trigger: numeric_state
- entity_id:
- sensor.esp145_conc_particules_2_5mm
id: pm2.5sth
above: input_number.seuil_tres_haut_pm2_5
for:
hours: 0
minutes: 5
seconds: 0
trigger: numeric_state
- entity_id: sensor.esp145_mh_z19_co2_value
id: co2sth
above: input_number.seuil_tres_haut_co2
for:
hours: 0
minutes: 5
seconds: 0
trigger: numeric_state
- event: sunrise
offset: 0
id: levee_soleil
trigger: sun
- value_template: '{% set temp=states(''sensor.vp2_temp_out'') | float(0) %}
{% set saison=states(''sensor.season'') | default("") %}
{% set mode=states(''input_select.vmc_niv0'') | default("") %}
{% set soleil=states(''sun.sun'') | default("") %}
{{ (temp< 0) and (saison == "autumn" or saison=="winter") and (mode=="CO2 PM2.5")
and (soleil == ''below_horizon'')}}
'
id: temp_basse
trigger: template
conditions: []
actions:
- choose:
- conditions:
- condition: state
entity_id: input_select.vmc_niv0
state: Hor
sequence:
- choose:
- conditions:
- condition: time
after: input_datetime.heure_vmc_niv0_ma
before: input_datetime.heure_vmc_niv0_at
sequence:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_on
default:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_off
- conditions:
- condition: state
entity_id: input_select.vmc_niv0
state: CO2 PM2.5
- condition: or
conditions:
- condition: trigger
id: pm2.5sh
- condition: trigger
id: co2sh
sequence:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_on
- target:
entity_id: switch.esp136_vit_2
data: {}
action: switch.turn_on
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- conditions:
- condition: state
entity_id: input_select.vmc_niv0
state: CO2 PM2.5
- condition: or
conditions:
- condition: trigger
id: pm2.5sth
- condition: trigger
id: co2sth
sequence:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_on
- target:
entity_id: switch.esp136_vit_3
data: {}
action: switch.turn_on
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
- target:
entity_id: switch.esp136_vit_2
data: {}
action: switch.turn_on
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- conditions:
- condition: state
entity_id: input_select.vmc_niv0
state: Arret
sequence:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_off
- conditions:
- condition: state
entity_id: input_select.vmc_niv0
state: Marche
sequence:
- target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
data: {}
action: switch.turn_on
- conditions:
- condition: trigger
id:
- temp_basse
sequence:
- data: {}
target:
entity_id:
- switch.relais_cde_vmc_niv0_on_off
action: switch.turn_off
- conditions:
- condition: trigger
id:
- levee_soleil
- condition: state
entity_id: input_select.vmc_niv0
state: CO2 PM2.5
sequence:
- data: {}
target:
entity_id: switch.relais_cde_vmc_niv0_on_off
action: switch.turn_on
default: []
mode: single
trace:
stored_traces: 10
- id: '1642614758763'
alias: Changement HP<->HC
description: ''
triggers:
- entity_id:
- sensor.linky_n_tarif
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: sensor.linky_n_tarif
state: '1'
- condition: state
entity_id: sensor.linky_n_tarif
state: '3'
- condition: state
entity_id: sensor.linky_n_tarif
state: '5'
sequence:
- data:
option: hc
target:
entity_id:
- select.compteur_energie_pac
- select.compteur_energie_autres_jour
- select.compteur_energie_onduleur_jour
- select.compteur_energie_vmc_jour
- select.compteur_energie_sdb_jour
- select.compteur_energie_wc_jour
- select.compteur_energie_cuisine_jour
- select.compteur_energie_mal_jour
- sensor.compteur_energie_piscine_jour_hp_hc
action: select.select_option
- conditions:
- condition: or
conditions:
- condition: state
entity_id: sensor.linky_n_tarif
state: '2'
- condition: state
entity_id: sensor.linky_n_tarif
state: '4'
- condition: state
entity_id: sensor.linky_n_tarif
state: '6'
sequence:
- data:
option: hp
target:
entity_id:
- select.compteur_energie_pac
- select.compteur_energie_autres_jour
- select.compteur_energie_onduleur_jour
- select.compteur_energie_vmc_jour
- select.compteur_energie_sdb_jour
- select.compteur_energie_wc_jour
- select.compteur_energie_cuisine_jour
- select.compteur_energie_mal_jour
- sensor.compteur_energie_piscine_jour_hp_hc
action: select.select_option
default: []
mode: single
- id: '1642958036645'
alias: Blueprint Notification Petite Porte Sous Sol Ouverte
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_petite_porte_sous_sol
alert_state: 'on'
alert_action:
- data:
message: '{{states("sensor.date_time") }}{{-"\n"-}}Petite Porte Sous-Sol
ouverte après le coucher du soleil'
action: notify.telegram
resolved_action:
- data:
message: '{{states("sensor.date_time") }}{{-"\n"-}}Petite Porte Sous-Sol
OK'
action: notify.telegram
notify_message: ' Petite Porte Sous-Sol ouverte après le coucher du soleil'
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 600
resolved_message: 'Petite Porte Sous-Sol OK '
max_alerts: 5
initial_delay: 300
- id: '1644765337710'
alias: 00 Démarrage System
description: ''
triggers:
- event: start
trigger: homeassistant
conditions: []
actions:
- data:
addon: a0d7b954_nut
action: hassio.addon_restart
mode: single
- id: '1653294353395'
alias: Sous sol position ouverte
description: ''
triggers:
- entity_id:
- binary_sensor.porte_ssol_ouverte
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- data:
confident: true
position: 100
position_type: target
entity_id: cover.porte_sous_sol
action: cover_rf_time_based.set_known_position
mode: single
- id: '1653294805612'
alias: Garage position fermee
description: ''
triggers:
- entity_id:
- binary_sensor.porte_garage_fermee
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- data:
confident: true
position: 0
position_type: target
entity_id: cover.porte_garage
action: cover_rf_time_based.set_known_position
mode: single
- id: '1653294983774'
alias: Sous sol position fermee
description: ''
triggers:
- entity_id:
- binary_sensor.porte_ssol_fermee
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- data:
confident: true
position: 0
position_type: target
entity_id: cover.porte_sous_sol
action: cover_rf_time_based.set_known_position
mode: single
- id: '1653295223147'
alias: Garage position ouverte
description: ''
triggers:
- entity_id:
- binary_sensor.porte_garage_ouverte
to: 'on'
from: 'off'
trigger: state
conditions: []
actions:
- data:
confident: true
position: 100
position_type: target
entity_id: cover.porte_garage
action: cover_rf_time_based.set_known_position
mode: single
- id: '1653410044804'
alias: Volet amis sud grand position ouvert
description: ''
triggers:
- entity_id:
- binary_sensor.fdc_volet_amis_sud_grand
to: 'off'
from: 'on'
trigger: state
conditions: []
actions:
- data:
confident: true
position: 100
position_type: target
entity_id: cover.volet_amis_sud_grand_p
action: cover_rf_time_based.set_known_position
mode: single
- id: '1656059504847'
alias: Robot AMX435 Al Bp Notif Tps lames atteint
description: Surveillance du temps d'utilisation des lame du robot
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.amx435x_temps_usage_lames_atteint
alert_state: 'on'
alert_action:
- data:
message: '{{states("sensor.date_time") }}{{-"\n"-}}Lames robot à remplacer
= {{states("sensor.am435x_awd_duree_d_utilisation_des_lames")}} h'
title: Alarme Robot AMX435X!!!
action: notify.telegram
resolved_action:
- data:
message: '{{states("sensor.date_time") }} {{-"\n"-}}Fin notification lames
robot à remplacer'
title: Fin Alarme Robot AMX435X!!!
action: notify.telegram
notify_message: Alerte {{ entity_name }}Déclenché
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 3600
resolved_message: Alerte {{ entity_name }} Résolu
initial_delay: 1
max_alerts: 10
- id: '1669919504303'
alias: BluePrint Notification Temp basse Chalet
description: '# Surveillance de la temperature du chalet'
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.alarme_temp_chalet_basse
alert_state: 'on'
alert_action:
- data:
message: '{{states("sensor.date_time") }} {{-"\n"-}}T° Basse Chalet ={{states("sensor.esp174_temperature_air")
}}°C'
title: Alarme Temperature Basse Chalet!!!
action: notify.telegram
resolved_action:
- data:
message: '{{states("sensor.date_time") }} {{-"\n"-}}T° Basse Chalet ={{states("sensor.esp174_temperature_air")
}}°C'
title: Fin Alarme Temperature Basse chalet !!!
action: notify.telegram
notify_message: ' '
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 1800
resolved_message: ' '
initial_delay: 300
max_alerts: 5
- id: '1671811895133'
alias: Spots Exterieurs Terrasse Couverte
description: ''
triggers:
- device_id: 191305ef12c4538ae3dc593438f5e19d
domain: zha
type: remote_button_short_press
subtype: button
trigger: device
- event_type: motioneye.motion_detected
event_data:
device_id: ae78c8213b3a95e1ef3d7ac161697e42
trigger: event
conditions: []
actions:
- type: toggle
device_id: 216e88150c3bb7fa0e5a68ac407485f9
entity_id: switch.spots_ext_sud
domain: switch
mode: single
- id: '1678531257946'
alias: Surveillance Puissance Onduleur Bureau la nuit
description: ''
triggers:
- entity_id:
- sensor.pc_lidl_2023_c_active_power
above: 20
trigger: numeric_state
conditions:
- condition: time
after: '23:00:00'
before: 07:00:00
actions:
- data:
message: PC Bureau Allumé apres 23:00{{-"\n"-}}{{states("sensor.date_time")
}}
action: notify.telegram
mode: single
- id: '1686145474191'
alias: BleuPrint Defaut Communication FreeBox
description: Blue Print
use_blueprint:
path: pavax/nagging_alert_notification.yaml
input:
condition_entity_state: 'on'
sensor_entity: binary_sensor.uptimekuma_freebox
alert_state: 'off'
alert_action:
- data:
message: Freebox off Line{{-"\n"-}}{{states("sensor.date_time") }}
title: FREE NOK !!!
action: notify.telegram
resolved_action:
- data:
message: Freebox On Line{{-"\n"-}} {{states("sensor.date_time") }}
title: FREE OK!!!
action: notify.telegram
notify_device: 367dba31447009458e03b70e3a29b6b2
repeat_delay: 300
max_alerts: 10
initial_delay: 180
notify_message: ' '
resolved_message: ' '
- id: '1687859491524'
alias: Température haute stérilisateur
description: ''
triggers:
- entity_id: sensor.esp127_temperature
above: 98
trigger: numeric_state
conditions: []
actions:
- data:
message: T° = {{states('sensor.esp127_temperature') }}{{-"\n"-}}{{states("sensor.date_time")
}}
title: Temperature Haute Stérilisateur !!!
action: notify.telegram
mode: single
- id: '1690355630909'
alias: 08 Restart Addon UPS si en défaut
description: ''
triggers:
- entity_id:
- sensor.myups_code_d_etat
to: unavailable
for:
hours: 0
minutes: 2
seconds: 0
trigger: state