I am stuck on creating a flow for a Smart Things motion sensor. I am able to get a kitchen light to come on when there is motion. The issue is that when standing still the light turns off a short time later.
I like for the flow to check if there is no motion and wait for five minutes. if in that time there is a motion to start the time over until there is no motion at all. That away the lights stay on while I'm in the kitchen and not turn off when I need them.
The flow I have now the light will not come back on after 5 minutes then the flow works again.
event state "kitchen motion", Switch "Detect Motion" on or off. on output goes to BigTimer time range 17:00 on to 09:00 off, Call service "On Kitchen Light", debug.
From the switch to off goes to delay 5 min, call service "Off Kitchen Light", debug
I think the off to delay is what is causing the kitchen light not to come back on until 5 minutes. it will then restart the flow and turn back on the light because it sees motion. this is not good flow setup.
Thanks for the help