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

No notifications on manual unlock

Open djangosChef opened this issue 5 years ago • 5 comments

No notifications are sent on manual unlock. All others work fine.

djangosChef avatar May 04 '19 04:05 djangosChef

And a fix: lock-manager.groovy.patch.txt

djangosChef avatar May 04 '19 04:05 djangosChef

This does not seem to get it working??

DanDon avatar May 07 '19 13:05 DanDon

This does not seem to get it working??

My case: a Yale Assure Lock pushbutton deadbolt. All notifications were working fine EXCEPT for manual unlock, which I expected to be enabled via: "Automation" => "SmartApps" => "Lock Manager" => "Lock: Yale Assure..." => "Notification Settings" => "Text This Number": enter number, tap check, then turn on "On Manual Turn (Unlock)", then "Save". Inspection of the code led to the proposed fix: three lines added to end of the "unlocked" case in "manualUnlock". This fixed the problem, after both "Save" and "Publish"=>"For Me". I did not have to delete and re-add the SmartApp, or change notification configuration which was already set up to enable (see above).

djangosChef avatar May 07 '19 17:05 djangosChef

This worked for me, thanks djangosChef - but I suggest changing the code to use the variable notifyManualUnlock instead of notifyManualLock, since some users (like me) will want only notifications on unlock but not on lock. (And this may be the reason why it didn't seem to work for DanDon and others.)

gabindu avatar May 10 '19 23:05 gabindu

Doh, thanks! Updated... lock-manager.groovy.patch.v2.txt

djangosChef avatar May 11 '19 02:05 djangosChef