piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.63k stars 332 forks source link

[Feature]: Name + State as content in Entity Chip card #1483

Open joe-sydney opened 2 months ago

joe-sydney commented 2 months ago

Requirements

Is your feature request related to a problem?

In some cases, I would like to see both the entity name and state in the entity chip card as there may be several entities with the same icon. Currently, we can choose name OR state, not both.

Describe the solution you'd like

The new Home Assistant replacement for "badges" provides is ability, and it would be good to replicate that into the mushroom entity chip card.

Describe alternatives you've considered

No response

Additional context

No response

piitaya commented 2 months ago

Badges have been introduced as many users are using mushroom chips for their dashboard. May I know why you still want to use mushroom chips?

joe-sydney commented 2 months ago

Initially, I thought that the new badges (together with the template badge) would be able to replace the existing mushroom chips- hence you have seen that I closed the request. But I re-opened this request when I found that the new badges continued to be only available at the top of the view (ie where the old badges were). However, I am using chips in the rest of the dashboard (ie not just the top), and perhaps I didn't look hard enough, but I couldn't find a way convert those chips into the new badges.

As an additional note, I used to use the custom badge-card, but I also found that the conversions of those badges did not occur as expected. I believe there is an existing open issue on that as well (can't remember on which github).

piitaya commented 2 months ago

Thank you for the additional information. I'm also working at Nabu Casa and I'm looking to bring badges at the top of each sections too. It's hard to bring all the feature we add in Home Assistant to Mushroom because I have to basically do the work twice so I try to merge all the best feature of Mushroom into Home Assistant.

Could you share screenshots of your dashboard to see where there are displayed? 🙂

joe-sydney commented 2 months ago

Understand, perhaps the new badges can be made general so they can be placed anywhere, like the current mushroom chips. Below is one example where I use it, together with auto-entities. image

WarC0zes commented 2 months ago

Hi I'm interested in adding the name + state for the chips too.

exemple : image

image

shbatm commented 1 month ago

I'd like to add to this: specifically I would like to see the "Label" section of the new Badges brought to the Chips. It would be nice to see something like this:

image

@piitaya - With regards to the base Badge functionality in HA vs maintaining the Chips, I still use Chips in the different sections for things that don't apply to the whole dashboard view, so I love the idea to extend Badges to the new Sections view!

image

Here's a second example just for sharing of how I had my Room Sections set-up before the Sections view: image (mushroom title card and chip card customized in a stack-in-card).

BBE-FR commented 1 week ago

@piitaya the new header card introduced in 2024.10 can be very versatile for this usage.

image

It would be very nice to be capable to have an advanced (mushroom?) version of it, with templating capabilities for the icon/title/subtitle + use of a templatable "entities" like the very efficient mushroom badges.

several FR are related to this both:

I have the impression based on all our interactions that the "template" part will remain a advanced feature implemented only on mushroom side...