Notifications setup for Lock Codes.

Hello,

I have multiple Vera Edge gateways and all of them are connected with Door Locks. I would like to setup a notification/trigger to receive an alert/event when the lock code is entered. I want the slot used and the name of the lock code in the alert/event. Can you please tell me how to do this?

Is there is a generic way of doing this for all codes or do I have to do this for each lock code I setup? Either way, I want to do this programatically.

On a side note, I configure lock codes programmatically using the relay/relay api and JSON.

I really appreciate any help.

Thank you