Getting an event from a lock for ONLY when the lock is unlocked by a code

You sir need to look at Nyckelharpa;