Managing Lock Codes without Groovy

:tada: Update: ‘Extra’ event data is now available in production! Extra event 'data' properties

We’ve exposed the data attribute from events in beta - I sent you a PM with access. There’s a new ‘Extra Data’ option in Context Variables for Event → Device which will prompt you for the extra data ‘property’ that you are trying to access.

Like other context variables, you can use this in conditions as well as actions like notifications. In the case of door locks, it looks like common properties include:

  • codeId - which code ‘slot’ was used to unlock the door
  • codeName - the name of the code (if you named it while creating it in SmartThings)
  • method - indicates if it was unlocked with a keypad or manual

Yes, it’s based on event data from subscriptions