|
I'm not sure this is supposed to work (at least it seems it doesn't for me but the template renders properly and returns a list object in the dev tools), but it could be useful :-) This is as a feature of a tile card (create a button for each child entity in a group for 'more-info' using this custom card): - type: custom:uix-forge
forge:
mold: card-feature
hidden: "{{ state_attr(config.entity, 'entity_id') is not none }}"
element:
type: custom:service-call
entries: |
{%- set cg = expand("cover.all_covers") | map(attribute="entity_id") | list %}
{%- set cover = namespace(return=[]) %}
{%- for c in cg %}
{%- set obj = {
"type": "button",
"entity_id": c,
"label": "<<< value | replace('Cover ', '') | replace(' (Advanced)', '') >>>",
"value_attribute": "friendly_name",
"tap_action": {
"action": "more-info",
"target": { "entity_id": c }
}
}
%}
{%- set cover.return = cover.return + [obj] %}
{%- endfor %}
{{ cover.return | list }} |
Answered by
RomRider
Jul 18, 2026
Replies: 1 comment
|
Actually... it was my fault, it works. The Final config: type: custom:uix-forge
forge:
mold: card-feature
hidden: "{{ state_attr(config.entity, 'entity_id') | default(none) is none }}"
element:
type: custom:service-call
entries: |
{%- set cg = expand(config.entity) | map(attribute="entity_id") | list %}
{%- set cover = namespace(return=[]) %}
{%- for c in cg %}
{%- set obj = {
"type": "button",
"entity_id": c,
"label": state_attr(c, 'friendly_name') | replace('Cover ', '') | replace(' (Advanced)', ''),
"value_attribute": "friendly_name",
"tap_action": {
"action": "more-info",
"target": { "entity_id": c }
}
}
%}
{%- set cover.return = cover.return + [obj] %}
{%- endfor %}
{{ cover.return | reverse | list }} |
0 replies
Answer selected by
RomRider
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Actually... it was my fault, it works. The
labelwas not rendering properly making the inline card fail. I had to replace it with a server side template instead of an child card nested template. The embedded chevrons were behaving weirdly 🤷♂️Final config: