This looks very intruiging, Ildar.
Am I correct in thinking that this approach allows the creation of multiple cards of which each receives one entity of the list?
Maybe not, and my code cannot work because I am misreading the use case, but I was trying to use this to auto create multiple charts.
type: custom:auto-entities
card:
type: custom:mini-graph-card
filter:
template: >
{% for ENTITY_ID in states.sensor | selectattr('name', 'match', 'Xiaomi Humidity') | map(attribute='entity_id') | list -%}
{{
{
'entities': ENTITY_ID,
}
}}
{%- endfor %}
Could of course also be my lack of templating talent
I just get
mini-graph-card
Entity not available: {'entities':
Entity not available: 'sensor.xiaomi_humidity_master_bathroom'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_master_bedroom'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_living_room'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_walk_in'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_dining_room'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_kitchen'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_office'}{'entities':
Entity not available: 'sensor.xiaomi_humidity_it'}