gadgetchnnel / lovelace-header-cards

Header Cards
41 stars 1 forks source link

Make it work within a view #6

Open Tom-ahawk opened 1 year ago

Tom-ahawk commented 1 year ago

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

gadgetchnnel commented 1 year ago

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.

Tom-ahawk commented 1 year ago

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.

modo1302 commented 1 year ago

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