Include a timer in piston


#1

Ive just started using Webcore
I have a piston that when a motion sensor is active it turns a light on waits 5 min turns light off.
I would like
Motion sensor active
Turn light on
Timer starts 5 min
If motion sensor active
time resets to 5 min
timer runs out
light turns off

Im not sure how to start
Thanks Nicole


#2

Hi Nikki… I usually start with something like this:

pic


#3

Thanks WCmore Ill give that a try


#4

I noticed that it depends on the motion sensor I have and when it reports no motion. I set
Inactive for 1 min turn lights off
I was not until 2 min that the light went off
Its not a big deal but
is there away around that
Thanks


#5

Every company makes motion sensors a bit differently… I have seen activity timeout in as little as 6 seconds, and as long as three minutes. (and everywhere in between) Thankfully, whatever timeout is assigned to that device will be consistent…

The best solution is to just set the time in webCoRE to account for the delay in your particular device. (IE: If your goal is 5 minutes, and if it takes 1 min to register inactive, the make line 27 above reference 4 minutes)