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

Severities only work in the order green->orange->red #10

Open
PhiSchmidt opened this issue Oct 31, 2020 · 1 comment
Open

Severities only work in the order green->orange->red #10

PhiSchmidt opened this issue Oct 31, 2020 · 1 comment

Comments

@PhiSchmidt
Copy link

Severities are based on the assumption that, always lower values are good and higher values are bad.
Which means: The value for green is supposed to be smaller, than the value for red.

This is actually not the case for a lot of use cases... like showing the SOC of a battery.

It would be nice, if we could specify severities and their colors in a random order. They should be applied to the element in the order they were configured.

@gingerm0nkey
Copy link
Contributor

Hello,

It also works for battery level. I am using it to measure the battery voltage of my blink cameras.
For example:
severity:
red: 0
amber: 20
green: 50

A value between 0 to 19 will show up as red, 20 to 49 as amber and green above 50.

For temperature, humidity, ... which needs to be in a reverse order, you can set it this way:
severity:
green: 0
amber: 20
red: 50

Hope that helps.

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

2 participants