Unlocked notification

I’m running a Vera 2 with UI4. I have a Schlage deadbolt paired up.

What I want to do it to setup notification if the door has been unlocked (either via PIN or thumbturn) and an amount of time has elasped (say an interval x (1-5 minuites) and it is still unlocked state, then should send out a notification. I can’t seem to do it via the standard scene command, but I guess will need some LUUP code and that’s what I need help with.

Of course if I had the new touchpad motorized deadbolt I could send a lock command, but the lock to be perfect yet with Vera??