I have a smartthings controlled power outlet that controls lighting near a Wyzecam.
If the Wyzecam detects motion, I want to turn the lights on for 10 minutes so the WYZECAM can make a better recording at night. I was able to make this happen with the following steps:
- Created a Virtual switch. Let’s call it VS1
- Created a rule in the “Smart Lighting” app that turns on the power outlet if VS1 is turned on; turns off the power outlet if VS1 is turned off.
- Created another rule in the “Smart Lighting” app that turns off VS1 if the “power allowance” exceeds 10 minutes.
- Created a rule in IFTTT that turns on VS1 if the Wyzecam detects motion.
VS1 and the lights turn on as expected, but when the 10 minutes is over and the lights turn off, the WYZECAM treats the lights turning off as motion. This causes IFTTT to turn VS1 and the lights back on again. So that lights are caught in an infinite loop of turning on for 10 minutes; turning off for a few seconds; turning back on again for 10 minutes; turning off for a few seconds…
Is there a simple way to have Smartthings ignore the “turn VS1 on” request if VS1 has been off for less than 15 seconds? I realize this would not be a “perfect” solution, but it would be “good enough”.
I’m also open to other ideas for how to solve this. Thanks!