Discount Double Check (luup code confirmation)

I am about as new to luup as it gets. Searched for a couple of hours to see if anyone had added a simple luup “check” that would double check that whatever trigger was tripped was actually in a tripped state and could find nothing - this could be due to my lack of understanding of luup code so please correct me if I am wrong.

My goal is to add a check to my garage door sensor. I’ve notice that a strong wind that will rattle my door or a car driving by will trip my accelerometer based tilt sensor, enough that it will trigger a scene and/or notification. I’m wanting to add a simple 5 second delay (with luup.call_delay), then a re-check of the state before the scene is tripped or a notification is sent. I’m having trouble - noob problems - trying to figure this out. Wanting something simple that I can reuse on multiple scenes by changing the device.

Any direction would be greatly appreciated, especially if I am trying to solve the wrong problem with a double check of the sensor state.

With PLEG:

Input Schedule:
DelayedEval On is self re-trigger … Off with an Interval of 5 seconds.

Input Trigger:
GarageDoorOpen On Garage door Tripped

Condition:
StartTimer GarageDoorOpen
GarageReallyOpen GarageDoorOpen and (GarageDoorOpen; !DelayedEval)

You can use:
When PLEG satisfies condition GarageReallyOpen as a trigger to your other scenes.
Hoever, most people once they get started just move all of their scene logic and actions to PLEG.

The action for the condition StartTimer is to start the timer for the schedule DelayedEval.
This is done in the Advanced Tab for the action: StartTimer by selecting the PLEG as the device, and the action as StartTimer and the timer name as DelayedEval

See:
http://forum.micasaverde.com/index.php/topic,21603.0.html

For more details on PLEG.

Wow, this is a lot more than I had hoped for in a response - you didn’t just point me in the right direction you laid it all out for me. Much appreciated.