1) Give a description of the problem
(Lights wont turn off with motion)
2) What is the expected behaviour?
(if no motion is detected in 15 min turn off the lights)
3) What is happening/not happening?
(LIght wont turn off)
I have tried to create a few pistons, but cant get it to do what I want. My issue is I have 4 doors on the garage that will trigger the garage lights. Some of these doors will not trigger the motion detector so my lights never turn off. I think i have one working, but was told on the smartthings forum that I should not use long wait commands like 20 min. Here is what I have and it seems to work. How can I do this same thing without the wait command?
if
Garage Light’s switch is on
and
Garage Light Motion’s motion is inactive
then
do
withGarage Lightdo
Wait 20 minutes;
end with;
if
Garage Light’s switch is on
and
Garage Light Motion’s motion did not change in the last 15 minutes
then
withGarage Lightdo
Turn off;
end with;
end if;
end do;
end if;