thomasloven / lovelace-auto-entities

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

Sorting not working #332

Open david-steg opened 1 year ago

david-steg commented 1 year ago

Hello

I'm trying to sort the entitities by Battery Level or by Name, but none of them works. The entities List look like this: image and the card:

- type: custom:auto-entities
        card: 
          type: entities
          title: Battery
        filter:
          include:
            - name: /BATTERY/
        sort:
          methode: attribute
          numeric: true

I tried multiple sort: name, entity_id, state. But none of them have any impact on the list.

I don't know if this is a Bug or a mistake from my side.

Thank You.

david-steg commented 1 year ago

I just tried to sorting it via the UI editor and it works there, so I presum it's a bug. If i check the Code, it tooks the same. image

ildar170975 commented 1 year ago

methode: attribute

Typo