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.