Automatiser l'interface avec des templates?

Et donc après quelques adaptations, mon code final :

type: custom:auto-entities
show_empty: false
card:
  type: custom:mushroom-chips-card
  alignment: center
card_param: chips
filter:
  template: |
    {%- set ns = namespace(select=[]) %}
      {%- for mylight in area_entities('salon')  | select('match', 'light') %}
        {%- set name = state_attr(mylight ,"friendly_name") %}
        {%- set icon_color = iif( states(mylight) =='off', '#FFFFFF', '#FF9800') %}
        {%- set ns.select = ns.select + [{
            'type': 'template',
            'icon': 'mdi:lightbulb',
            'content': name,
            'entity': mylight,
            'icon_color': icon_color
        }] %}
    {%- endfor %}
    {{ ns.select }}

:pray: :+1: