I am trying to utilize a ST motion detector to light a light that is controlled via SmartHome. I have successfully used IFTTT to turn on the light, but have been unable to turn off the light. Motion detectors generally do not expose a triggered event for the reset or “Inactivity” of the detector. I would opt for a reset related to time as well.
Since I cannot find a lot of info about this, I am guessing it is so simple that I should have figured it out by now. Relatively new user to ST. Not writing code yet, but I am in the online portal and have created simulated switches, etc. I have tried Kristopher Kubicki’s code for the motion with reset, but not sure how to implement. There must be an easier way.
In short, I want the motion to turn on a light and reset of the motion to turn it off. (Or the light to turn off after 2 minutes and turn back on with more motion)
If anyone can help I would appreciate it.