custom-cards / bar-card

Customizable Animated Bar card for Home Assistant Lovelace
MIT License
378 stars 54 forks source link

Set "min" and "max" values with a template #163

Open j-loewen opened 1 year ago

j-loewen commented 1 year ago

Hey,

I would appreciate it if I could set the "min" and "max" values using a template.

I use the "bar-card" to show the content of a keg and I need to set the keg tare as the "min" value to have it show the content weight only.

mschulze46 commented 1 year ago

+1

This would be much more useful !!!

TomasCorral commented 1 year ago

I was also trying to it. My idea was to display active and reative in horizontal bar. Min=0, Max=apparent power

birostris commented 9 months ago

target would also be very good to be able to set as a template

DabblerIOT commented 8 months ago

+1 as well. This would be great!

rumcajstr commented 7 months ago

+1 for target, thanks

BerrisNO commented 4 months ago

+1 for this one!

mreysei commented 1 month ago

I have created a PR to implement it: https://github.com/custom-cards/bar-card/pull/184

But this project will not be maintenance, so, if anyone wants it, here is the link of the fork: https://github.com/mreysei/bar-card, just add a custom repository with that link in HACS.

mvkalsbeek commented 2 weeks ago

@mreysei I can't seem to get this to work. I receive the following error in HACS:

image

mreysei commented 2 weeks ago

@mvkalsbeek the integration type is "Dashboard". Works it with this change?

mvkalsbeek commented 2 weeks ago

@mreysei that did it, thanks for the swift response!

Cybolic commented 13 hours ago

@mreysei Any chance you can add that option for the target value as well? :pray: