thomasloven / lovelace-auto-entities

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

Feature request: Possibility to add a Title to the auto-entities card #361

Closed mathiasolofsson87 closed 1 year ago

mathiasolofsson87 commented 1 year ago

It would be great to be able to add a title to the auto-entities card.

My use case is that I have for example 3 different auto-entities cards to keep track of any available updates to HA or integrations, checking if any battery powered devices are low on battery, if any devices are unavailable. all these auto-entities cards are set to be hidden if no entities match the filters.

Above the auto-entities cards I have a separate card with a title "Battery Status" "Updates" or "unavailable devices". However I cant conditionally hide the title card based on the auto-entities card. So when the auto-entities card is hidden, the title still displays. If I could add the title on the auto-entities card directly it would automatically be hidden together with the auto-entities card.

Screenshot 2023-05-11 at 10 46 57
BebeMischa commented 1 year ago
type: custom:auto-entities
show_empty: true
card:
  type: entities
  title: Lights on
  show_header_toggle: false
filter:
  include:
    - domain: light
  exclude:
    - state: 'off'
    - state: unavailable

This give s me a card with title:

afbeelding

Hope, that may help you ;-)

ildar170975 commented 1 year ago

@mathiasolofsson87 In short - there is no need to add options to auto-entities card which are already available for cards used inside auto-entities. I.e. - if you need to auto-fill a conventional Entities card - use a title option of the Entities card (as @BebeMischa suggested).

mathiasolofsson87 commented 1 year ago

Awesome, I didnt see the "title" parameter in the documentation. Thanks a lot for the info!