Triggering a "Check if it worked" automation

I have a Whole house fan that is on my automation. Unfortunately I have had to jury rig a way to control it with a relay, which “presses” the on/off key on a wireless remote. Sometimes it doesn’t turn it on or off because reasons. I can and do check the operational state with a power meter on the fan itself so home assistant can know whether it is on or off at any point.

What I want to do is 10-15 seconds after the automation that triggers the fan to run, trigger a check. If the power meter indicates that it isn’t running, then try turning it on again. If it shows it’s running then do nothing.

I’d like to do the same for turning it off.

What is the best practice for achieving this?

Thanks in advance for the advice.

Use one of the Repeat Actions with your switch action and a Delay inside the loop.

1 Like

I didn’t even know that “Repeat actions” was a thing.
It will do exactly what I need

Thank you so much for the links.