mrochette01
(Michel Rochette)
September 5, 2022, 8:56pm
1
Hello, I am not an expert in YAML. Here is the situation:
I have defined a “HELPERS” containing the number of minutes for the irrigation of a zone in my RACHIO controlled irrigation system;
I wrote a SCRIPT and I can’t find the syntax (after several tries) to assign the HELPERS variable to “duration”.
Here is a screenshot of the “HELPERS” and the SCRIPT.
SCRIPT:
THANKS!
123
(Taras)
September 5, 2022, 10:04pm
2
alias: Test arrosage
sequence:
- service: rachio.start_multiple_zone_schedule
target:
entity_id:
- switch.coin_terrasse_arriere
data:
duration: "{{ states('input_number.duree_cycle_arrosage') | int(0) }}"
mode: single
icon: mdi:sprinkler
mrochette01
(Michel Rochette)
September 6, 2022, 12:19am
3
Thank you. It works very well.
123
(Taras)
September 6, 2022, 2:04am
4
You’re welcome!
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.
For more information about the Solution tag, refer to guideline 21 in the FAQ .