I would like to create a simple irrigation automation that will:
turn the pump ( switch.irrigationbalcony ) on :
30 min before sunrise
100 min after sunset
for N minutes (N should be a variable that can be changed via UI widget like a scroll, “+/-”, arrows or similar).
(a). What is the best way to write this? Preferably It should be one automation (instead of 4) that can be enabled/disabled at once. Maybe with scripts somehow?
(b) What is the best place in UI for widget configuring N (if it is possible to choose a place for it at all)?
Shouldn’t this “cut off” automation fire even if I turn on the switch.irrigationbalcony manually? - Which is actually a great thing if one turns on the irrigation manually and forgets about it… this automation should turn it off after input_number.minute_delay minutes… The problem - it doesn’t seem to launch if I turn irrigation manually… what is wrong?