I can select the valve and start it. A button (tap action) calls a script that calls the esphome service defined in the api configuration. I can select the valve number or I can select a duration, but I can’t do both.
Can You publish combined service, which not working ?
Checked sprinkler component code - start_single_valve have valve_number & duration as parameters. See nothing can prevent using such a code:
Thanks for setting out your solution and workings. I was having great difficulty getting a value to the valve number when trying to run a single sprinkler valve. I am still unclear why I could not pass a value via a script within esphome . Constantly receiving " expected integer could not parse “id()” no matter how I tried to define the variable as an integer, but adopting your approach solved it.
I configured two helpers in HASS to give valve number and valve time. Then created two sliders on the dashboard to adjust these numbers. Next a button on-tap action triggers the HASS script, as per your detail, and then passes variables down to the api: services etc again per your details and lo and behold, worked.
Mike