dont think it can be done, because youād have to auto populate the row with the type: buttons
, and those require the entity
key.
smthing like this would be the idea:
type: entities
entities:
- type: buttons
entities:
- entity: sun.sun
- entity: sun.sun
- type: custom:auto-entities
card:
type: entities
filter:
include:
- domain: update
but it obviously does not work, and complains about that entity key
We can only do that using a template filter and create the list like this:
template: >
{% for s in states.update %}
{
"entity": {{s.entity_id}},
"name": {{s.name}},
"secondary_info": 'last-changed'
}
%}
{% endfor %}
or namespace:
{% set ns = namespace(updates=[]) %}
{% for s in states.update %}
{% set name = state_attr(s.entity_id,'friendly_name') %}
{% set ns.updates = ns.updates + [
{
"entity": s.entity_id,
"name": name,
"secondary_info": 'last-changed'
}
] %}
{% endfor %}
{{ns.updates}}
but even when that succeeds, we can not add in inside the entities card as type: buttons
because it sees the auto-entities keys, like card and typeā¦