custom-cards / bar-card

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

Indicador with negative values #181

Open sheaur opened 6 months ago

sheaur commented 6 months ago

The indicator does not work correctly when the value is negative, example rssi

sheaur commented 6 months ago

![Uploading 20240516_030600.jpg…]()

fwestenberg commented 2 months ago

This would indeed be very nice if possible. I use it for my electricity power meter, when the solar panels produce power I'd like the bar to show something negative. Something like this would be nice:

target: '0'
min: '-5'
max: '5'

At this moment, it results in:

image

ChristopheVersieux commented 2 months ago

Agreed, I am suprised I cannot find that anywhere on Home Assistant, this seems like a useful feature I did like @fwestenberg did, but that's really not visual, colors should be centered on 0