lock-manager
lock-manager copied to clipboard
Device Handler does not log manual locks and unlocks
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.
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
Mike, you are genius! I did what you said, and the logging finally works again!
Thank you so much!
Hi Mike, which file do you mean? Both the zwave-lock-schlage.groovy and zwave-lock.groovy has that.
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
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.
That tweak worked perfectly, notifications seem to work again, and the battery level