aaaha
(aaaha)
October 14, 2022, 8:17am
1
Hi there,
I returned back to HA after neglecting it for 1-2y I am overwhelmed to see all the changes that happened in the automation section.
Which means that I now am intensely using them.
Which means that I would LOVE to negate conditions. E.g.:
“Turn off lights when NOT connected to SSID My Home Wifi ”
“Notify me if the air quality is bad and the state of a dropdown is NOT Nobody at home ”
etc.
So I’d basically like to check if a condition of a sensor is anything but X.
Tinkerer
(aka DubhAd on GitHub)
October 14, 2022, 8:22am
2
You overlooked the introduction of the not condition when you were reading the condition docs.
Edwin_D
(Edwin D.)
October 14, 2022, 8:23am
3
You can. There’s a “not” condition, you can place your other conditions inside it. For triggers, it kind of depends on what you test. for states, you could use “from” so when it is no longer that state, the trigger happens.
Tinkerer
(aka DubhAd on GitHub)
October 14, 2022, 8:32am
4
The state trigger also supports not_from
and not_to
.