thomasloven / lovelace-auto-entities

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

Feature request: Add an option to show count of entities found in header #366

Open raqua opened 1 year ago

raqua commented 1 year ago

I would like to be able to have count of results that my auto entity is displaying, ideally in the header somewhere. Thanks for considering.

igorsantos07 commented 5 months ago

This would be great indeed, but no clue how it could be achieved - the contents on the card header are not governed by this extension, it's a property of the card you would write.

ildar170975 commented 5 months ago

In fact, only in SOME cases there is some "header".

raqua commented 5 months ago

Would it be possible to have first item in entity act as a fake header that will show the count?

ildar170975 commented 5 months ago

Only in SOME cases there is some "first entity" (like in a simplest "list of rows in Entities card"). Generated data could be a list of complex structures.

raqua commented 5 months ago

Understood. My use cases are all just simple entities cards with list of rows, so having that only for those would fully satisfy my needs. Not sure if that makes sense though.

ildar170975 commented 5 months ago

In general, the card creates a list of dicts (and each dict may contain other dicts & lists).