-
Notifications
You must be signed in to change notification settings - Fork 12
/
climate_automations.yaml
executable file
·1758 lines (1647 loc) · 53.1 KB
/
climate_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
##################################################
# AUTOMATIONS TO TURN DOWN HEAT FOR OPEN WINDOWS #
##################################################
- id: heat_down_open_living_room_auto
alias: heat_down_open_living_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.back_door
to: 'on'
for:
minutes: 3
action:
service: evohome.set_zone_override
data:
entity_id: climate.living_room
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile_living_room
state: 'LIVING_ROOM_AUTO'
- id: heat_up_closed_living_room_auto
alias: heat_up_closed_living_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.back_door
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.living_room
condition:
condition: state
entity_id: input_select.active_heating_profile_living_room
state: 'LIVING_ROOM_AUTO'
- id: heat_down_open_sophies_room_auto
alias: heat_down_open_sophies_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.sophies_room_ceiling_window
to: 'on'
for:
minutes: 3
action:
service: evohome.set_zone_override
data:
entity_id: climate.sophie_s_room
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_sophies_room_auto
alias: heat_up_closed_sophies_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.sophies_room_ceiling_window
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.sophie_s_room
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_sebastians_room_auto
alias: heat_down_open_sebastians_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.sebastians_room_left_window
to: 'on'
for:
minutes: 3
action:
service: evohome.set_zone_override
data:
entity_id: climate.sebastian_s_room
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_up_closed_sebastians_room_auto
alias: heat_up_closed_sebastians_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.sebastians_room_left_window
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.sebastian_s_room
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_master_closet_auto
alias: heat_down_open_master_closet_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.ecolink_closet_left_window
to: 'on'
for:
minutes: 2
action:
service: evohome.set_zone_override
data:
entity_id: climate.master_closet
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_master_bedroom_auto
alias: heat_down_open_master_bedroom_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.master_bedroom_window
to: 'on'
for:
minutes: 2
action:
service: evohome.set_zone_override
data:
entity_id: climate.master_bedroom
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_playroom_auto
alias: heat_down_open_playroom_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.play_room_terrace_door
to: 'on'
for:
minutes: 2
action:
service: evohome.set_zone_override
data:
entity_id: climate.dining_room
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_master_closet_auto
alias: heat_up_closed_master_closet_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.ecolink_closet_left_window
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.master_closet
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_laundry_auto
alias: heat_down_open_laundry_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.laundry_room_window_zone_13
to: 'on'
action:
service: evohome.set_zone_override
data:
entity_id: climate.laundry_room
setpoint: 12
duration: {"minutes":1439}
condition:
condition: or
conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_A'
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_laundry_auto
alias: heat_up_closed_laundry_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.laundry_room_window_zone_13
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.laundry_room
condition:
condition: or
conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_A'
- id: heat_down_open_garage_auto
alias: heat_down_open_garage_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.ecolink_garage_door
to: 'on'
for:
minutes: 1
action:
service: evohome.set_zone_override
data:
entity_id: climate.garage
setpoint: 5
duration: {"minutes":1439}
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_garage_auto
alias: heat_up_closed_garage_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.ecolink_garage_door
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.garage
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_up_closed_master_bedroom_auto
alias: heat_up_closed_master_bedroom_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.master_bedroom_window
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.master_bedroom
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_up_closed_play_room_auto
alias: heat_up_closed_play_room_auto
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.play_room_terrace_door
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.dining_room
condition:
condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_office
alias: heat_down_open_office
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.office_door
to: 'on'
action:
service: evohome.set_zone_override
data:
entity_id: climate.office_library
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: climate.office_library
attribute: preset_mode
state: none
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_office
alias: heat_up_closed_office
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.office_door
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.office_library
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: state
entity_id: input_boolean.working_from_home
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.working_from_home
state: 'on'
- condition: time
before: "10:00:00"
after: "18:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.working_from_home
state: 'on'
- condition: time
weekday:
- sat
- sun
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- id: heat_down_open_library
alias: heat_down_open_libary
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.library_door
to: 'on'
action:
service: evohome.set_zone_override
data:
entity_id: climate.office_library
setpoint: 12
duration: {"minutes":1439}
condition:
condition: state
entity_id: climate.office_library
attribute: preset_mode
state: none
# condition:
# condition: template
# value_template: >
# {{ state_attr('climate.living_room', 'status').setpoint_status.setpoint_mode in 'FollowSchedule' }}
- id: heat_up_closed_libary
alias: heat_up_closed_library
initial_state: 'true'
trigger:
platform: state
entity_id: binary_sensor.library_door
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.office_library
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: state
entity_id: input_boolean.working_from_home
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.working_from_home
state: 'on'
- condition: time
before: "10:00:00"
after: "18:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.working_from_home
state: 'on'
- condition: time
weekday:
- sat
- sun
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
######################################################
# AUTOMATIONS TO ADJUST HEAT BASED ON WEATHER REPORT #
######################################################
# this shit all got replaced by a badass python script
# that runs once a day at 12:30 AM (and again an 12:40 AM
# to cover a few minute window where it would normally cycle the TRV's
- id: set_heat_overrides_for_warm_weather
alias: set_heat_overrides_for_warm_weather
initial_state: 'true'
trigger:
platform: time
at: '00:30:00'
action:
- service: python_script.set_heat_weather_override
- id: set_heat_overrides_for_warm_weather
alias: set_heat_overrides_for_warm_weather
initial_state: 'true'
trigger:
platform: time
at: '00:40:00'
action:
- service: python_script.set_heat_weather_override
####################################################
# Special Heating Cases Based on Location or Input #
####################################################
- id: sophie_room_heat_up_if_home
alias: "Turn up the heat in sophie's room if she's home"
initial_state: 'true'
trigger:
platform: time
at: '7:50:00'
condition:
condition: and
conditions:
- condition: state
entity_id: 'device_tracker.sophie'
state: 'home'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: evohome.set_zone_override
data:
entity_id: climate.sophie_s_room
setpoint: 23
duration: {"hours":4, "minutes":20 }
- id: fire_in_fireplace_tomorrow
alias: "Fire in Fireplace Tomorrow"
trigger:
platform: time
at: '6:00:00'
condition:
condition: state
entity_id: input_boolean.fire_in_fireplace_tomorrow
state: 'on'
action:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.fire_in_fireplace_tomorrow
- service: input_boolean.turn_on
data:
entity_id: input_boolean.fire_in_fireplace_now
- id: fire_in_fireplace_now
alias: "Fire in Fireplace Now"
trigger:
platform: state
entity_id: input_boolean.fire_in_fireplace_now
to: 'on'
action:
- service: evohome.set_zone_override
data:
entity_id: climate.dining_room
setpoint: 21
duration: {"hours":14}
- service: evohome.set_zone_override
data:
entity_id: climate.entrance
setpoint: 21
duration: {"hours":14}
- service: evohome.set_zone_override
data:
entity_id: climate.living_room
setpoint: 21
duration: {"hours":14}
- id: fire_in_fireplace_now_turned_off
alias: "Fire in Fireplace Now Off"
initial_state: 'true'
trigger:
platform: state
entity_id: input_boolean.fire_in_fireplace_now
to: 'off'
action:
- service: evohome.clear_zone_override
data:
entity_id: climate.dining_room
- service: evohome.clear_zone_override
data:
entity_id: climate.entrance
- service: evohome.clear_zone_override
data:
entity_id: climate.living_room
- id: working_from_home_now
alias: "Working From Home Now"
trigger:
platform: state
entity_id: input_boolean.working_from_home
to: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
sequence:
- service: evohome.set_zone_override
data:
entity_id: climate.office_library
setpoint: 23
duration: {"hours":8}
- service: switch.turn_on
data:
entity_id: switch.alexa_office_do_not_disturb_switch
- id: working_from_home_today
alias: "Working From Home Today"
trigger:
platform: time
at: '10:00:00'
condition:
- condition: state
entity_id: input_boolean.working_from_home
state: 'on'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.active_heating_profile
state: 'PROFILE_AUTO'
sequence:
- service: evohome.set_zone_override
data:
entity_id: climate.office_library
setpoint: 23
duration: {"hours":11,"minutes":40}
- service: switch.turn_on
data:
entity_id: switch.alexa_office_do_not_disturb_switch
- id: end_working_from_home_today
alias: end_working_from_home_today
trigger:
platform: time
at: '18:30:00'
condition:
condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: switch.turn_off
data:
entity_id: switch.alexa_office_do_not_disturb_switch
#####################################
# Non heating related climate cases #
#####################################
# the /361 minute trigger below is pissing off the parser
- id: notify_windy_weather
alias: 'Notify About Windy Weather'
initial_state: 'true'
mode: single
trigger:
hours: '/6'
platform: time_pattern
condition:
condition: template
value_template: >
{{ (states('sensor.dark_sky_wind_gust_1h')|float > 17) or (states('sensor.dark_sky_wind_gust_2h')|float > 17) or (states('sensor.dark_sky_wind_gust_3h')|float > 17) or (states('sensor.dark_sky_wind_gust_4h')|float > 17) or (states('sensor.dark_sky_wind_gust_5h')|float > 17) or (states('sensor.dark_sky_wind_gust_6h')|float > 17) or (states('sensor.dark_sky_wind_gust_7h')|float > 17) or (states('sensor.dark_sky_wind_gust_8h')|float > 17) or (states('sensor.dark_sky_wind_gust_9h')|float > 17) }}
action:
- service: notify.mobile_app_sean_iphone_14
data:
title: "High Winds Warning"
data:
push:
thread-id: "weather"
data_template:
message: >
{% if states('sensor.dark_sky_wind_gust_1h')|float > 17 %}
High winds expected in the next hour. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_2h')|float > 17 %}
High winds expected in 2 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_3h')|float > 17 %}
High winds expected in 3 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_4h')|float > 17 %}
High winds expected in 4 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_5h')|float > 17 %}
High winds expected in 5 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_6h')|float > 17 %}
High winds expected in 6 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_7h')|float > 17 %}
High winds expected in 7 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_8h')|float > 17 %}
High winds expected in 8 hours. Please secure items outside.
{% elif states('sensor.dark_sky_wind_gust_9h')|float > 17 %}
High winds expected in 9 hours. Please secure items outside.
{% else %}
Error
{% endif %}
- delay:
hours: 5
minutes: 59
#- id: update_open_window_sensor_and_message
# alias: update_open_window_sensor_and_message
# trigger:
# - platform: time_pattern
# minutes: '/5'
# action:
# - service: homeassistant.update_entity
# entity_id: binary_sensor.open_window_making_house_cold
#
#- id: update_open_window_cold_sensor
# alias: update_open_window_cold_sensor
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - delay: '00:00:01'
# - service: homeassistant.update_entity
# entity_id: binary_sensor.open_window_making_house_cold
#
#- id: update_open_window_cold_message
# alias: update_open_window_cold_message
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - service: python_script.set_open_window_message
# data:
# message_type: cold
#
#- id: update_open_window_hot_sensor
# alias: update_open_window_hot_sensor
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - delay: '00:00:01'
# - service: homeassistant.update_entity
# entity_id: binary_sensor.open_window_making_house_hot
#
# - id: update_open_window_hot_message
# alias: update_open_window_hot_message
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - service: python_script.set_open_window_message
# data:
# message_type: hot
# - id: update_open_window_aqi_sensor
# alias: update_open_window_aqi_sensor
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - delay: '00:00:01'
# - service: homeassistant.update_entity
# entity_id: binary_sensor.open_window_letting_pollution_in
# - id: update_open_window_aqi_message
# alias: update_open_window_aqi_message
# trigger:
# - platform: state
# entity_id:
# - binary_sensor.back_door
# - binary_sensor.sebastians_room_left_window
# - binary_sensor.sophies_room_ceiling_window
# - binary_sensor.ecolink_closet_left_window
# - binary_sensor.laundry_room_window_zone_13
# - binary_sensor.ecolink_garage_door
# - binary_sensor.windows_1st_floor_zone_2
# - binary_sensor.master_bedroom_window
# - binary_sensor.office_door
# - binary_sensor.library_door
# - platform: homeassistant
# event: start
# action:
# - service: python_script.set_open_window_message
# data:
# message_type: aqi
- id: update_open_window_message
alias: update_open_window_message
trigger:
- platform: state
entity_id:
- binary_sensor.back_door
- binary_sensor.sebastians_room_left_window
- binary_sensor.sophies_room_ceiling_window
- binary_sensor.ecolink_closet_left_window
- binary_sensor.laundry_room_window_zone_13
- binary_sensor.ecolink_garage_door
- binary_sensor.windows_1st_floor_zone_2
- binary_sensor.master_bedroom_window
- binary_sensor.office_door
- binary_sensor.library_door
- platform: state
entity_id: binary_sensor.open_window_letting_pollution_in
to: 'on'
- platform: state
entity_id: binary_sensor.open_window_making_house_cold
to: 'on'
- platform: state
entity_id: binary_sensor.open_window_making_house_hot
to: 'on'
action:
- service: python_script.set_open_window_message
- id: update_open_window_sensor
alias: update_open_window_sensor
trigger:
- platform: state
entity_id:
- binary_sensor.back_door
- binary_sensor.sebastians_room_left_window
- binary_sensor.sophies_room_ceiling_window
- binary_sensor.ecolink_closet_left_window
- binary_sensor.laundry_room_window_zone_13
- binary_sensor.ecolink_garage_door
- binary_sensor.windows_1st_floor_zone_2
- binary_sensor.master_bedroom_window
- binary_sensor.office_door
- binary_sensor.library_door
- platform: state
entity_id: binary_sensor.open_window_letting_pollution_in
- platform: state
entity_id: binary_sensor.open_window_making_house_cold
- platform: state
entity_id: binary_sensor.open_window_making_house_hot
- platform: numeric_state
entity_id: sensor.home_air_quality
above: 50
- platform: numeric_state
entity_id: sensor.home_air_quality
below: 50
- platform: numeric_state
entity_id: sensor.tempest_st_00023475_temperature
above: 18
- platform: numeric_state
entity_id: sensor.tempest_st_00023475_temperature
below: 18
- platform: numeric_state
entity_id: sensor.tempest_st_00023475_temperature
above: 26
- platform: numeric_state
entity_id: sensor.tempest_st_00023475_temperature
below: 26
- platform: numeric_state
entity_id: sensor.dark_sky_daytime_high_temperature_0d
above: 30
- platform: numeric_state
entity_id: sensor.dark_sky_daytime_high_temperature_0d
below: 30
- platform: homeassistant
event: start
action:
- delay: '00:00:01'
- service: homeassistant.update_entity
entity_id: binary_sensor.open_window_making_air_problem
- id: notify_home_aqi_high
alias: notify_home_aqi_high
initial_state: 'true'
trigger:
platform: numeric_state
entity_id: sensor.home_air_quality
above: 55
for:
minutes: 5
condition:
condition: state
entity_id: input_select.last_inside_aqi_notification
state: 'Good'
action:
- choose:
- conditions:
- condition: state
entity_id: device_tracker.seans_iphone_14
state: 'home'
sequence:
- service: notify.mobile_app_sean_iphone_14
data:
title: "Home indoor air quality is poor"
message: "The indoor Air Quality Index at home is currently {{states('sensor.home_air_quality')}}. Turn on an air purifier."
data:
push:
thread-id: "weather"
- service: input_select.select_option
data:
entity_id: input_select.last_inside_aqi_notification
option: 'Bad'
- choose:
- conditions:
- condition: state
entity_id: device_tracker.alenas_iphone
state: 'home'
sequence:
- service: notify.mobile_app_alena_iphone
data:
title: "Home indoor air quality is poor"
message: "The indoor Air Quality Index at home is currently {{states('sensor.home_air_quality')}}. Turn on an air purifier."
data:
push:
thread-id: "weather"
- service: input_select.select_option
data:
entity_id: input_select.last_inside_aqi_notification
option: 'Bad'
- choose:
- conditions:
- condition: state