greggotcher
(Greg Gotcher)
1
Maybe I’m missing it but sometimes when I write an automation I want to check if an entity is NOT in a state.
For example my dryer can be in one of four states: idle, running, finishing or dry.
I would like to be able to do: if clothes_dryer NOT idle do something.
Right now in order to make that happen, I say: if clothes_dryer is (running or finishing or dry) do something.
frenck
(Franck Nijhof)
2
There is! Multiple actually
There is the not
condition:
Which is available in both YAML & the UI and can be wrapped around anything.
greggotcher
(Greg Gotcher)
3
Awesome. Thanks frenck. I thought there had to be a way, I was just coming up empty on my searches.
1 Like
frenck
(Franck Nijhof)
4
Hey! An easy WTH to solve, no programming involved even I’ll take it
2 Likes