Add "state_not" for state condition #2115
Unanswered
MaJerle
asked this question in
Automations & scripts
Replies: 1 comment 1 reply
-
|
Just to clarify: That is the main risk with this kind of "negative" selection, whereas it is quite easy to select the various states you want to test positively. |
Beta Was this translation helpful? Give feedback.
1 reply
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 the feature
When building the automation with the definite state, it is often nice to check the entity state against the value. But often due to the many possible states (for example HVAC), your intent is to reverse the logic and check not in x state.
The proposal is to add the
state_notin thestatecondition check:Use cases
When you are interested in any state except specifically defined one. For example HVAC can be in the heating, cooling, and other states, and you just want to know if it is not off:
Current workarounds
notbuilding block, which introduces deeper tree in the UI, and is longer to write.Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions