JonahKr / power-distribution-card

A Lovelace Card for visualizing power distributions.
MIT License
214 stars 13 forks source link

Colour thresholds not working #127

Closed mdoliver closed 1 year ago

mdoliver commented 1 year ago

Hi, I have a sensor that displays the remaining time in Kwh of my Powerwall battery.

No matter what I put into the Color Threshold field to make the value less than, equal to, or greater than - the card seems to only obey the colour option I enter for "bigger" If I invert the value then no matter what I enter into Color Threshold only the color option for "smaller" is obeyed.

I'm hoping it's just me missing something obvious!

JonahKr commented 1 year ago

Hey there 👋 Nice catch. Basically the value used for the arrow coloring was set before all of the value processing, so any modifications (absolute, inverted) got ignored... I will close the issue with the next release! Take care and stay safe!

JonahKr commented 1 year ago

Fixed in the latest release. Take care! 👍