lock-manager icon indicating copy to clipboard operation
lock-manager copied to clipboard

Device Handler does not log manual locks and unlocks

Open tess555 opened this issue 5 years ago • 6 comments

This seem to have been working before, but with the new device handler it does not log manual locks and unlock, as well as the automatic locks by lock itself. It only logs events done by the Smarthings app.

tess555 avatar Jun 24 '19 16:06 tess555

I figured out the issue. seems that the ZWave objects now overload the code 0x71 for alarms and Notifications... to fix, you will need to modify your device handler... Specifically, you need to update the "def parse(String description)" method. Near the bottom, you need to specify the version for code 0x71... so the cmd creation line should now be:

def cmd = zwave.parse(description, [ 0x98: 1, 0x71: 2, 0x72: 2, 0x85: 2, 0x86: 1 ])

(I added the 0x71: 2, part)

I'm not sure I have access to change the repo, but will try...

-mike

scuba1012002 avatar Jul 10 '19 04:07 scuba1012002

Mike, you are genius! I did what you said, and the logging finally works again!

Thank you so much!

tess555 avatar Jul 17 '19 16:07 tess555

Hi Mike, which file do you mean? Both the zwave-lock-schlage.groovy and zwave-lock.groovy has that.

jkcen avatar Jul 18 '19 23:07 jkcen

As I believe, the zwave-lock-schlage.groovy file is a specific file for schlage locks, and if you use that file, you would not use the more vanilla zwave-lock.groovy file... in either case, changing both "should" work (sorry, I use kwikset)...
My main concern is with new locks... if you buy a schlage (or other brand, new model, ect.) lock in 2019, it may well use the new API... And I am not sure if these scripts/drivers can distinguish between locks that use the old api, and new locks that possibly use the new api... -mike

scuba1012002 avatar Jul 24 '19 16:07 scuba1012002

Hi Mike, I tried it with the file zwave-lock-schlage.groovy but still cannot receive push notifications from the App. The event history in the Recently tap is fine though. I use a lock that we purchased in beginning of 2018, not sure what API version it is.

jkcen avatar Jul 24 '19 17:07 jkcen

That tweak worked perfectly, notifications seem to work again, and the battery level

eric-a-katz avatar Aug 25 '19 17:08 eric-a-katz