SmartThings Community

[RELEASE] Lock User Management: Door lock code manager (create, delete and schedule codes) with automatic lock/unlock, custom user actions and SHM/ADT integration

smartapp_security
smartapp_locks
project_locks
project_secondhome
rboyapps

(Augustin) #1761

Thanks a lot for your quick response. The solution you proposed it works, but the thing is I have many user names stored (wife, kids, grandparents, friends, etc) and I think it will be a little tricky to have your proposed set up. I’d like to just keep it simple and have the option from LUM.


(Mike) #1762

To use the setup with the virtual switches, you would essentially need to create a switch and an amazon routine for each user stored in your lock. This could be 10 or 15 virtual switches and routines. It would be much simpler to be able to select the Echo speaker through the lock app and be done with it.

I believe I saw over on the Echo Speaks thread that Rboy submitted a patch to allow this to happen. If it get’s integrated then I’d expect to see this capability on the next Echo Speaks version.

For now I’m using webCoRe to accomplish this based on the user code that’s input.


(Augustin) #1763

Now works, Thanks to @RBoy and @tonesto7 But I cannot personalize…

@MRobi Can you share the WebCoRe piston, please!


(Mike) #1764

Here you go. This disarms the ADT alarm system, announces the user name of the code used, and also texts/push notification to the wife and I. Code 1 and 2 are ours, 3 through 5 are various visitors who may have access while we are away (ie: on vacation).


#1765

Hi,

I have just installed a Keyless Connected Yale Smartlock (YD-01-CON-NOMOD-CH) and connected it to Smartthings via the Z-Wave Module 2.

I has been working fine using the default Smartthings device handler and Smart Lock modules and I could add and remove user pins via the Smartthings app. However I wanted to be able to receive mobile notifications on who unlocked the door. I tried using the some automation in the Smart Home Monitor but the only notification I could get it to send was “The Front Door is unlocked”, ie it didn’t say who had unlocked the door even though the history in the Smart Locks would show “Front Door Lock – Unlocked by “<user>””.

I came across the RBoys Apps and though this might solve the problem. I paid for the apps and installed the “Universal Enhanced Z-Wave Lock” device handler successfully but when I installed the “Lock User Management” Smart App it crashed and asked me to contact the developer. Unfortunately I didn’t catch the error message at the time and now if I try to start the LUM it immediately exits without any messages.

I am fairly new to SmartThings but in the IDE Logs I can see these messages

1:51:47 PM: error java.lang.NullPointerException: Cannot get property ‘1’ on null object @line 3478 (codeCheck)
1:51:47 PM: warn Heartbeat not called in last 15 minutes, rescheduling heartbeat
1:51:47 PM: trace The date/time on the hub now is Sun Jan 13 2019 13:51 GMT
1:51:47 PM: warn READ THIS BEFORE PROCCEDING: IT IS NORMAL TO SEE DEBUG MESSAGES EVERY MINUTE, IT CONFIRMS THAT THE APP IS HEALTHY AND RUNNING IN THE CLOUD. IT DOES NOT COMMUNICATE WITH THE LOCK UNLESS YOU SEE A MESSAGE BOX SAYING ‘REQUESTED LOCK TO XXXXX’.
1:51:44 PM: debug cmd: MeterReport(scale2: false, scale: 2, rateType: 1, precision: 1, meterValue: [0, 0], deltaTime: 0, meterType: 1, size: 2, scaledPreviousMeterValue: 0.0, scaledMeterValue: 0.0, previousMeterValue: [0, 0])
1:51:02 PM: error java.lang.ClassCastException
1:51:02 PM: trace state.previousMaxUserNames: 10, maxUserNames: 10
1:51:02 PM: trace Configured lock fixed code length: null, max code length: 8, min code length: 4
1:51:02 PM: trace [locks:[Front Door Lock], updateNotifications:true, detailedNotifications:false, maxUserNames:10, sendDelay:15, retries:5]

Anybody any idea what I am doing wrong?

I am based in the UK if it makes any difference

Thanks in advance for any help

Rob


(www.rboyapps.com - Make your home your butler!) #1767

Looks like the app/settings are corrupted or not saved properly. One option is to Uninstall it from the IDE from under My Locations -> SmartApps link next to your location name and then reinstall it from the ST mobile app.

This can happen if you have made changes to the users and locks but did not tap Save at the end (probably pressed Back).

The other option is you can update your code to todays version. It has a check for this situation and will automatically reinitialize the app when it detects an unsaved/uninitialized change made to the settings. You don’t need to reinstall the app if you update to this version. It should automatically detect the unsaved settings/corruption and fix them within a few minutes.


#1768

I uninstalled following your instructions and reinstalled and that fixed the problem. I have now updated to the new version as well. Thanks very much. I think that is the quickest fix and release I have ever seen :slight_smile:

One thing I have noticed over the default Smartthings Smart Lock module is that the users pin codes are visible after they are saved. Is there a way to hide these as some of my users don’t want me to know their pin codes?

Thanks very much
Rob


(www.rboyapps.com - Make your home your butler!) #1769

The purpose of this app is allow the administrator (SmartThings app owner) to see and change the pins for users. The basic version of this app (which behaves like the stock SmartLocks app) does not show the pin but then there is no way to recall a pin, know who is using what pin, check if there are pin conflicts etc which are handy tools when managing more than one or two users.
When you start creating multiple scheduled users, presence based users and other advanced features of users and actions it helps to be able to see and change the pin assigned to users. For example, if you have two users with the same pin, the app will notify you and ask you to change it because it will create havoc with the lock and may even cause a malfunction with certain lock models if multiple users have the same pin. Lots of built in scenarios like this which are handled by the app so that your users have a smooth experience.