Trigger virtual switch after turning light switch on then off under 5 seconds

I have a rule set up for one of my half baths to turn on the exhaust fan after the light has been on for more than 3 minutes and and then turn off a minute after the light is turned off. This rule is currently enabled/disabled with a virtual switch so if I don't want the fan to run, I just turn off the virtual switch in a dashboard to disable it.

What I would like to do, if possible, is to toggle the virtual switch off or on if I were to flip the lights on, then off, then on within 5 seconds. Any thoughts or ideas?

This is untested, but here is what I came up with. I’m not sure what the best way to share this sort of thing is.

1 Like

This is exactly what I needed, and this implementation works perfectly! Thanks!

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.