Did Schlage Z-wave lock arguments change?


#1

1) Give a description of the problem
First…I have not been here in a long time. After I set up my system, it ran just fine for a couple years until a “while” ago an automation related to casting the name of the person who came in the front door stopped working. I thought it was just related to not having Tasker set up on my new phone but today I fixed that which is when I realized that I seem to not be getting the same arguments from the lock. I used to be able to get $args.codeName which had a name and room# (we run a small B&B and this also enabled me to turn on the appropriate lights at night). So I dumped all of the $args into a variable to see what is available and it did not show up.

So before I rewrite my piston (I still have enough info to figure out who unlocked the door), I wanted to see if anyone can confirm that the $args.codeName is no longer available?

Thanks.

3) What is happening/not happening?
$args.codeName no longer has a value


#2

Still working for me.


#3

So this is my code. It has been unchanged for 2 years but the $args:codeName is no longer available


#4

The line containing $args.codeName looks fine to me.

While it doesn’t appear to be consistent with your use case, $args.codeName will be null if the lock is opened by any other means than a keypad entry.

I might create a new piston with just the “changes to unlocked” trigger and log $args.codeName to console, then try the various codes and see what results you get. Also check that you have the latest versions of the device handler. Beyond, that you might have to check with rboy.


#5

Thanks I will try that. I was wondering if possibly something was happening that was triggering the piston again and overwriting it.


#6

Without a green snapshot and a proper log, it’s hard to know if this might be an issue. But I wouldn’t worry about that until you figure out if $arg.codeName is being populated properly. One thing a time for me.


#7

OK…so I disabled everything else in my piston. This is the only piston that is triggered by the lock Unlocking. The slot names I use in the lock are “Guestname 1”…the number represents the room number they are in. So WhoCameIn is the full “codeName” and then I parse out the actual guest name into @UnLockedBy and the room number into RoomNumber to use in other parts of the piston.

Thanks.