Danakona:
So once the “contact open” program runs, I want it to look at my motion sensor and see if there was any motion (which is indoors) within the past 30 seconds or minute. If it sees motion prior to the contact sensor being opened, I would not send out the notification as someone is probably just leaving the house.
Have a look at my zone motion manager app, it will specifically do the above. If nothing more you can learn how I implemented historical event retrieval and evaluation.
I built this to solve a number of motion related issues.
–Reduction of false motion events in exterior applications (False Motion Reduction)
–Represent a group of detectors with a single virtual detector (Motion Aggregation)
–Enable a Motion Aggregation zone from various devices, switches, contacts ect (Triggered Activation)
This is a parent/child application (like Smart Lighting) where the motion zones are created and edited from the parent application.
When a new virtual zone is created, a virtual motion sensor is created for that zone. This virtual motion detector represents the states of the physical motion detectors that you configured for that zone.
You can then use that virtual zone device in any applications that accept motion devices.
[image]
[image]
[image]
Three co…
2 Likes