mini-graph-card
mini-graph-card copied to clipboard
Chart color is incorrectly set with value range
I've had rainy few days and humidity was at 99.99%. I'm using this extension, with these color ranges:
color_thresholds:
- value: 0
color: '#FF0000'
- value: 20
color: '#FFFF00'
- value: 35
color: '#00FF00'
- value: 70
color: '#FFFF00'
- value: 80
color: '#FF0000'
Strange thing is that when humidity was at 99%, it showed green value:
But if I touched it by mouse on PC or finger on the phone, it switched to red, which is the color I originally want:
And when we got less humid day today, value returned back to correct colors, even without touching or hovering the widget.
Is this a bug?
- Is it a sensor’s state or an attribute?
- Can you retest with lower_bound: 0
- For clarity - always test with color threshold transition = hard.
It is a state that hasnt been updated by sensor until humidity measured actually changed the value.
Ill check the rest but might be challenging to get data back again
But if I touched it by mouse on PC or finger on the phone, it switched to red, which is the color I originally want:
It looks like you have red markers but the line below might still be green. Here's an example of one of my graphs with markers more spread apart:
The issue is that line below must not be green, because anything above 80 must be red
Same issue over here, See Screenshots.
It works if i set lower bound or upper bound. But the the Graph is to flat to Interpret properly.
