lock-manager
lock-manager copied to clipboard
No notifications on manual unlock
No notifications are sent on manual unlock. All others work fine.
And a fix: lock-manager.groovy.patch.txt
This does not seem to get it working??
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).
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.)
Doh, thanks! Updated... lock-manager.groovy.patch.v2.txt