piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.52k stars 329 forks source link

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

Open luisiam opened 1 year ago

luisiam commented 1 year 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