-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
1363 lines (1360 loc) · 38.9 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: '1628296100405'
alias: Flower Day AC Temp
description: Sets AC temp using tasmota HVAC based on day temp input helper
trigger:
- platform: time
at: input_datetime.day_start
condition: []
action:
- service: climate.set_temperature
target:
entity_id: climate.flower_ac
data:
hvac_mode: cool
temperature: '{{ states(''input_number.flower_day_temp'') }}'
mode: single
- id: '1628296129380'
alias: Flower Night AC Temp
description: Set's AC temp using Tasmota HVAC ir blaster. temp based on input number
helper
trigger:
- platform: time
at: input_datetime.night_start
condition: []
action:
- service: climate.set_temperature
target:
entity_id: climate.flower_ac
data:
hvac_mode: cool
temperature: '{{ states(''input_number.flower_night_temp'') }}'
- wait_template: ''
timeout: '60'
continue_on_timeout: true
- service: climate.set_temperature
target:
entity_id: climate.flower_ac
data:
hvac_mode: cool
temperature: '{{ states(''input_number.flower_night_temp'') }}'
mode: single
- id: '1628297762496'
alias: Turn Bulbs Green from 1 turn off after 30
description: 'Green bulbs for plant night work. makes sure bulbs are green if they
are accidentally set to another color. turns off after 30 mins because I liek
to forget to turn them off. '
trigger:
- platform: device
type: turned_on
device_id: 21ebf24dc6f2fe3fef122036b99f535b
entity_id: light.green_flower_1
domain: light
condition: []
action:
- service: light.turn_on
target:
entity_id:
- light.green_flower_1
- light.green_flower_2
data:
color_name: green
- wait_template: ''
timeout: '1800'
- service: light.turn_off
target:
entity_id:
- light.green_flower_1
- light.green_flower_2
mode: single
- id: '1628297792338'
alias: Turn Bulbs Green from 2
description: 'Green bulbs for plant night work. makes sure bulbs are green if they
are accidentally set to another color. '
trigger:
- platform: device
type: turned_on
device_id: 77db42f67ec1ff765706fee7dfacbc88
entity_id: light.green_flower_2
domain: light
condition: []
action:
- service: light.turn_on
target:
entity_id:
- light.green_flower_1
- light.green_flower_2
data:
color_name: green
mode: single
- id: '1628726237212'
alias: Flower LED Lights On
description: Turns on flower grow LED's. Transition time set by sunrise/sunset input
number helper
trigger:
- platform: time
at: input_datetime.day_start
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
action:
- service: light.turn_on
target:
entity_id: light.flower_led_s
data:
brightness_pct: '{{ states(''input_number.flower_led_brightness'')|int }}'
transition: '{{ (states(''input_number.sunrise_sunset'') | float) * 60 | float}}'
mode: single
- id: '1628729240095'
alias: Flower Day CO2 On
description: Turns on CO2 reg Zigbee plug when CO2 is less than but not equall to
CO2 day input helper (template sensor yes/no) Automation is turned on and off
by day and night cycle automations
trigger:
- platform: state
entity_id: sensor.day_co2_yes_no
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
- condition: state
entity_id: sensor.day_co2_yes_no
state: 'no'
for: '0'
action:
- service: switch.turn_on
target:
entity_id: switch.flower_co2_on_off
mode: single
- id: '1628920767954'
alias: Flower Day Humidity On
description: Turns on dehumidifier switch (esphome environment device) when humidity
from DHT22 flower humidity sensor is less than or equal to humidity day input
helper (template sensor yes/no) Automation is turned on and off by day and night
cycle automations
trigger:
- platform: state
entity_id: sensor.day_humidity_yes_no
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
- condition: state
entity_id: sensor.day_humidity_yes_no
state: 'yes'
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
action:
- service: switch.turn_on
target:
entity_id: switch.flower_dehumidifier
mode: single
- id: '1628921353734'
alias: Flower Night Humidity Off
description: Turns off dehumidifier switch (esphome environment device) when humidity
from DHT22 flower humidity sensor is greater than or equal to humidity night input
helper (template sensor yes/no) Automation is turned on and off by day and night
cycle automations
trigger:
- platform: state
entity_id: sensor.night_humidity_yes_no
condition:
- condition: state
entity_id: sensor.night_humidity_yes_no
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
state: 'yes'
action:
- service: switch.turn_off
target:
entity_id: switch.flower_dehumidifier
mode: single
- id: '1628921512432'
alias: Flower Night Humidity On
description: Turns on dehumidifier switch (esphome environment device) when humidity
from DHT22 flower humidity sensor is greater than or equal to humidity night input
helper (template sensor yes/no) Automation is turned on and off by day and night
cycle automations
trigger:
- platform: state
entity_id: sensor.night_humidity_yes_no
condition:
- condition: state
entity_id: sensor.night_humidity_yes_no
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
state: 'no'
action:
- service: switch.turn_on
target:
entity_id: switch.flower_dehumidifier
mode: single
- id: '1628923315470'
alias: Flower Day Humidity Off
description: Turns off dehumidifier switch (esphome environment device) when humidity
from DHT22 flower humidity sensor is greater than or equal to humidity day input
helper (template sensor yes/no) Automation is turned on and off by day and night
cycle automations
trigger:
- platform: state
entity_id: sensor.day_humidity_yes_no
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
- condition: state
entity_id: sensor.day_humidity_yes_no
state: 'no'
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
action:
- service: switch.turn_off
target:
entity_id: switch.flower_dehumidifier
mode: single
- id: '1628969829688'
alias: Flower LED Lights Off
description: Turns off flower grow LED's. Transition time set by sunrise/sunset
input number helper
trigger:
- platform: time
at: input_datetime.night_start
condition:
- condition: time
after: input_datetime.night_start
before: input_datetime.day_start
action:
- service: light.turn_off
target:
entity_id: light.flower_led_s
data:
transition: '{{ (states(''input_number.sunrise_sunset'') | float) * 60 | float}}'
mode: single
- id: '1628994554619'
alias: Flower Stage Day Cycle Start
description: 'Turns off night automations, turns off Dehu, Turns on day automations
after 60 seconds. '
trigger:
- platform: time
at: input_datetime.day_start
- platform: homeassistant
event: start
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
action:
- service: automation.turn_off
target:
entity_id:
- automation.flower_night_humidity
- automation.flower_night_humidity_2
- wait_template: ''
continue_on_timeout: true
timeout: '10'
- service: automation.turn_on
target:
entity_id:
- automation.flower_day_humidity
- automation.flower_day_humidity_off
- automation.flower_day_co2_on
- automation.flower_day_co2_off_2
- service: switch.turn_off
target:
entity_id: switch.flower_dehumidifier
mode: single
- id: '1629378096683'
alias: Flower Day CO2 Off
description: Turns off CO2 reg Zigbee plug when CO2 is greater than or equal to
CO2 day input helper (template sensor yes/no) Automation is turned on and off
by day and night cycle automations
trigger:
- platform: state
entity_id: sensor.day_co2_yes_no
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
- condition: state
entity_id: sensor.day_co2_yes_no
state: 'yes'
for: '0'
action:
- service: switch.turn_off
target:
entity_id: switch.flower_co2_on_off
mode: single
- id: '1629386385371'
alias: Flower Stage Night Cycle Start
description: Turns off Day automations, turns off Dehu, Turns on night automations
after 60 seconds. Also turns off First feed complete boolean and Co2
trigger:
- platform: time
at: input_datetime.night_start
condition:
- condition: time
after: input_datetime.night_start
before: input_datetime.day_start
action:
- service: automation.turn_off
target:
entity_id:
- automation.flower_day_co2_off_2
- automation.flower_day_co2_on
- automation.flower_day_humidity
- automation.flower_day_humidity_off
- automation.full_feed_flush
- service: switch.turn_off
target:
entity_id:
- switch.flower_co2_regulator
- wait_template: ''
continue_on_timeout: true
timeout: '10'
- service: automation.turn_on
target:
entity_id:
- automation.flower_night_humidity
- automation.flower_night_humidity_2
- service: input_boolean.turn_off
target:
entity_id: input_boolean.first_feed_completed
mode: single
- id: '1629648707080'
alias: Home Assistant Start
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: switch.turn_off
target:
entity_id:
- switch.flower_co2_regulator
- switch.flower_dehumidifier
mode: single
- id: '1629831938127'
alias: Daily LED Increase 5%
description: Increases Flower Lights by 5% at the start of the night stage if light
percentage does not match or equal max brightness input set by stage automation
trigger:
- platform: time
at: input_datetime.night_start
condition:
- condition: state
entity_id: sensor.ledbrightnessmatchesmax
state: 'no'
action:
- service: input_number.increment
target:
entity_id: input_number.flower_led_brightness
mode: single
- id: '1630178793657'
alias: CO2 Off before night cycle
description: 'Turns CO2 reg off X amount of time before Night Cycle starts. used
to prevent huge spike in CO2 during Night Cycle. Calculates mins from input number
helper in settings, Must be an easier way to do this but it works. '
trigger:
- platform: time
at: input_datetime.day_start
condition: []
action:
- wait_template: ''
timeout: '{{ 43200 - (states(''input_number.co2_hours_off_before_night_cycle'')
| int *3600 ) | round(0) }}'
continue_on_timeout: true
- service: automation.turn_off
target:
entity_id: automation.flower_day_co2_on
- service: switch.turn_off
target:
entity_id: switch.flower_co2_on_off
mode: single
- id: '1630187308552'
alias: Day Critical Flower Alerts
description: 'Push bullet alerts for Flower room getting out of line during day
cycle. Based heavily on templates in automation. '
trigger:
- platform: numeric_state
entity_id: sensor.feed_water_level
above: '99'
for:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- platform: numeric_state
entity_id: sensor.flower_temperature
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''sensor.flower_temperature'')| float) - (states(''input_number.flower_day_temp'')
| float) }}'
- platform: numeric_state
entity_id: sensor.flower_temperature
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''input_number.flower_day_temp'')| float) - (states(''sensor.flower_temperature'')
| float) }}'
- platform: numeric_state
entity_id: sensor.flower_humidity
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''sensor.flower_humidity'')| float) - (states(''input_number.day_humidity'')
| float) }}'
- platform: numeric_state
entity_id: sensor.flower_humidity
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''input_number.day_humidity'')| float) - (states(''sensor.flower_humidity'')
| float) }}'
- platform: numeric_state
entity_id: sensor.flower_co2
above: '600'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''sensor.flower_co2'')| float) - (states(''input_number.flower_day_co2'')
| float) }}'
- platform: numeric_state
entity_id: sensor.average_soil_moisture
below: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
action:
- service: notify.pushover
data:
title: 'FLOWER STATUS ALERT:'
message: '"Flower Day, Something is wrong, Check these values" {{ ''\n'' -}}
"Feed water level" {{(states(''sensor.feed_water_level'')) }} {{ ''\n'' -}}
"Storage Water level" {{(states(''sensor.storage_level'')) }} {{ ''\n'' -}}
"Humidity" {{(states(''sensor.flower_humidity'')) }}% Should be {{(states(''input_number.flower_night_humidity''))
}}% {{ ''\n'' -}} "Temp" {{(states(''sensor.flower_temperature'')) }} Should
be {{(states(''input_number.flower_night_temp'')) }}{{ ''\n'' -}} "CO2" {{(states(''sensor.flower_co2''))
}}ppm Should be {{(states(''input_number.flower_day_co2'')) }}ppm {{ ''\n''
-}} "Lights" {{(states(''sensor.flower_led_current_brightness'')) }}% {{ ''\n''
-}}"Soil Moisture" {{(states(''sensor.average_soil_moisture'')) }}%'
data:
priority: 2
timestamp: true
expire: 60
retry: 60
mode: single
- id: '1631071825911'
alias: Flower Increase week count
description: Increases flower week count. triggered when day cycle starts with the
condition that the current day matches the day flower cycle started (template
sensor to compare days)
trigger:
- platform: time
at: input_datetime.day_start
condition:
- condition: state
entity_id: sensor.flower_day_start
state: 'yes'
action:
- service: counter.increment
target:
entity_id: counter.flower_week
mode: single
- id: '1631072572250'
alias: Reset Flower Week Counter
description: 'resets flower week Counter. Not really used right now. old automation. '
trigger: []
condition: []
action:
- service: counter.reset
target:
entity_id:
- counter.flower_week
- counter.flower_day_counter
- service: input_select.set_options
target:
entity_id: input_select.flower_start_day
data:
options: '{{states(''sensor.dayoftheweek'')}}
'
mode: single
- id: '1632272103485'
alias: Veg Humidity Off
description: 'Turns off dehumidifier switch group (i have 2 humidifiers in veg)
(esphome veg environment device) when humidity from DHT22 veg humidity sensor
is greater than or equal to humidity veg input helper (template sensor yes/no) '
trigger:
- platform: state
entity_id: sensor.veg_humidity_yes_no
condition:
- condition: state
entity_id: sensor.veg_humidity_yes_no
state: 'yes'
for: '0'
action:
- service: homeassistant.turn_off
target:
entity_id: group.veghumidifiers
mode: single
- id: '1632272187783'
alias: Veg Humidity On
description: 'Turns on dehumidifier switch group (i have 2 humidifiers in veg) (esphome
veg environment device) when humidity from DHT22 veg humidity sensor is greater
less or equal to humidity veg input helper (template sensor yes/no) '
trigger:
- platform: state
entity_id: sensor.veg_humidity_yes_no
condition:
- condition: state
entity_id: sensor.veg_humidity_yes_no
state: 'no'
for: '0'
action:
- service: homeassistant.turn_on
target:
entity_id: group.veghumidifiers
mode: single
- id: '1632273632386'
alias: Veg Increase week count
description: Increases veg week count. triggered when day cycle starts with the
condition that the current day matches the day veg cycle started (template sensor
to compare days)
trigger:
- platform: time
at: input_datetime.day_start
condition:
- condition: state
entity_id: sensor.veg_day_start
state: 'yes'
action:
- service: counter.increment
mode: single
- id: '1632273673294'
alias: Reset Veg Week Counter
description: Resets day and week counter for Veg. Sets day start
trigger: []
condition: []
action:
- service: counter.reset
target:
entity_id:
- counter.veg_week
- counter.veg_day_counter
- service: input_select.set_options
target:
entity_id: input_select.veg_start_day
data:
options: '{{states(''sensor.dayoftheweek'')}}
'
mode: single
- id: '1632337639267'
alias: Flower Increase day count
description: Increases Flower Day counter by 1. triggered when Day cycle starts
trigger:
- platform: time
at: input_datetime.day_start
condition: []
action:
- service: counter.increment
target:
entity_id:
- counter.flower_day_counter
mode: single
- id: '1632337668175'
alias: 'Veg Increase day count '
description: Increased veg day counter. triggered by flower day input date time
helper
trigger:
- platform: time
at: input_datetime.day_start
condition: []
action:
- service: counter.increment
target:
entity_id:
- counter.veg_day_counter
mode: single
- id: '1632417132797'
alias: Veg All Lights Off
description: Turns all 4 Veg CMH lights off at time specified by veg night input
date time helper. turns on white LED light so I can see in veg room
trigger:
- platform: time
at: input_datetime.veg_lights_off
condition: []
action:
- service: switch.turn_off
target:
entity_id:
- switch.veg_cmh_left_front_on_off
- switch.veg_cmh_left_rear_on_off
- switch.veg_cmh_right_front_on_off
- switch.veg_cmh_right_rear_on_off
- service: light.turn_on
target:
entity_id: light.veg_bulb
data:
brightness_pct: 100
mode: single
- id: '1633970650376'
alias: Veg Stage Settings
description: 'Sets flower room to settings for veg for the few times I move veg
into the flower room and need to keep it in veg for whatever reason. '
trigger: []
condition: []
action:
- service: input_number.set_value
target:
entity_id:
- input_number.flower_day_co2
- input_number.flower_night_co2
data:
value: -1000
- service: input_number.set_value
target:
entity_id:
- input_number.flower_day_temp
- input_number.flower_night_temp
data:
value: 75
- service: input_number.set_value
target:
entity_id:
- input_number.day_humidity
- input_number.flower_night_humidity
data:
value: 80
- service: input_number.set_value
target:
entity_id: input_number.flower_led_brightness
data:
value: 40
- service: input_number.set_value
target:
entity_id: input_number.sunrise_sunset
data:
value: 0
- service: input_select.set_options
target:
entity_id: input_select.flower_stage
data:
options: Veg
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.day_start
data:
time: '22:00:00'
- service: input_datetime.set_datetime
target:
entity_id:
- input_datetime.night_start
data:
time: '16:00:00'
- service: automation.turn_off
target:
entity_id: automation.discord_alerts
- service: automation.turn_on
target:
entity_id: automation.discord_veg_alerts
mode: single
- id: '1633991931449'
alias: Critical Veg Alerts
description: 'Push bullet alerts for Veg room getting out of line. Based heavily
on templates in automation. '
trigger:
- platform: numeric_state
entity_id: sensor.flower_temperature
above: '90'
- platform: numeric_state
entity_id: sensor.vegroom_humidity
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''sensor.vegroom_humidity'')| float) - (states(''input_number.veg_humidity'')
| float) }}'
- platform: numeric_state
entity_id: sensor.flower_humidity
above: '10'
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
value_template: '{{ (states(''input_number.veg_humidity'')| float) - (states(''sensor.vegroom_humidity'')
| float) }}'
condition: []
action:
- service: notify.pushover
data:
title: 'FLOWER STATUS ALERT:'
message: '"Veg, Something is wrong, Check these values" {{ ''\n'' -}} "Humidity"
{{(states(''sensor.vegroom_humidity'')) }}% Should be {{(states(''input_number.veg_humidity''))
}}% {{ ''\n'' -}} "Temp" {{(states(''sensor.vegroom_am2301_temperature''))
}} '
data:
priority: 2
timestamp: true
expire: 60
retry: 60
mode: single
- id: '1635010963446'
alias: Sunrise/sunset turn on at 70%
description: Sets sunrise/sunset time to 30 mins if brightness is above 70% as to
not stress the pants or hammer my electric panel with 3870 watts of load instantly
trigger:
- platform: numeric_state
entity_id: input_number.flower_led_brightness
above: '65'
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.sunrise_sunset
data:
value: 30
mode: single
- id: '1635011111076'
alias: Sunrise/sunset turn off below 70%
description: Sets sunrise/sunset light transition time to 0 when lights are below
70%. Takes too long for lights to come on (luxx 645's) when using transitions
below 70%
trigger:
- platform: numeric_state
entity_id: input_number.flower_led_brightness
below: '70'
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.sunrise_sunset
data:
value: 0
mode: single
- id: '1635696582833'
alias: Fill nute Tank
description: Fills feed tank from Storage tank. No triggers, manual activation via
button on lovelace water tab. Turns off recirculation switch and turns on feed
fill switch. can only activate when storage tank reports full and feed storage
tank is below 100 as to prevent over filling and to make sure there is water in
the storage tank to fill it
trigger: []
condition:
- condition: state
entity_id: sensor.storage_water_level
state: '100'
- condition: numeric_state
entity_id: sensor.feed_water_level
below: '100'
action:
- service: switch.turn_on
target:
entity_id: switch.nutriant_fill
- service: switch.turn_off
target:
entity_id: switch.storage_circulation
mode: single
- id: '1635696685718'
alias: Fill nute Tank Stop
description: Turns off Feed fill switch and turns recirculation switch back on for
storage tank after feed tank reports 100% for 1 min (using a 1/4"id hose so 1
min gives me the little bit extra I need to stop the waves from triggering a false
75% fill when the float sensor droops)
trigger:
- platform: numeric_state
entity_id: sensor.feed_water_level
above: '99'
for:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.nutriant_fill
- service: switch.turn_on
target:
entity_id: switch.storage_circulation
mode: single
- id: '1635713766746'
alias: Fill Storage Tank
description: Turns on 1/4" switch to allow RO filter to fill tank. Only activates
when storage tank sensor reports not full
trigger: []
condition:
- condition: state
entity_id: sensor.storage_water_level
state: Not Full
action:
- service: switch.turn_on
target:
entity_id:
- switch.ro_supply
mode: single
- id: '1635713828378'
alias: Fill Storage Tank Stop
description: turns off 1/4" RO switch after storage tank sensor reports 100%
trigger:
- platform: state
entity_id: sensor.storage_water_level
from: Not Full
to: '100'
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.ro_supply
mode: single
- id: '1636055733825'
alias: Flower Feed First Runoff
description: Runs feed pump for X amount of time. Triggered at time set in first
feed input date time helper. Also turns on First feed boolean to let 30% feed
automation run after this if pots get too dry (could just have it turn the automation
its self on but I don't always want 30% feed automation on personally)
trigger:
- platform: time
at: input_datetime.flower_feed_first_runoff
condition:
- condition: time
after: input_datetime.day_start
before: input_datetime.night_start
action:
- service: switch.turn_on
target:
entity_id: switch.flowerfeed
- delay:
hours: 0
minutes: 35
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id: switch.flowerfeed
- service: input_boolean.turn_on
target:
entity_id: input_boolean.first_feed_completed
mode: single
- id: '1636056429781'
alias: 55% Flower feed
description: Feeds for 30 Mins if Average soil moisture is below 30%. Only if First
runoff feed has ran (input_boolean.first_feed_completed is on), feed made boolean
is on (turned on after feed batch is made, turns off when tank level hits Dry)
is after first feed runoff input time date and before flower night start.
trigger:
- platform: numeric_state
entity_id: sensor.average_soil_moisture
for:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
below: '56'
condition:
- condition: time
after: input_datetime.flower_feed_first_runoff
before: input_datetime.night_start
- condition: state
entity_id: input_boolean.first_feed_completed
state: 'on'
- condition: state
entity_id: input_boolean.feed_made
state: 'on'
action:
- service: homeassistant.turn_on
target:
entity_id: switch.flowerfeed
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- service: homeassistant.turn_off
target:
entity_id: switch.flowerfeed
mode: single
- id: '1636249631198'
alias: Full Feed Flush
description: 'Manually triggered. Turns pump and and thats it. For a full pot flush
of CalMG to reset soil. used when and if I hit lockout or runoff tests bad. '
trigger:
- platform: time
at: input_datetime.flower_feed_first_runoff
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.flowerfeed
mode: single
- id: '1636249750575'
alias: Feed Tank Empty Off
description: Turns off the Flower Feed pump when Water Level reports Dry (last sensor
in tank) as to not burn out the pump motor
trigger:
- platform: state
entity_id: sensor.feed_water_level
to: DRY
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.flowerfeed
- service: input_boolean.turn_off
target:
entity_id: input_boolean.feed_made
mode: single
- id: '1636658946892'
alias: Veg Right Rear Auto On
description: 'Turns on Veg Right Rear CMH light based on Veg lights on input date
time helper. 1 automation for each light as I don''t use all 4 lights at once. '
trigger:
- platform: time
at: input_datetime.veg_lights_on
condition: []
action:
- service: switch.turn_on
target:
entity_id:
- switch.veg_cmh_right_rear_on_off
- service: light.turn_off
target:
entity_id: light.veg_bulb
mode: single
- id: '1636659169299'
alias: Veg Right Front Auto On
description: 'Turns on Veg Right Front CMH light based on Veg lights on input date
time helper. 1 automation for each light as I don''t use all 4 lights at once. '
trigger:
- platform: time
at: input_datetime.veg_lights_on
condition: []
action:
- service: switch.turn_on
target:
entity_id:
- switch.veg_cmh_right_front_on_off
- service: light.turn_off
target:
entity_id: light.veg_bulb
mode: single
- id: '1636659335781'
alias: Veg Left Rear Auto On
description: 'Turns on Veg left Rear CMH light based on Veg lights on input date
time helper. 1 automation for each light as I don''t use all 4 lights at once. '
trigger:
- platform: time
at: input_datetime.veg_lights_on
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.veg_cmh_left_rear_on_off
- service: light.turn_off
target:
entity_id: light.veg_bulb
mode: single
- id: '1636659352737'
alias: Veg Left Front Auto On
description: 'Turns on Veg left Front CMH light based on Veg lights on input date
time helper. 1 automation for each light as I don''t use all 4 lights at once. '
trigger:
- platform: time