Hi @bertabcd1234! Firstly, thanks for sharing your apps, I'm an user of CoCoHue and Device Activity check, they´re awesome!
Today I use the rule below, but your proposal achieves the desired result in a much simpler and more elegant way!
I used a workaround to identify the user replacing the returned value with the username, once my lock isn´t compatible with Lock Code Manager. I´m using an app developed by @thebearmay to receive the code associated to the event, and used it in the rule. So how should be that variables, something like this?
Basically, the lock driver returns the following data when it is unlocked: ** unknown codeNumber: 1, unknown codeNumber: 2, untill ** unknown codeNumber: 8**
So I have 8 codes that I need to associate to users. I know that I need a variable that set the user name in function of the code used to unlock the door, but I don´t know how do I set the multiple values to the variable, if I should use a Hub, Local or Connector variable, and concatenate it to the rule. I was searching the community but I´m not proficient enough to do it.