thomasloven / lovelace-auto-entities

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

Second Sort Option #363

Open solo2424 opened 1 year ago

solo2424 commented 1 year ago

Is it possible to sort by a second criteria? What I want to happen is for the lights to sort by state first, so all on lights are at the top and all off lights are at the bottom. And also, all the on lights are in ordered alphabetcally and all the off lights are ordered alphbetically Here is my current code. I tried playing around with the sort but could not achieve this.

type: custom:auto-entities card: type: entities state_color: true filter: include:

ildar170975 commented 1 year ago
  1. Use formatting when posting a code.
  2. Multiple sorting criteria are available when using a “template” option.