thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.26k stars 115 forks source link

can not use sensor or gauge card #427

Closed jurgenweber closed 7 months ago

jurgenweber commented 7 months ago

if I try with the sensor card::

        - type: custom:auto-entities
          card:
            type: sensor
          filter:
            include:
              - domain: sensor
                entity_id: "sensor.days_to_*"
                state: "< 30"

I get

image

if I just change the type to gauge:

image

What am I doing wrong?

jurgenweber commented 7 months ago

RRIIGGHHTT I get it, it makes sense.

This populates for cards that supports 'entities' as in a list, sensor and guage only support one entity, so this card and everything about it doens't make sense. As it tries to pass a list to entities, not 'entity'.

Thanks