I’m still a bit new to HA and Automations. I’m using the UI to make automations.
Yesterday, the automation was triggered (IAQ sensor picked up CO2 above 800 ppm), turned on the switch (boost mode), but encountered an error and did not complete the actions, which resulted in a switch (Boost Mode) staying on for multiple hours.
Is there some sort of sequencing issue that I am overlooking? I thought the actions are pretty straight forward: turn on switch, wait 1 hour, turn off switch.
Is this automation the only way boost can be turned on?
Is there a previous trace? The one shown is from 16:45.
It is generally a bad idea to used prolonged delays since they do not survive reloading or restarts. Also, be aware that the for configuration variable is based off the last_changed property which also does not survive restart.
Would it simply if I removed 1 hr for from the condition? I guess I don’t need that as part of the condition. I simply don’t want the boost automation to run if the boost switch is already on.
Is the 1 hour delay in the actions section frowned upon as well? If so, what is the recommended alternative? Should I be using the timer function instead?
These are the following traces after the above 15:43:19, which did seem to run (or at least start) appropriately.
I’m guessing the automation from 15:43:19 never completed because it got triggered a handful of times afterwards because the triggered numeric state was happening? But these 3 traces show the automation not running because it failed the test condition.