Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart color is incorrectly set with value range #1137

Open
MaJerle opened this issue Sep 9, 2024 · 4 comments
Open

Chart color is incorrectly set with value range #1137

MaJerle opened this issue Sep 9, 2024 · 4 comments

Comments

@MaJerle
Copy link

MaJerle commented Sep 9, 2024

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:
IMG_2390

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:
IMG_2391

And when we got less humid day today, value returned back to correct colors, even without touching or hovering the widget.
IMG_2392

Is this a bug?

@ildar170975
Copy link
Collaborator

  1. Is it a sensor’s state or an attribute?
  2. Can you retest with lower_bound: 0
  3. For clarity - always test with color threshold transition = hard.

@MaJerle
Copy link
Author

MaJerle commented Sep 9, 2024

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

@Nickduino
Copy link

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:
IMG_2391

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:

image

@MaJerle
Copy link
Author

MaJerle commented Sep 28, 2024

The issue is that line below must not be green, because anything above 80 must be red

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants