04-12-2018 12:04 PM
I have a WEMO Switch on my front porch lights. I have the switch setup (with the WEMO app) too come on between sunset and sunrise. Because the lights shine into one of my bedrooms, occasionally the switch is turned off manually. I have a Ring Stickup Cam on that door also. Between IFTTT and Stringify I've been able to create an automation that turns the light back on when the camera senses motion. However, I want the lights to turn back off after 5 minutes or so, BUT only if the light was off to begin with. I don't want the lights turning off 5 mintues after sensing motion if they were already on. I can't seem to figure out any way to poll the switch to see if it is already on when the script starts.