lovelace-header-cards icon indicating copy to clipboard operation
lovelace-header-cards copied to clipboard

Make it work within a view

Open Tom-ahawk opened this issue 2 years ago • 3 comments

Nice card. Please consider making a version so the "lovelace-header-cards" can be used in a view itself (as the views header) where the standard badges is located. This way the its easy to group badges and other things per view, - so its possible to have more than one per view.

image

Tom-ahawk avatar Oct 02 '22 11:10 Tom-ahawk

I have been considering per-view options for lovelace-header-cards so that the cards in the header can be different (or disabled) on a per view basis, but this is a bit different from what you are suggesting.

It is actually already possible to use cards as badges in a view, but this is undocumented and not supported in the UI so you need to use the raw editor to do it.

For example:

- title: Badge Test
   path: badgetest
   badges:
   - type: custom:mushroom-chips-card
      chips:
        - type: weather
           entity: weather.openweathermap
           show_conditions: true
           show_temperature: true

Will give you a view with a Mushroom Chips Card with a weather forecase chip as one of the badges for that view.

gadgetchnnel avatar Oct 07 '22 09:10 gadgetchnnel

Lovelace-header-cards so that the cards in the header can be different (or disabled) on a per view basis is also a welcomed functionality. Thanks for the mushroom-chips-car tip.

Tom-ahawk avatar Oct 07 '22 13:10 Tom-ahawk

hey! is this 'per-view' feature coming? :) would be awesome!

modo1302 avatar Jul 21 '23 18:07 modo1302