-
Notifications
You must be signed in to change notification settings - Fork 239
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
documention: thresholds #894
Comments
Hi, this should indeed be cleared up a little! Essentially, the color_treshold value works like a minimum: if the graph value is higher than a threshold, its color will apply (highest gets precedence and the first color is used as the lowest color, regardless of its value)
Correct!
Currently, the first threshold color is used; although we might want to expose the default color if no threshold was reached in the future (to improve multi-graph & allow for "red alert only" thresholds)
i.e.: color_thresholds:
- value: 0 # currently ignored
color: "#ff0000"
- value: 1.333333 # anything above 1.33333
color: "#ffff00"
- value: 2.666667
color: "#00ff00"
- value: 4
color: "#0000ff" |
If the the first "threshold" is ignored, then perhaps it shouldn't be there at all. That'd make it clearer that the thresholds are thresholds from below. |
/Hi, it looks like it’s broken or something for past few months? Or user is broken? :D Watched on iOS HA app iOS 16-17 My config (skipping value 0 does nothing) Code:
Results: |
I don't know how I managed to write it per entity not global as you said and not found it for several months :D Thank you so much, naturally works like a charm! |
Explanations were provided. |
v.0.12 |
The main documentation gives
as an example for color thresholding. What exactly does this mean?
0
and1.3333
we have#ff0000
?0
?4
?The text was updated successfully, but these errors were encountered: