Send Notification when Door is unlocked


#1

1) Give a description of the problem
I am fairly new to webcore so this may be a noob question. I am trying to figure out how to send a SMS message and/or do specific actions based on WHO unlocked the door. I can see in the ST events that when the YALE keypad lock is unlocked with a code there is a JSON payload that indicates which code/user unlocked the door. I have also noticed that when selecting the door lock in webcore it makes reference to user #'s. However, I can’t quite get to the next step of say doing a switch on which user did the unlock so I can have different actions based on that.

2) What is the expected behavior?
Identify who unlocked the door

3) What is happening/not happening?
I’ve got a basic piston working to simply send a generic message when the door unlocks. Now I want to enhance to know WHO unlocked the door so I can take different actions based on that.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
N/A


#2

This is what I have to check when a specific user unlocks my door.

Notice I am checking specifically for “lock #3”:

webCoRE Dashboard 2017-10-04 21-21-32


#3

That was the trick. I was so close too and just didn’t see it. Thanks for the help.