Numeric state does not support 'equal' for other entity state, only 'above' and 'below' #2944
Replies: 1 comment
-
|
If you would like to trigger an automation based on a date/datetime helper, then your best bet is to use the time trigger: But for triggering when some numerical value is exactly equal to another numerical value, I don't know. I'll check if perhaps either the lower or upper limit (or both) within the numerical state trigger are inclusive or if there is another good reason for not offering this out of the box. We're working on new triggers right now, and we're adding a lot of more "semantic" ones, so you can trigger on the temperature crossing a threshold (try it in labs!), but there the same currently applies: you select either above, below, or both to have a range, but cannot set a value to exactly match. I'll get back to you on this! |
Beta Was this translation helpful? Give feedback.

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 the feature
Today I worked on a new automation which requires date comparison between current date (sensor.date) and a date of a date&time helper. And I was not able to use the
numeric_statecondition for this!Sounds ridiculous, but it only supports:
WTH there is no the simplest condition ever: 'equal'? I had to use the
condition: templateto solve it (and I hate jinja templates). I can't understand how this was missed when implementing thenumeric_statecondition :-)Use cases
Compare numeric state of two entities. I guess there are tons of use cases here
Current workarounds
Use
condition: template, which is harder and not supported by UIAnything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions