i have a little problem, and maybe you can help me.
I have a Rainbird irrigation with 9 zones.
The sprinklers are already integrated in the home assistant.
I would like to have all zones started manually one after the other with the push of a button.
for example:
Zone 1 starts for 10 min, when the zone is finished,
should start the next one.
With a little break in between. 1 to 3 seconds.
I’d like to include a slider for setting the time for each zone.
Thanks for the help, maybe you can give me an example, I still don’t know where to start.
As far as automation and scripts are concerned, I’m still a beginner.
Start by reading the documentation, there are examples:
Have a go at writing a simple script that turns one zone on, waits a short fixed delay then turns it off again. Post it here and I’ll show you how to extend it to do what you want.
input_number:
zone_1_time:
name: Zone 1 On Time
min: 0
max: 30
step: 1
icon: mdi:update
zone_2_time:
name: Zone 2 On Time
min: 0
max: 30
step: 1
icon: mdi:update
# repeat for remaining 7 zone timers (copy / paste / edit is easy).
We can then use these input numbers in your automation:
You should be able to do this by clicking on the entity in Configuration / Entities
EDIT: one final thing. There is likely to be a change coming in home assistant v0.155 that will allow you to use the input number in a delay like this:
- delay:
minutes: input_number.zone_1_time
But for now you have to use the full template I have shown in the script above.