1) Give a description of the problem
I can’t work out which condition I need to use to check if a motion sensor was active before a contact sensor changed to open. I want to check if the motion sensor was activated at least 1 second before the contact changed to open.
I have a contact sensor on my front door and a motion sensor inside the house behind said door. So, when the door opens the contact changes to open and the motion sensor changes to active.
2) What is the expected behaviour?
I want to chime my siren if the door opens from outside but not from inside.
3) What is happening/not happening?
Chime either always goes off, or never goes off.