Hello,
I have 4 switches controlling 4 irrigation zones (switch.zone_1, switch.zone_2, etc.).
I would like to create an automation which start irrigation one zone at a time only when previous is finished.
I created a group helper in which I put all 4 switches, named “Garden Zones”.
This is my pseudo-code for a complete irrigation cycle I wish to translate in HA automation:
if switch.garden_zones is off
turn_on switch_zone_1
delay 10 minutes
if switch.garden_zones is off
turn_on switch_zone_2
delay 10 minutes
if switch.garden_zones is off
turn_on switch_zone_3
delay 10 minutes
if switch.garden_zones is off
turn_on switch_zone_4
delay 10 minutes
How can I translate it in HA automation considering each anomaly scenario?