I've been trying to figure out how to make a button card for each zone I have configured within a grid card.
type: grid
cards: >
{% for zone in states.zone %}
- show_name: true
show_icon: true
type: button
entity: {{zone.entity_id}}
{% endfor %}
It seems like this should work but I'm getting the error:
The provided value for 'cards' is not supported by the visual editor. We support (array) but received ("{% for zone in states.zone %} - show_name: true\n show_icon: true\n type: button\n entity: {{zone.entity_id}}\n{% endfor %}\n").
You can still edit your config using YAML.
What am I doing wrong and is there a better way to do this?