the auto entities card docs have this example
Put all sensors in individual entity cards in a grid card:
type: custom:auto-entities
card:
type: grid
card_param: cards
filter:
include:
- domain: sensor
options:
type: entity
and later an example using templating
Example using templates:
type: custom:auto-entities
card:
type: entities
filter:
template: |
{% for light in states.light %}
{% if light.state == "on" %}
{{ light.entity_id}},
{% endif %}
{% endfor %}
Both work independentlly but if I try and combine the two I get a "No Card Type Configured" error.
type: custom:auto-entities
card:
type: grid
card_param: cards
filter:
template: |
{% for light in states.light %}
{% if light.state == "off" %}
{{ light.entity_id}},
{% endif %}
{% endfor %}
I know practically I could get example 1 to do what I am trying to accomplish in 2, but I am trying to understand templating and why its not working so I can try and come up with more complex templates. They look like they should be operating pretty similar in principle but I think I'm missing a piece of the puzzle. Thanks!