I’m just starting to dabble in automation. I need to create an automation for the air purifier. Unfortunately, I can’t get to grips with cascading conditions. It involves a scenario like this:
If PM2.5 numeric value is above 85 and below 2000, set fan preset mode to Auto. If below 85, go to 2.
If the PM2.5 value is above 30 and below 85, set fan preset mode to Silent. If below 30, go to 3.
If the PM2.5 value is below 30, set fan off.
With one “conditionally execute” it works as expected. Please direct me to the right path of thinking Thanks .
Something like this definitely! I lost perspective as I desperately tried to achieve my goal. I did not think of using the Choose between actions option. Thank you very much, it works as expected.
I will now work on adding a condition to turn off the air purifier when the window is open and turn it back on when closed. And then there’s the night mode (silent) with the screen off to add too. Separately, both of these automations work. Can I take advantage of your kindness once again if I can’t manage?
You can just add these as triggers to the same automation
trigger → window_open → id = off (so no need to add an additional action
trigger → sunset → id = sunset --action = display off, silent mode
trigger → sunrise → id = sunrise --action = display on, normal mode
I have. Thanks again.
By the way, I’ve been looking through a lot of threads and advice on air purifier automation. Nowhere have I come across a solution as brilliantly effective as yours. Mostly the solution proposals were so confusing and complex that it was difficult to grasp.
Thanks for your hint. Interesting idea. However, it doesn’t work even when I changed to if-then, because off is not a valid preset mode. The purifier only switches between auto and silent. It never turns off the fan. In Traces there is a comment: Error: Preset mode auto is not valid, valid preset modes are: Auto, Silent, Favorite. It refers to these lines:
I have doubts about the window sensor as well. Now, when the window is open and closed, the air purifier starts working after a short time. This is what happens when the PM2.5 level fluctuates. How do I make the air purifier run according to the status of the time helper when the sensor state changes and prevent it from running until the window is closed? The solutions found on forums are inconsistent and highly confusing. I’m probably abusing your kindness…
Nothing of the sort! I just try one approach and the other. As I mentioned, I’m just learning. So I appreciate your suggestion as well. Except that I am stuck with an error that is all too obvious, but I didn’t notice it. Thanks for correcting me.