Now you need to create nine input_numbers.
Here’s a couple of examples:
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:
sprinkler:
alias: Sprinkler
mode: single
sequence:
- service: switch.turn_on
entity_id: switch.05200020ecfabc93579f
- delay:
minutes: "{{ states('input_number.zone_1_time') }}"
- service: switch.turn_off
entity_id: switch.05200020ecfabc93579f
- delay:
seconds: 3
- service: switch.turn_on
entity_id: switch.second_switch_here
- delay:
minutes: "{{ states('input_number.zone_2_time') }}"
- service: switch.turn_off
entity_id: switch.second_switch_here
- delay:
seconds: 3
#... and repeat for the remaining 7 other zones.
I recommend you rename your switches to a human readable form. e.g.
switch.05200020ecfabc93579f
--> switch.zone_1_sprinkler_valve
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.