Helpers: Threshold Sensor with lower and upper but flipped #4452
Unanswered
matepek
asked this question in
Core functionality
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe your core improvement
Hello,
I'm using two Threshold sensors to define a lower limit for a pressure value and another Threshold sensors to define an upper limit for a pressure value.
These helpers are having the value "Show as" -> "Problem"
I need this because the if I define lower and upper like [100, 200] then I get a problem when the value of the sensor between these values as it is documented:
But for my case that range is the "No Problem" and if the pressure is outside the range then it means problem.
If there would be a
[upper limit .. lower limit]option which would invert the value then it would solve my problem.What do I mean: I put a bigger number to the
lower limitfield than to theupper limitfield it could signal problem when the sensor's value is outside that range.I know I could use template or other magic but this simple backward compatible addition would nicely fit my case.
Thank you for your consideration,
Current limitations
N/A
Technical benefits
N/A
Additional context
I know I could use template or other magic but this simple backward compatible addition would nicely fit my case.
PR
Created a PR. Let me know what do you think.
All reactions