๐Ÿ”น Auto-entities - Automatically fill cards with entities

type: custom:auto-entities
show_empty: false
card:
  type: vertical-stack
card_param: cards
filter:
  template: |-
    [{% set area_filter = states('input_select.room') %}
    {%- for light in area_entities(area_filter) | select('search', '^light.') -%}
      {{ { 'type': 'custom:mushroom-light-card',              
            'entity': light,
            'use_light_color': 'true',
            'show_brightness_control': 'true',
            'show_color_control': 'true',
            'collapsible_controls': 'true',
            'show_color_temp_control': 'true', } }},
    {%- endfor %}]
1 Like

Is it possible to sort by two methods?

For example:

sort:
  method: state, entity_id
  reverse: true

Team,
Iโ€™m trying to get a list of entities with values that are rounded, without having to create a lot of template sensors.
image

  - type: custom:auto-entities
    card:
      type: entities
    filter:
      include:
        - entity_id: sensor.energy_.*_daily

As you can see the values are horrible.
The reason for using auto-entities or similar is the fact that I can click any of these to see โ€œmore-infoโ€. I tried to combine auto-entities with state-entity-row without luck.

Any ideas how I could accomplish this?

DJ

Right after posting this question I found a way to do this: :grin: :grin:

  - type: custom:auto-entities
    card:
      type: entities
      title: yesyes
    filter:
      include:
        - entity_id: sensor.energy_.*_daily
          options:
            type: custom:template-entity-row
            state: >-
              {{ states('this.entity_id') | round(1) }} kWh

Result:
image