August Smart Lock Pro - accessing "how" it was locked


#1

1) Give a description of the problem
My wife and I use our phones as presence sensors to activate Home/Away modes in our home. However my mother in law lives around the corner and often helps us out by coming to receive packages, oversee service work, or other various things. As it is I have no easy way to trigger “Home” mode for her automatically. She calls us when on her way and we trigger manually from our phones and then trigger “Away” when she says she leaves. We have August Smart Lock Pros on our doors and just added a Keypad to our primary door. I can see from the IDE logs that August DOES pass on the method of unlock and I want to use a successful keypad entry as a way to activate “Home”. I have made a good number of pistons for our home but I am pretty basic and don’t know how to do anything too intense.

2) What is the expected behavior?
I am just looking for a hand if figuring out how to parse this data so I can make an IF statement that says “IF side lock is unlocked via keypad then activate home mode”

3) What is happening/not happening?
Nothing as of yet. I have not started the Piston as I am trying to learn how to get access to the data I want to compare.

**4) Attach any logs (From ST IDE and by turning logging level to Full)
** 7e296366-55e4-4d9e-aae7-51b274c781a7 6:03:59 PM: info [DTH] parse() - returning result=[[name:lock, value:unlocked, descriptionText:Unlocked with keypad, data:[method:keypad, lockName:Side Lock], isStateChange:true, displayed:true, linkText:Side Lock], [name:lastLockStatus, value:success, isStateChange:false, displayed:false, linkText:Side Lock, descriptionText:Side Lock last lock status is success]]


#2

Did you ever figure out how to do this? I’ve found it unreliable to use my phone as a presence sensor, and would prefer to use keypad unlock to indicate I’m home.