I thought this would be straightforward but I’m stumped. I have ST that controls lights in my backyard and front yard. I’ve installed a Night Owl surveillance system that detects motion and issues an email to IFTTT when a camera detects motion in the evening. IFTTT issues a turn on command via the SmartThings channel to turn on the backyard lights, flawlessly.
Now how do I program Smartthings to turn the light off after a period of time. I’ve looked around and all the solutions require a trigger. I could brute force it and have a routine that triggers every hour to turn off the outdoor lights, but that would be a lot of routines, doubled by the use of front and backyard lights.
have Ifttt turn on a virtual switch. Have the real backyard lights follow the virtual switch. ( you can use smartlighting for that.)
use the power allowance option to have the virtual switch turn off anytime it has been on for X period of time. Power allowance is a smart app in the marketplace under smartapps, then lights and switches.
This is an old screenshot, but I don’t think it’s changed:
That way you can still do whatever you want to with the real backyard lights on other schedules, etc. but that particular IFTTT recipe will turn them off again when you use it.