There's gotta be a better way ...
I have a whole bunch of Tuya (Smart Life) outlets. Roughly $10 each, I run Homebridge off a RaspberryPi at my house and I have the outlets hooked into HomeKit nicely. That has nothing to do with my problem, just thought I'd share that bit with you.
Here's my issue:
I have a fog machine set up for Halloween. It's nothing special. It has a wired remote that you press a button to dispense fog. I figured I'd plug it into one of my smart outlets and create some rules so that the fog machine (outlet) could be on for say 3 minutes, off for 1, and then loop itself.
After combing through lots of suggestions on random websites, I came up with this, but I have to imagine there is a simpler way ...
I have an IFTTT Action set so that "If the Fog Machine Turns On, Run Stringify Flow A."
Stringify Flow A is triggered by IFTTT, has a 3 minute delay timer, and then goes back to IFTTT, where I've created "If Stringify Flow A Completes, Turn the (fog machine) Outlet Off."
I then have a second IFTTT Action, "If The Outlet (fog machine) Turns Off, Run Stringify Flow B."
Stringify Flow B is triggered by the outlet turning off, has a 1 minute timer, and then toggles another IFTTT action "If Stringify Flow B Completes, Turn The Fog Machine (outlet) On.
It works! But I have to imagine that there is an easier way then 4 IFTTT Applets and 2 Stringify Flows to have an on off loop with a delay!?! Help me out Stringify! Happy Halloween!