Do this when that happens

I wrote a little one that runs a Routine when a lock is unlocked. Take a look at that for some hints.

There are some other apps that do notifications, for the other half.