Sure. The Arrival (presence) sensor is the standard ST little presence fob. I keep it in my briefcase.
The door sensor is an Iris Gen2 contact sensor.
When I get home, ST detects the presence sensor and, via the LockManager smart app, unlocks the front door. Easy so far, right?
The issue is timing the push notification so it gets sent to the android tablet at the right time for the announcement-greeting to be heard. So while the door unlocks as soon as the presence sensor is detected, the door itself might not be opened for a minute or more as I get my stuff out of the car etc. Therefore, I want a more precise mechanism - one associated with my presence sensor so it knows to announce me instead of announcing my wife, but delayed until the door is actually opened.
Therefore, we start not by asking the current presence state of the arrival sensor, but by asking “has that sensor’s state changed at all in the past two minutes?” AND “is it currently present?” This ensures that indeed it is here, and has arrived here very very recently. If those combine simultaneously with the front door contact sensor changing to ‘open’, then we are sure it’s me having arrived and coming through the door.
It then pushes the notification.
That notification pops up on the android control tablet which also has ST installed.
AutoNotification intercepts it, does a regex association in the %antext string, and has Tasker read aloud the phrase associated with that regex recognition.