-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
executable file
·1246 lines (1246 loc) · 31.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: '1603420335851'
alias: Lock door after midnight
description: ''
trigger:
- platform: time
at: '23:59'
condition:
- condition: device
device_id: fe8d51f614d311ebb0fb652b85a5bf0f
domain: lock
entity_id: lock.porte_d_apos_entree
type: is_unlocked
action:
- device_id: fe8d51f614d311ebb0fb652b85a5bf0f
domain: lock
entity_id: lock.porte_d_apos_entree
type: lock
mode: single
- id: '1603494388432'
alias: Away From Home ? Enable Away Mode
description: ''
trigger:
- platform: event
event_type: ios.notification_action_fired
context:
user_id:
- cef6abbd4a91408abcd68fbffa4b9553
event_data:
actionName: ENABLE_AWAY_MODE
condition: []
action:
- scene: scene.away_mode
- service: cloud.remote_connect
mode: single
- id: '1603737561143'
alias: Disconnect "Remote UI" When I'm Home
description: ''
trigger:
- platform: zone
entity_id: person.ilyas
zone: zone.home
event: enter
condition: []
action:
- service: cloud.remote_disconnect
data: {}
mode: single
- id: '1604547741002'
alias: Away From Home ?
description: ''
trigger:
- platform: zone
entity_id: person.ilyas
zone: zone.home
event: leave
condition: []
action:
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: Do you want to enable Away Mode?
title: Leaving home?
data:
push:
category: awaymode
mode: single
- id: '1605672393007'
alias: Notify when printer black ink goes low
description: ''
trigger:
- type: value
platform: device
device_id: 2ebe6a57b2b075b168b38d799f861543
entity_id: sensor.canon_tr4500_series_black
domain: sensor
below: 15
condition: []
action:
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: L'encre noir de l'imprimente est a 15%. Tu veux tu le commander?
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: L'encre noir de l'imprimente est a 15%. Tu veux tu le commander?
mode: single
- id: '1605672490410'
alias: Notify when printer color ink goes low
description: ''
trigger:
- type: value
platform: device
device_id: 2ebe6a57b2b075b168b38d799f861543
entity_id: sensor.canon_tr4500_series_color
domain: sensor
below: 16
condition: []
action:
- service: notify.mobile_app_iphone
data:
message: L'encre de couleur de l'imprimente est a 15%. Tu veux tu le commander?
- service: notify.mobile_app_ipad
data:
message: L'encre de couleur de l'imprimente est a 15%. Tu veux tu le commander?
mode: single
- id: '1605987223476'
alias: Turn On lights at sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: -00:30:00
condition: []
action:
- type: turn_on
device_id: cd9f9f6967fc45298b85fcca241c5f93
entity_id: light.salon_encastre
domain: light
brightness_pct: 30
- type: turn_on
device_id: 6428fd99a866632522dfa426ca53d18d
entity_id: switch.cuisine_armoire_1
domain: switch
mode: single
- id: '1607473739446'
alias: Netflix In Bed - Enable Theatre Mode - NIGHT
description: ''
trigger:
- platform: state
entity_id: media_player.ilyas_s_fire_tv
attribute: app_id
to: com.netflix.ninja
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- platform: state
entity_id: media_player.ilyas_s_fire_tv
attribute: app_id
to: com.amazon.firebat
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- platform: state
entity_id: media_player.ilyas_s_fire_tv
to: AppleTV
attribute: friendly_name
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
condition:
- condition: time
after: '16:00:00'
before: 05:00:00
action:
- scene: scene.netflix_in_bed
mode: single
- id: '1607618843280'
alias: Turn on Air Exchanger when air quality is excellent
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.u_s_air_quality_index
below: '30'
condition:
- condition: device
type: is_off
device_id: 54b37db8163411eb9ad1ad790c34e9a1
entity_id: switch.30445060c44f338013c1
domain: switch
action:
- service: notify.alexa_media_alexa_cuisine
data:
message: hum... La qualité de l'air exterieur est excellente. je vais allumer
l'échangeur d'air
data:
type: tts
- delay: 00:00:05
- type: turn_on
device_id: 54b37db8163411eb9ad1ad790c34e9a1
entity_id: switch.30445060c44f338013c1
domain: switch
mode: single
- id: '1608574342536'
alias: Tag Morning medication is scanned
description: ''
trigger:
- platform: tag
tag_id: e706a521-808b-4ddb-b7d2-bdb47da9d3c0
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.morning_medication
mode: single
- id: '1608590921754'
alias: Reset morning medication tag every night
description: ''
trigger:
- platform: time
at: 02:00:00
condition: []
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.morning_medication
mode: single
- id: '1608601825669'
alias: Notify when new Hass is released
description: ''
trigger:
- platform: state
entity_id: binary_sensor.updater
from: 'off'
to: 'on'
condition: []
action:
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: New Haas available
mode: single
- id: '1609081650180'
alias: Notify if forgot to take morning medication
description: ''
trigger:
- platform: time
at: '11:00:00'
condition:
- condition: state
entity_id: input_boolean.morning_medication
state: 'off'
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
message: Oublié tes medocs ce matin ?
title: ''
mode: single
- id: '1609088285550'
alias: Turn off Air Exchanger when air quality is not good
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.u_s_air_quality_index
above: '30'
condition:
- condition: device
type: is_on
device_id: 54b37db8163411eb9ad1ad790c34e9a1
entity_id: switch.30445060c44f338013c1
domain: switch
action:
- service: notify.alexa_media_alexa_cuisine
data:
message: hum... La qualité de l'air exterieur n'est pas optimal. je vais eteindre
l'échangeur d'air
data:
type: tts
- delay: 00:00:05
- type: turn_off
device_id: 54b37db8163411eb9ad1ad790c34e9a1
entity_id: switch.30445060c44f338013c1
domain: switch
mode: single
- id: '1609169943797'
alias: Notify when disk is almost full
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.disk_use_percent_home
above: '50'
condition: []
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: ''
message: Raspi disk is half full
mode: single
- id: '1609182901674'
alias: Turn on RDC lights on a cloudy day
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.chez_nous_cloud_ceiling
below: '3500'
condition:
- condition: sun
before: sunset
after: sunrise
- condition: and
conditions:
- condition: device
device_id: 71a164ba17d511ebbf9975fdb372b5a6
domain: media_player
entity_id: media_player.fire_tv
type: is_on
- condition: or
conditions:
- condition: device
device_id: 71a2276117d511ebb65cab236a7c1de7
domain: media_player
entity_id: media_player.bureau_show
type: is_playing
- condition: zone
entity_id: person.ilyas
zone: zone.home
action:
- service: notify.alexa_media_alexa_cuisine
data:
message: hum... il fait un peu sombre ici. je vais allumer quelques lumieres
data:
type: tts
- delay: 00:00:05
- service: script.cloudy_day_rdc
data: {}
mode: single
- id: '1609382924477'
alias: Tag Workbench lights is scanned
description: ''
trigger:
- platform: tag
tag_id: e5e0ac1b-ba9d-4a40-bd19-c609e8633579
condition: []
action:
- scene: scene.diy_time
mode: single
- id: '1610717877534'
alias: Notify when update is available
description: ''
trigger:
- platform: state
entity_id: binary_sensor.updater
to: 'on'
from: 'off'
condition: []
action:
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version')
}} is available.
mode: single
- id: '1612109512599'
alias: Turn off bed lights at night
description: ''
trigger:
- platform: time
at: 02:00:00
condition: []
action:
- type: turn_off
device_id: 407fa100ba73ed6f83c4f710afedf570
entity_id: light.lampe_a_droite
domain: light
- type: turn_off
device_id: 407fa100ba73ed6f83c4f710afedf570
entity_id: light.lampe_a_droite
domain: light
- device_id: 12807559c2dc597923fb7b5f47f2c3dd
domain: cover
entity_id: cover.tradfri_blind
type: set_position
position: 0
- device_id: 1d15aed097361a6ec9844e082df48e93
domain: cover
entity_id: cover.tradfri_blind_2
type: set_position
position: 0
mode: single
- id: '1618003871741'
alias: Connect Remote UI When I leave home
description: ''
trigger:
- platform: zone
entity_id: person.ilyas
zone: zone.home
event: leave
condition: []
action:
- service: cloud.remote_connect
mode: single
- id: '1619141102111'
alias: Notify if garage door is left open at night
description: ''
trigger:
- platform: device
device_id: 707d7ce821abcf34a2633f51d6224e3f
domain: cover
entity_id: cover.porte_garage_msg100_main_channel
type: opened
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition:
- condition: sun
after: sunset
before: sunrise
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
message: Did you forget to close garage door?
mode: single
- id: '1628888064313'
alias: Notify me when my plant is thirsty
description: ''
trigger:
- platform: mqtt
topic: PLANT/WATER_ME
condition: []
action:
- service: notify.alexa_media_bureau_dot
data:
message: Enjoying you coffee? I need hydration as well, you know?
target: media_player.bureau_dot
data:
type: announce
method: all
mode: single
- id: '1633116970130'
alias: ' Notify If Solarium Motion Detector Battery is Low'
description: ''
trigger:
- platform: state
entity_id: sensor.motion_solarium_door_battery_level
to: '15'
from: '16'
condition: []
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
message: Low battery on motion detector at Solarium
title: Low Battery
mode: single
- id: '1633134258039'
alias: Netflix In Bed - Enable Theatre Mode - DAY
description: ''
trigger:
- platform: state
entity_id: media_player.ilyas_s_fire_tv
attribute: app_id
to: com.netflix.ninja
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- platform: state
entity_id: media_player.ilyas_s_fire_tv
attribute: app_id
to: com.amazon.firebat
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- platform: state
entity_id: media_player.ilyas_s_fire_tv
to: AppleTV
attribute: friendly_name
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
condition:
- condition: time
after: 04:00:00
before: '16:00:00'
action:
- scene: scene.netflix_in_bed_day
mode: single
- id: '1633728955206'
alias: Notify If Solarium Door Sensor Battery is Low
description: ''
trigger:
- type: battery_level
platform: device
device_id: ccfe8a8e146aba89bdbd8b7b29e852a5
entity_id: sensor.openclosed_solarium_door_detector_68fa9d23_power
domain: sensor
below: 11
condition: []
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: Low Battery
message: Solarium Open/Close sensor battery is at 10%
mode: single
- id: '1633784392510'
alias: Notify if cold in solarium
description: ''
trigger:
- platform: time_pattern
minutes: '15'
condition:
- type: is_open
condition: device
device_id: ccfe8a8e146aba89bdbd8b7b29e852a5
entity_id: binary_sensor.openclosed_solarium_door_detector_68fa9d23_ias_zone
domain: binary_sensor
- condition: numeric_state
entity_id: weather.rosemere
attribute: temperature
below: '15'
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: Suggestion
message: il fait 14C should Solarium door really stay open?
- service: notify.alexa_media_ilyas_s_fire_tv
data:
message: il fait 14C should Solarium door really stay open?
title: Suggestion
mode: single
- id: '1633904044734'
alias: If Solarium Is Opened While Away-Mode Is Active
description: ''
trigger:
- type: opened
platform: device
device_id: ccfe8a8e146aba89bdbd8b7b29e852a5
entity_id: binary_sensor.openclosed_solarium_door_detector_68fa9d23_ias_zone
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: Alert !
message: Solarium Door was just opened
mode: single
- id: '1633905077949'
alias: If Solarium Motion Is Detected While Solarium Door Is Closed
description: ''
trigger:
- type: motion
platform: device
device_id: 7c81f6f87e762afda6974eb19e99eb91
entity_id: binary_sensor.motion_detector_solarium_door_f3ebc1fe_ias_zone
domain: binary_sensor
condition:
- type: is_not_open
condition: device
device_id: ccfe8a8e146aba89bdbd8b7b29e852a5
entity_id: binary_sensor.openclosed_porte_solarium_68fa9d23_ias_zone
domain: binary_sensor
action:
- service: camera.snapshot
target:
entity_id: camera.camera_solarium
data:
filename: /config/www/camera_solarium/{{ now().strftime("%Y/%m/%d/%H.%M.%S")}}.jpg
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: Detected movement at the back door
data:
attachment:
url: http://192.168.68.113:8123/local/camera_solarium/snapshot_latest.jpg
mode: single
- id: '1633956562872'
alias: When I Leave Home
description: ''
trigger:
- platform: zone
entity_id: device_tracker.iphone_12_ilyas
zone: zone.home
event: leave
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.away_mode
mode: single
- id: '1633956618074'
alias: When I Enter Home
description: ''
trigger:
- platform: zone
entity_id: device_tracker.iphone_12_ilyas
zone: zone.home
event: enter
condition: []
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.away_mode
mode: single
- id: '1633962237338'
alias: Notify When Motion Detector Solarium Is Tampered With
description: ''
trigger:
- type: problem
platform: device
device_id: 7c81f6f87e762afda6974eb19e99eb91
entity_id: binary_sensor.motion_solarium_door_tampered
domain: binary_sensor
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/camera_solarium/snapshot_latest.jpg
target:
entity_id: camera.camera_solarium
- service: camera.snapshot
target:
entity_id: camera.camera_solarium
data:
filename: /config/www/camera_solarium/{{ now().strftime("%Y/%m/%d/%H.%M.%S")}}.jpg
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: Solarium Motion Detector Is Having Problems
data:
attachment:
url: http://192.168.68.113:8123/local/camera_solarium/snapshot_latest.jpg
mode: single
- id: '1633962314151'
alias: Notify When Solarium Door Sensor Is Tampered With
description: ''
trigger:
- device_id: ccfe8a8e146aba89bdbd8b7b29e852a5
domain: zha
platform: device
type: device_offline
subtype: device_offline
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/camera_solarium/snapshot_latest.jpg
target:
entity_id: camera.camera_solarium
- service: camera.snapshot
target:
entity_id: camera.camera_solarium
data:
filename: /config/www/camera_solarium/{{ now().strftime("%Y/%m/%d/%H.%M.%S")}}.jpg
- service: notify.mobile_app_iphone_12_pro_ilyas
data:
message: Solarium Door Sensor Is Having Problems
data:
attachment:
url: http://192.168.68.113:8123/local/camera_solarium/snapshot_latest.jpg
mode: single
- id: '1633973431757'
alias: If Solarium Motion Is Detected While Away-Mode Is Active
description: ''
trigger:
- type: motion
platform: device
device_id: 7c81f6f87e762afda6974eb19e99eb91
entity_id: binary_sensor.motion_detector_solarium_door_f3ebc1fe_ias_zone
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.away_mode
state: 'on'
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: Alert !
message: Motion Detected At The Back
mode: single
- id: '1633986451357'
alias: Front Door Button - Double Clicked - Night - Switch Everything On
description: ''
trigger:
- device_id: a3d2e97d3958b7b91d707506ee35d904
domain: zha
platform: device
type: remote_button_double_press
subtype: button
condition:
- condition: time
after: '16:00:00'
before: 08:00:00
action:
- scene: scene.etudes
- service: input_boolean.turn_off
target:
entity_id: input_boolean.away_mode
- service: notify.alexa_media_alexa_cuisine
data:
target: media_player.alexa_cuisine
data:
type: announce
method: all
message: Bienvenu a la maison!
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- type: turn_off
device_id: fe272985094296876ba0817203e9b479
entity_id: switch.lumiere_porte_d_entree_1
domain: switch
mode: single
- id: '1633986674824'
alias: Front Door Button - Double Clicked - Day
description: ''
trigger:
- device_id: a3d2e97d3958b7b91d707506ee35d904
domain: zha
platform: device
type: remote_button_double_press
subtype: button
condition:
- condition: time
after: 08:00:00
before: '16:00:00'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.away_mode
- device_id: 22253c1218cf2bf45ed635912a38058e
domain: vacuum
entity_id: vacuum.troubette
type: dock
- service: notify.alexa_media_alexa_cuisine
data:
target: media_player.alexa_cuisine
data:
type: announce
method: all
message: Bienvenu a la maison!
mode: single
- id: '1634005955793'
alias: Troubette - Notify When Bin Is Full
description: ''
trigger:
- type: turned_on
platform: device
device_id: 22253c1218cf2bf45ed635912a38058e
entity_id: binary_sensor.troubette_bin_full
domain: binary_sensor
condition: []
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: ''
message: Troubette Bin is full. Time To change it ;)
mode: single
- id: '1634078681847'
alias: Front Door Button - One Click - Enable Remote Connect
description: ''
trigger:
- device_id: a3d2e97d3958b7b91d707506ee35d904
domain: zha
platform: device
type: remote_button_short_press
subtype: button
condition: []
action:
- service: cloud.remote_connect
mode: single
- id: '1634078837900'
alias: Front Door Button - One Click - Launch Troubette
description: ''
trigger:
- device_id: a3d2e97d3958b7b91d707506ee35d904
domain: zha
platform: device
type: remote_button_short_press
subtype: button
condition:
- condition: time
after: '10:00:00'
before: '16:00:00'
action:
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- device_id: 22253c1218cf2bf45ed635912a38058e
domain: vacuum
entity_id: vacuum.troubette
type: clean
mode: single
- id: '1634079011894'
alias: Front Door Button - One Click - Switch Everything Off
description: ''
trigger:
- device_id: a3d2e97d3958b7b91d707506ee35d904
domain: zha
platform: device
type: remote_button_short_press
subtype: button
condition: []
action:
- service: notify.alexa_media_alexa_cuisine
data:
target: media_player.alexa_cuisine
data:
type: announce
method: all
message: C'est noté! Je vais m'en occuper
- delay:
hours: 0
minutes: 0
seconds: 45
milliseconds: 0
- service: input_boolean.turn_on
target:
entity_id: input_boolean.away_mode
- scene: scene.away_mode
mode: single
- id: '1634135106848'
alias: Miroir Grande Chambre - Switch Off At Night
description: ''
trigger:
- platform: time
at: '22:00:00'
condition: []
action:
- type: turn_off
device_id: e30129612bd9375a9686c5ac0634ba08
entity_id: switch.sapin_noel_1
domain: switch
mode: single
- id: '1634135158656'
alias: Miroir Grande Chambre - Switch On At Day
description: ''
trigger:
- platform: time
at: 07:30:00
condition: []
action:
- type: turn_on
device_id: e30129612bd9375a9686c5ac0634ba08
entity_id: switch.sapin_noel_1
domain: switch
mode: single
- id: '1634136141291'
alias: When Air Quality Is Not Great
description: ''
trigger:
- platform: state
entity_id: sensor.u_s_air_quality_index
from: '49'
to: '50'
condition: []
action:
- device_id: 0f59fa93a49df243b354af0136489698
domain: mobile_app
type: notify
title: Air Quality
message: La qualité de l'air est a 50 US AQI (Moderate)
mode: single
- id: '1634477177709'
alias: Switch On Kitchen lights On Motion - Kitchen Sensor
description: ''
trigger:
- type: motion
platform: device
device_id: 0b325f5e08b1f3fd221e9118a364a800
entity_id: binary_sensor.motion_detector_cuisine_5b39c7fe_ias_zone
domain: binary_sensor
condition:
- condition: device
type: is_off
device_id: 6428fd99a866632522dfa426ca53d18d
entity_id: switch.cuisine_armoire_1
domain: switch
action:
- type: turn_on
device_id: 6428fd99a866632522dfa426ca53d18d
entity_id: switch.cuisine_armoire_1
domain: switch
- wait_for_trigger:
- type: no_motion
platform: device
device_id: 0b325f5e08b1f3fd221e9118a364a800
entity_id: binary_sensor.motion_detector_cuisine_5b39c7fe_ias_zone
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
continue_on_timeout: true
- type: turn_off
device_id: 6428fd99a866632522dfa426ca53d18d
entity_id: switch.cuisine_armoire_1
domain: switch
mode: single
- id: '1634478241280'
alias: Grande Chambre - Temperature - Day
description: ''
trigger:
- platform: time
at: 08:00:00
condition: []
action:
- service: climate.set_temperature
data:
temperature: 15
target:
entity_id: climate.thermostat_grande_chambre
mode: single
- id: '1634478281790'
alias: Grande Chambre - Temperature - Night
description: ''
trigger:
- platform: time
at: '22:00:00'
condition: []
action:
- service: climate.set_temperature
data:
temperature: 19
target:
entity_id: climate.thermostat_grande_chambre
mode: single
- id: '1634493193653'
alias: Update Sonoff Energy Consumption
description: ''
trigger:
- platform: time_pattern
minutes: /10
condition: []
action:
- service: sonoff.update_consumption
mode: single
- id: '1634605582965'
alias: Energy Cost - First 40
description: ''
trigger:
- platform: state
entity_id: input_number.energy_cost_first_40
to: '40'
condition: []
action:
- service: utility_meter.select_tariff
target:
entity_id: utility_meter.daily_energy
data:
tariff: after_40
- service: input_number.set_value
target:
entity_id: input_number.energy_current_cost
data:
value: '{{ states(''input_number.energy_cost_after_40'') | float }}'
mode: single
- id: '1634605973267'
alias: Energy Cost - Reset Daily
description: ''
trigger:
- platform: time
at: 00:00:00
condition: []
action:
- service: utility_meter.select_tariff
target:
entity_id: utility_meter.daily_energy
data:
tariff: first_40
- service: input_number.set_value
target:
entity_id: input_number.energy_current_cost
data:
value: '{{ states(''input_number.energy_current_cost'') | float }}'
mode: single
- id: '1634941095239'
alias: Open garage door
description: ''
trigger:
- device_id: 63ac805a4ceedacf1a948f9646e05888
domain: zha
platform: device
type: remote_button_short_press
subtype: button
condition: []
action:
- device_id: 707d7ce821abcf34a2633f51d6224e3f
domain: cover
entity_id: cover.porte_garage_msg100_main_channel
type: open
mode: single
- id: '1634941239639'
alias: Close garage door
description: ''
trigger:
- device_id: 63ac805a4ceedacf1a948f9646e05888
domain: zha
platform: device