piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.7k stars 340 forks source link

[Feature]: Adding battery badge for cover/vacuum/entity card #844

Open luisiam opened 2 years ago

luisiam commented 2 years ago

Is your feature request related to a problem?

For battery powered devices, i.e. shades, robot vacuums, etc., there is no way to check the battery level with current mushroom card.

Describe the solution you'd like

Adding battery status as a badge in vacuum, cover, or even entity card. The badge icon and color should change according to the battery percentage. It can be an attribute or from a separate entity.

image

image

Describe alternatives you've considered

I am currently using a mushroom-template-card (for the battery badge) and a mushroom-vacuum-card/mushroom-cover-card (for the control buttons) in a vertical-stack-in-card. However, that will make the card slightly taller because there are paddings between the card which I cannot remove with this method.

Additional context

No response

marcgeurts commented 1 year ago

I have added a battery badge option to the vacuum, lock and cover card (displaying the current level and if it's charging)

image

w0lf3h commented 3 weeks ago

This function doesn't exist yet in the recent versions, right? Would be great to have something like this; a battery display or even like a secondary_info state display would be nice.