Motion events with PLEG

I have PLEG setup to turn on lights when there is motion and it is night time using the logic at http://forum.micasaverde.com/index.php/topic,14544.msg110490.html#msg110490

TurnOnFrontLights - (NOT FrontOutsideLightsTurnedOn1) AND (FrontOutsideMotion AND Night)
AutoTurnOnFrontLights - TurnOnFrontLights; FrontOutsideLightsTurnedOn1 < 15
TurnOffAutoOnFrontLights - AutoTurnOnFrontLights AND (FrontOutsideMotion; NoFrontOutsideMotion) AND (NoFrontOutsideMotion; NOW > 3:30)
TurnOffManualOnFrontLights - (NOT AutoTurnOnFrontLights) AND (FrontOutsideMotion; NoFrontOutsideMotion) AND (NoFrontOutsideMotion; NOW > 4:00:00)

However, my motion sensor is a bit jumpy and lights turn on too much. So, I’d like to setup PLEG to only turn on the lights if there is the motion is still tripped after 5 seconds.

Any hints in doing this?

Thanks!

StartMotion Motion
Action → Start Timer “TimerName” (Timer with a start of Self Retrigger, Off in 5 seconds)

SmoothMotion Motion and (Motion; !TimerName)

Stupid question, which might help somebody someday…

Would this only work if your motion sensor goes to “not tripped” in less than 5 seconds (or whatever your timer interval is)? Those Ecolink sensors (which seem to be popular) default to 4 minutes, but there’s probably a way to change that if you’re inclined.

Edited to reference 5 Seconds like in Richard’s example above

If it takes 4 minutes to turn off … then you do not have the problems that this solution is designed for …

Gotcha… Thanks!