1) Give a description of the problem
I want to make a complex motion sensor light that involves presence sensors and timing.
I have a Ring Video Doorbell integrated with Smartthings as a motion sensor, a switch for my porch light, and presence sensors on our phones. I want to make a sort of security feature for when we are away on vacation. It needs to go something like this:
If all presence sensors are not present,
Then record the time they all left,
Then If motion is detected,
And it is between sunset and sunrise,
And it has been 24 hours since all the presence sensors left, (to prevent it from triggering when we are returning after sunset)
And if the presence sensors are still gone, (to make sure no one has returned)
Wait 30 seconds, (to make it seem less like a regular motion sensor light)
Then turn on the light,
When motion is no longer detected,
Wait 3 minutes,
Then turn off the light.
I am not that experienced with WebCore yet, so I am asking the communities help.
Thanks, Seanix