One new feature in the latest ST update is the ability to set user codes for locks. Using the available information, I created this piston to report which user opens a lock. I also have it where a user unlocking would set the location mode.
You could modify this in a number of ways, perhaps having particular users do different things. I haven’t figured out how to pull the user name from the device yet, that may come later.