So after some YAML brush-up, I’ve managed to generate myself a list of colors to pass to a script. In abbreviated form:
data:
color_name: |
{{ colors }}
In human terms, {{colors}} looks like “[red, green]”, or “[red, blue, yellow]”, etc.
Now though, I’m drawing a blank as how to step through the list. Ideally, a single firing of the script would step through each color in the list, however many, with appropriate transition times, etc. I’ve seen a number of examples where people do something similar with input_select.select_next, but my list needs to be generated by YAML on the fly.
Has anybody tackled anything similar?