piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.31k stars 312 forks source link

[Feature]: Bar Chart in Card #387

Open apivaral opened 2 years ago

apivaral commented 2 years ago

Is your feature request related to a problem?

Please add an option to add bar chart in cards, like in Minimalist UI, this replaces the ugly Gauge card from HA.

Describe the solution you'd like

Reference: https://ui-lovelace-minimalist.github.io/UI/usage/custom_cards/custom_card_bar_card/

Describe alternatives you've considered

No response

Additional context

No response

piitaya commented 2 years ago

The goal of Mushroom is not to add all Minimalist cards. We have a lot of card in dev. I prefer to improve/finish the card that are in dev than adding new ones for now.

apivaral commented 2 years ago

I totally understand, but this card would be very helpful, the Gauge card is too ugly, please add it to the To-Do list :)

On Sun, 24 Apr 2022 at 2:30 AM Paul Bottein @.***> wrote:

The goal of Mushroom is not to add all Minimalist cards. We have a lot of card in dev. I prefer to improve/finish the card that are in dev than adding new ones for now.

— Reply to this email directly, view it on GitHub https://github.com/piitaya/lovelace-mushroom/issues/387#issuecomment-1107790445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJJIOUG24M7XGSIZQ6QMFDVGUBBXANCNFSM5UFUFV7Q . You are receiving this because you authored the thread.Message ID: @.***>

-- A.

timknowlden commented 1 year ago

+1 for bar gauage, I’ve just asked about this on the community forum and got directed here.

I’d love to be able to track progress of recurring notifications and level sensors using horizontal gauges.

jensrossbach commented 1 year ago

I would also like to have a bar card that can show for instance a progress bar. Maybe the new number card can have a kind of read-only mode that displays a horizontal bar for a sensor entity representing e.g., a percentage value.

BBE-FR commented 1 year ago

I would support also a modification of the number cards into a bar cards. If you just specify the min and max value for the bar it would allow to have a consistent design, including the possibility to have it in the various possible layout (default, vertical/horizontal) image

JuzzWuzz commented 1 year ago

I too was looking for something like this so I built it. I've made a standalone "addon" that contains just the card for anyone that would like it.

I was after a bar gauge to show my energy sensor usage. It has minimum and maximum values and brings in segments from the HA Gauge card to change the colors

https://gist.github.com/JuzzWuzz/bfea1a35020687ae1bfa111936b57ccf

jm-cook commented 1 month ago

I would also like to see a "bar gauge" type card and provide my input here, hoping it can be useful. In my case I am visualising water capacity in a well and need a single vertical bar. I am currently using the custom:bar-card but it is no longer supported and the UI editor does not work for this anymore so I think its days are numbered. I have seen hacky solutions using mushroom but the one that I found closest to my needs combines the mushroom template card with the custom:bar-card and its just plain difficult to get to work easily (and I want vertical direction and found that difficult).

The solution I have currently looks like this with the custom:bar-card

image