-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
4157 lines (4157 loc) · 110 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: 1_bathroom_turn_on_light_when_there_is_movement
alias: 1 bathroom turn on light when there is movement
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_burglar
above: '0'
action:
- service: light.turn_on
data:
entity_id: light.1_bathroom_spotlights
brightness: 255
- condition: and
conditions:
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
- service: homeassistant.turn_on
entity_id:
- switch.1_bathroom_light_switch
- id: 1_bathroom_turn_on_fan_when_there_is_movement
alias: 1 bathroom turn on fan when there is movement
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_burglar
above: '0'
condition:
condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
service: homeassistant.turn_on
entity_id:
- switch.1_bathroom_fan_switch
- id: 1_bathroom_turn_off_light_when_there_is_no_movement
alias: 1 bathroom turn off light when there is no movement
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_burglar
below: '1'
for:
minutes: '10'
action:
service: homeassistant.turn_off
entity_id:
- switch.1_bathroom_light_switch
- light.1_bathroom_spotlights
- id: 1_bathroom_turn_on_fan_when_there_is_high_humidity
alias: 1 bathroom turn on fan when there is high humidity
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_relative_humidity
above: '55'
below: '100'
for:
minutes: 5
action:
- service: homeassistant.turn_on
entity_id:
- switch.1_bathroom_fan_switch
- id: 1_bathroom_turn_off_fan_when_there_is_low_humidity
alias: 1 bathroom turn off fan when there is low humidity
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_relative_humidity
above: '0'
below: '54'
for:
minutes: 10
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_bathroom_fan_switch
- id: 1_bathroom_turn_off_fan_after_5_minutes_if_there_is_low_humidity
alias: 1 bathroom turn off fan after 5 minutes if there is low humidity
trigger:
platform: numeric_state
entity_id: sensor.1_bathroom_sensor_burglar
below: '1'
for:
minutes: '10'
condition:
condition: numeric_state
entity_id: sensor.1_bathroom_sensor_relative_humidity
above: '0'
below: '54'
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_bathroom_fan_switch
- id: 1_bathroom_turn_down_thermostat_evening
alias: 1 bathroom turn down thermostat evening
trigger:
platform: time
at: '23:00:00'
condition:
condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_bathroom_thermostat_mode
temperature: 10
hvac_mode: heat
- id: 1_bathroom_turn_up_thermostat_morning
alias: 1 bathroom turn up thermostat morning
trigger:
platform: time
at: 05:30:00
condition:
condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_bathroom_thermostat_mode
temperature: 20
hvac_mode: heat
- id: 1_bedroom_k_set_temp_22_morning_weekdays
alias: 1 bedroom k set temp 22 morning weekdays
trigger:
- platform: template
value_template: '{{ states.sensor.time.state == (states.input_datetime.bedroom_k_morning_workday.attributes.timestamp
| int | timestamp_custom("%H:%M", False)) }}'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- data:
entity_id: climate.1_bedroom_k_thermostat
hvac_mode: heat
temperature: 22
service: climate.set_temperature
- id: 1_bedroom_k_set_temp_16_evening_weekdays
alias: 1 bedroom k set temp 16 evening weekdays
trigger:
- platform: template
value_template: '{{ states.sensor.time.state == (states.input_datetime.bedroom_k_evening_workday.attributes.timestamp
| int | timestamp_custom("%H:%M", False)) }}'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_tomorrow
state: 'on'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- data:
entity_id: climate.1_bedroom_k_thermostat
hvac_mode: heat
temperature: 16
service: climate.set_temperature
- id: 1_bedroom_k_set_temp_22_morning_weekend
alias: 1 bedroom k set temp 22 morning weekend
trigger:
- platform: template
value_template: '{{ states.sensor.time.state == (states.input_datetime.bedroom_k_morning_non_workday.attributes.timestamp
| int | timestamp_custom("%H:%M", False)) }}'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'off'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- data:
entity_id: climate.1_bedroom_k_thermostat
hvac_mode: heat
temperature: 22
service: climate.set_temperature
- id: 1_bedroom_k_set_temp_16_evening_weekend
alias: 1 bedroom k set temp 16 evening weekend
trigger:
- platform: template
value_template: '{{ states.sensor.time.state == (states.input_datetime.bedroom_k_evening_non_workday.attributes.timestamp
| int | timestamp_custom("%H:%M", False)) }}'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_tomorrow
state: 'off'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- data:
entity_id: climate.1_bedroom_k_thermostat
hvac_mode: heat
temperature: 16
service: climate.set_temperature
- id: 1_bedroom_k_set_temp_16_during_school
alias: 1 bedroom k set temp 16 during school
trigger:
platform: time
at: 08:00:00
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_bedroom_k_thermostat
temperature: 16
hvac_mode: heat
- id: 1_bedroom_k_set_temp_22_after_school
alias: 1 bedroom k set temp 22 after school
trigger:
- at: '14:30:00'
platform: time
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- data:
entity_id: climate.1_bedroom_k_thermostat
hvac_mode: heat
temperature: 22
service: climate.set_temperature
- id: 1_bedroom_k_set_temp_22_after_school_wed
alias: 1 bedroom k set temp 22 after school wed
trigger:
platform: time
at: '11:30:00'
condition:
condition: and
conditions:
- condition: time
weekday:
- wed
- condition: state
entity_id: binary_sensor.workday_today
state: 'on'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_bedroom_k_thermostat
temperature: 22
hvac_mode: heat
- id: 1_bedroom_k_alert_above_25_degrees
alias: 1 bedroom k alert temperature above 25
trigger:
- above: '25'
entity_id: sensor.2_bedroom_k_temperature
platform: numeric_state
action:
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
- data:
variables:
what: Nå er det over 25 grader på rommet til Karoline
data_template:
volume_level: 0.3
entity_id: script.1591765433504
service: script.turn_on
- id: 1_hall_turn_down_thermostat_evening
alias: 1 hall turn down thermostat evening
trigger:
platform: time
at: '23:00:00'
condition:
condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_hall_thermostat_mode
temperature: 10
hvac_mode: heat
- id: 1_hall_turn_up_thermostat_morning
alias: 1 hall turn up thermostat morning
trigger:
platform: time
at: 04:30:00
condition:
condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.set_temperature
data:
entity_id: climate.1_hall_thermostat_mode
temperature: 18
hvac_mode: heat
- id: 1_hall_lock_frontdoor_23
alias: 1 hall lock frontdoor night
trigger:
- entity_id: input_select.time_of_day_dropdown
from: Dagtid
platform: state
to: Natt
action:
- entity_id:
- switch.yale_lock
service: homeassistant.turn_on
- id: 1_hall_lock_frontdoor_automatic_23-06
alias: 1 hall lock frontdoor automatic 23-06
trigger:
platform: state
entity_id: switch.yale_lock
from: 'on'
to: 'off'
condition:
condition: state
entity_id: input_select.time_of_day_dropdown
state: Natt
action:
- delay: 0:00:30
- service: homeassistant.turn_on
entity_id:
- switch.yale_lock
- id: 1_hall_lock_frontdoor_when_no_one_is_home
alias: 1 hall lock frontdoor when no one is home
trigger:
platform: state
entity_id: binary_sensor.noen_hjemme_absolutt
from: 'on'
to: 'off'
action:
service: homeassistant.turn_on
entity_id:
- switch.yale_lock
- id: 1_hall_frontdoor_warning_mg
alias: 1 hall frontdoor warning mg
trigger:
platform: state
entity_id: binary_sensor.1_hall_front_door_sensor
from: 'off'
to: 'on'
for:
minutes: '5'
action:
- condition: state
entity_id: device_tracker.morten_mobile
state: home
- service: notify.mobile_app_morten_app
data:
message: Utgangsdøra har stått oppe i mer enn 5 minutter
data:
push:
badge: 5
- id: 1_hall_frontdoor_warning_hg
alias: 1 hall frontdoor warning hg
trigger:
platform: state
entity_id: binary_sensor.1_hall_front_door_sensor
from: 'off'
to: 'on'
for:
minutes: '5'
action:
- condition: state
entity_id: device_tracker.helen_mobile
state: home
- service: notify.mobile_app_helen_app
data:
message: Utgangsdøra har stått oppe i mer enn 5 minutter
data:
push:
badge: 5
- id: 1_hall_frontdoor_warning_no_one_home
alias: 1 hall frontdoor warning no one home
trigger:
platform: state
entity_id: binary_sensor.1_hall_front_door_sensor
from: 'off'
to: 'on'
condition:
condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
action:
- service: notify.mobile_app_morten_app
data:
message: Utgangsdøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- service: notify.mobile_app_helen_app
data:
message: Utgangsdøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- id: 1_hall_frontdoor_warning_Google_assistant
alias: 1 hall frontdoor warning Google assistant
trigger:
- entity_id: binary_sensor.1_hall_front_door_sensor
for: 0:05:00
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
- data:
variables:
what: Utgangsdøra er åpen.
data_template:
volume_level: 0.3
entity_id: script.1591765433504
service: script.turn_on
- id: 1_hall_closet_light_on
alias: 1 hall closet light on
description: ''
trigger:
- device_id: be26537fffa74298b2f80d66942dac57
domain: zha
platform: device
subtype: remote_button_short_press
type: remote_button_short_press
- entity_id: sensor.1_hall_closet_sensor_burglar
from: '0'
platform: state
to: '8'
action:
- entity_id: light.1_hall_closet_light
service: light.turn_on
- id: 1_hall_closet_light_off
alias: 1 hall closet light off
trigger:
- entity_id: sensor.1_hall_closet_sensor_burglar
for: 0:04:00
platform: state
to: '0'
action:
- timeout: '240'
wait_template: ''
- entity_id:
- light.1_hall_closet_light
service: homeassistant.turn_off
- id: 1_kitchen_refridgerator_door_alert
alias: 1 Kitchen refridgerator door alert
trigger:
- entity_id: binary_sensor.1_kitchen_refridgerator_door
for: 0:00:60
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
- data:
variables:
what: Kanskje lukke kjøleskapet?
entity_id: script.1591765433504
service: script.turn_on
- id: 1_kitchen_refridgerator_door_alert_2
alias: 1 Kitchen refridgerator door alert 2
trigger:
- entity_id: binary_sensor.1_kitchen_refridgerator_door
for: 0:00:90
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
- data:
variables:
what: Nå må du lukke kjøleskapet!
data_template:
volume_level: 0.6
entity_id: script.1591765433504
service: script.turn_on
- id: 1_livingroom_turn_down_Heat_pump_evening
alias: 1 livingroom turn down Heat pump evening
trigger:
platform: time
at: '23:59:00'
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.netatmo_outside_temperature
above: '-9'
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.turn_on
data:
entity_id: climate.1_livingroom_heatpump
- service: climate.set_hvac_mode
data:
entity_id: climate.1_livingroom_heatpump
hvac_mode: heat
- service: climate.set_temperature
data:
entity_id: climate.1_livingroom_heatpump
temperature: 16
- id: 1_livingroom_Turn_up_Heat_pump_morning
alias: 1 livingroom Turn up Heat pump morning
trigger:
platform: time
at: 04:30:00
condition:
condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
action:
- service: climate.turn_on
data:
entity_id: climate.1_livingroom_heatpump
- service: climate.set_hvac_mode
data:
entity_id: climate.1_livingroom_heatpump
hvac_mode: heat
- service: climate.set_temperature
data:
entity_id: climate.1_livingroom_heatpump
temperature: 20
- id: 1_livingroom_terrace_door_warning_no_one_home
alias: 1 livingroom terrace door warning no one home
trigger:
platform: state
entity_id: binary_sensor.1_livingroom_terrace_door
from: 'off'
to: 'on'
condition:
condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
action:
- service: notify.mobile_app_morten_app
data:
message: Terassedøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- service: notify.mobile_app_helen_app
data:
message: Terassedøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- id: 1_livingroom_terrace_door_warning_mg
alias: 1 livingroom terrace door warning mg
trigger:
platform: state
entity_id: input_select.morten_status_dropdown
from: hjemme
to: Reist
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
- condition: state
entity_id: binary_sensor.1_livingroom_terrace_door
state: 'on'
action:
- service: notify.mobile_app_morten_app
data:
message: Du Reiste ifra tomt hus med terassedøra åpen
data:
push:
badge: 5
- id: 1_livingroom_terrace_door_warning_hg
alias: 1 livingroom terrace door warning hg
trigger:
platform: state
entity_id: input_select.helen_status_dropdown
from: hjemme
to: Reist
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
- condition: state
entity_id: binary_sensor.1_livingroom_terrace_door
state: 'on'
action:
- service: notify.mobile_app_helen_app
data:
message: Du Reiste ifra tomt hus med terassedøra åpen
data:
push:
badge: 5
- id: 1_washingroom_turn_on_light_when_there_is_movement
alias: 1 washingroom turn on light when there is movement
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_burglar
above: '0'
action:
service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_light_switch
- id: 1_washingroom_turn_off_light_when_there_is_no_movement
alias: 1 washingroom turn off light when there is no movement
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_burglar
below: '1'
for:
minutes: '2'
action:
service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_light_switch
- id: 1_washingroom_turn_on_fan_when_there_is_high_humidity
alias: 1 washingroom turn on fan when there is high humidity
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_relative_humidity
above: '55'
for:
minutes: 5
action:
- service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_on_fan_when_there_more_then_30_degres_in_the_livingroom
alias: 1 washingroom turn on fan when there more then 30 degres in the livingroom
trigger:
platform: numeric_state
entity_id: sensor.netatmo_1_Livingroom_temperature
above: '30'
action:
- service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_on_fan_when_there_more_then_30_degres_in_the_washingroom
alias: 1 washingroom turn on fan when there more then 30 degres in the washingroom
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_temperature
above: '30'
action:
- service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_off_fan_when_there_is_low_humidity
alias: 1 washingroom turn off fan when there is low humidity
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_relative_humidity
below: '55'
for:
minutes: 5
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.netatmo_1_Livingroom_temperature
below: '25'
- condition: numeric_state
entity_id: sensor.1_washingroom_sensor_temperature
below: '30'
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_off_fan_when_there_less_then_30_degres_in_the_livingroom
alias: 1 washingroom turn off fan when there less then 30 degres in the livingroom
trigger:
platform: numeric_state
entity_id: sensor.netatmo_1_Livingroom_temperature
below: '30'
for:
minutes: 5
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.1_washingroom_sensor_relative_humidity
below: '55'
- condition: numeric_state
entity_id: sensor.1_washingroom_sensor_temperature
below: '30'
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_off_fan_when_there_less_then_30_degres_in_the_washingroom
alias: 1 washingroom turn off fan when there less then 30 degres in the washingroom
trigger:
platform: numeric_state
entity_id: sensor.1_washingroom_sensor_temperature
below: '30'
for:
minutes: 5
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.1_washingroom_sensor_relative_humidity
below: '55'
- condition: numeric_state
entity_id: sensor.netatmo_1_Livingroom_temperature
below: '30'
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_fan_switch
- id: 1_washingroom_turn_on_heatfan_morning_weekdays
alias: 1 washingroom turn on heatfan morning weekdays
trigger:
platform: time
at: 06:00:00
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
- condition: state
entity_id: binary_sensor.noen_voksne_hjemme
state: 'on'
action:
service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_heatfan
- id: 1_washingroom_turn_on_heatfan_morning_weekends
alias: 1 washingroom turn on heatfan morning weekends
trigger:
platform: time
at: 08:00:00
condition:
condition: and
conditions:
- condition: time
weekday:
- sat
- sun
- condition: state
entity_id: binary_sensor.alle_bortreist
state: 'off'
- condition: state
entity_id: binary_sensor.noen_voksne_hjemme
state: 'on'
action:
service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_heatfan
- id: 1_washingroom_turn_off_heatfan_all_evenings
alias: 1 washingroom turn off heatfan all evenings
trigger:
platform: time
at: '23:00:00'
action:
service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_heatfan
- id: 1_washingroom_no_adults_home_hetafan_off
alias: 1 washingroom no adults home hetafan off
trigger:
platform: state
entity_id: binary_sensor.noen_voksne_hjemme
from: 'on'
to: 'off'
condition:
condition: time
after: 06:01:00
before: '22:59:00'
action:
- service: homeassistant.turn_off
entity_id:
- switch.1_washingroom_heatfan
- id: 1_wasingroom_adult_home_heatfan_on
alias: 1 wasingroom adult home heatfan on
trigger:
platform: state
entity_id: binary_sensor.noen_voksne_hjemme
from: 'off'
to: 'on'
condition:
condition: time
after: 06:01:00
before: '22:59:00'
action:
- service: homeassistant.turn_on
entity_id:
- switch.1_washingroom_heatfan
- id: 1_washingroom_door_warning_no_one_home
alias: 1 washingroom door warning no one home
trigger:
platform: state
entity_id: binary_sensor.1_washingroom_door_sensor
from: 'off'
to: 'on'
condition:
condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
action:
- service: notify.mobile_app_morten_app
data:
message: Vaskeromsdøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- service: notify.mobile_app_helen_app
data:
message: Vaskeromsdøra er åpnet og ingen er hjemme
data:
push:
badge: 5
- id: 1_washingroom_door_warning_mg
alias: 1 washingroom door warning mg
trigger:
platform: state
entity_id: input_select.morten_status_dropdown
from: hjemme
to: Reist
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
- condition: state
entity_id: binary_sensor.1_washingroom_door_sensor
state: 'on'
action:
- service: notify.mobile_app_morten_app
data:
message: Du Reiste ifra tomt hus med vaskeromsdøra åpen
data:
push:
badge: 5
- id: 1_washingroom_door_warning_hg
alias: 1 washingroom door warning hg
trigger:
platform: state
entity_id: input_select.helen_status_dropdown
from: hjemme
to: Reist
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.noen_hjemme_absolutt
state: 'off'
- condition: state
entity_id: binary_sensor.1_washingroom_door_sensor
state: 'on'
action:
- service: notify.mobile_app_helen_app
data:
message: Du Reiste ifra tomt hus med vaskeromsdøra åpen
data:
push:
badge: 5
- id: 2_bathroom_turn_on_light_when_there_is_movement
alias: 2 bathroom turn on light when there is movement
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_burglar
above: '0'
action:
service: homeassistant.turn_on
entity_id:
- switch.2_bathroom_light_switch
- id: 2_bathroom_turn_on_fan_when_there_is_movement
alias: 2 bathroom turn on fan when there is movement
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_burglar
above: '0'
condition:
condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
service: homeassistant.turn_on
entity_id:
- switch.2_bathroom_fan_switch
- id: 2_bathroom_turn_off_light_when_there_is_no_movement
alias: 2 bathroom turn off light when there is no movement
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_burglar
below: '1'
for:
minutes: '10'
action:
service: homeassistant.turn_off
entity_id:
- switch.2_bathroom_light_switch
- id: 2_bathroom_turn_on_fan_when_there_is_high_humidity
alias: 2 bathroom turn on fan when there is high humidity
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_relative_humidity
above: '55'
below: '100'
for:
minutes: 5
action:
- service: homeassistant.turn_on
entity_id:
- switch.2_bathroom_fan_switch
- id: 2_bathroom_turn_off_fan_when_there_is_low_humidity
alias: 2 bathroom turn off fan when there is low humidity
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_relative_humidity
above: '0'
below: '54'
for:
minutes: 10
action:
- service: homeassistant.turn_off
entity_id:
- switch.2_bathroom_fan_switch
- id: 2_bathroom_turn_off_fan_after_5_minutes_if_there_is_low_humidity
alias: 2 bathroom turn off fan after 5 minutes if there is low humidity
trigger:
platform: numeric_state
entity_id: sensor.2_bathroom_sensor_burglar
below: '1'
for:
minutes: '10'
condition:
condition: numeric_state
entity_id: sensor.2_bathroom_sensor_relative_humidity
above: '0'
below: '54'
action:
- service: homeassistant.turn_off
entity_id:
- switch.2_bathroom_fan_switch
- id: 2_bathroom_window_is_open_and_it_is_raining
alias: 2 bathroom window is open and it is raining
trigger:
- above: '0'
entity_id: sensor.netatmo_rain_sensor_rain
platform: numeric_state
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.2_bathroom_roof_window
state: 'on'
- condition: state
entity_id: input_select.time_of_day_dropdown
state: Dagtid
action:
- data:
variables:
what: Det regner og takvindu på badet oppe er åpent.
data_template:
volume_level: 0.3
entity_id: script.1591765433504
service: script.turn_on
- id: 2_bathroom_turn_down_thermostat_evening
alias: 2 bathroom turn down thermostat evening
trigger:
platform: time
at: '23:00:00'
condition:
condition: state
entity_id: binary_sensor.alle_bortreist