First off, a big thanks to @bigpunk6 for making this happen. Another confirmation it works on the Kwikset 914. I think my implementation is off, however, so I’m seeking feedback.
Another posted mentioned to only program Users 3-30 since the first two user codes can’t be changed remotely. So I’m testing with User 3.
My issue is I can only change the user code using the IDE page. That is, I publish the smartapp to my device (on IDE page) and change the user code and then hit the “trigger now” button. Doing so changes the code. If I use the smartapp on my iPhone and change the code and then hit “Done” on the upper right nothing happens.
Another weird finding is the tile that is supposed to show the current user code is blank (on my phone). It’s odd bc when I trigger the new code in IDE, the current code is shown (on the computer). Not sure why it would show on the virtual but not the actual device. Is this bc I’m using User 3?
After configuring the smart app on your phone the little icon looks like a “play” icon. I think you have to “run” it from that level to make the changes you set in the app actually configure the lock. To run it just click it.
@acastal Thanks for the response. I’m not seeing the “play” button? @scottalex mentioned the same button but it’s not there unless I’m completely daft (totally plausible).
After installing the SmartDevice and SmartApp, I’m going to Things > Gear Button on Lock > SmartApps > Change Lock Code.
The correct lock is selected under What Lock and I’m inputting “3” (for User 3) under User and the four-digit code I want to use. I’m leaving the categories for Assign a Name and Set for Specific Mode unchanged. From there the only other option I have is to click “Done” at the upper right. I get back to the App page where the tiles are shown and there is no play button. Is this where it’s supposed to be?
@wonger7 Once you’ve added an instance of the lock code smart app, go to “My Apps” you should see it there with a “play” logo on it. Click on the smart app, not the gear. It should then assign the code to the lock. You can confirm this by going back to “things” and locating you lock, click the gear, then “activity” and you should see the user number and code being assigned. Also make sure when assigned the lock code in the smart app you also had “Delete User” set to “no”
You can use one instance of the app to set codes but then you have to remember how many you set and which order. So what I did was I added 4 instances of the app and each instance manages a different user number.
@huydnguyen and @acastal I figured it out and my mistake was being a n00b. Hopefully this will help someone else out who is new to this so below is an explanation of where I went wrong (the reference to “My Apps” helped).
After creating the SmartDevice I published the SmartApp to the lock from IDE. Doing so makes a prompt show up for “Change Lock Code” when clicking on the SmartApps tile of the lock. I thought I did everything right but could not get the code to change from my phone. And I couldn’t find this dang “Play” button people where referring to.
Solution: you not only have to publish the SmartApp from IDE to your device, but you have to publish it on to the mobile app by using the “+” button. Before doing this I did not have “My Apps” on my homescreen and now I do. And now I see the “Play” button.
I’ve been using the same app. A few things to note:
I"ve been successful in changing/setting user1
Because the var type is numeric, door codes can not start with 0 (input “code1”, “decimal”, title: “Code (4 to 8 digits)”)
I next tried to set user 10 - while the code looked like it set while watching the debug, it didn’t unlock. More testing in order when I get home.
Would it be possible to just use a string for the field type and then do some validation to ensure only numeric characters are passed to the lock? Sorry if this was known or already discussed.
How often is the battery status set to update? Looking at my log it hasn’t updated in a few days. Hitting the Refresh tile does nothing. Can someone confirm whether or not the battery status is updating for them on a consistent schedule? I’m using Kwikset 914 and have not modified the device code provided by @bigpunk6
Mines not consistent at all. I was reporting 100% for the longest time and did nothing when I clicked refresh as well. Then all of a sudden the other day it started reporting the battery at 70%. Not sure how and what is triggering the battery status, and polling freq.
When I click the link (https://graph.api.smartthings.com/ide/devices) on the GITHUB Page, I get the following error: Sorry, you’re not authorized to view this page. Do you know I can overcome this error?
BP6 - this is awesome. Thanks for creating it. One thing I noticed (just installed today) - When I add a code, the state becomes “unknown” until the first time I go and manually use the lock after changing it.
As soon as I use the lock, suddenly everything becomes known again. Then if I delete the new code, everything becomes unknown again. Then I walk over, use the lock (with the code that still works) and suddenly everything is once again known.
You can go ahead and setup a new SmartApp From Form in order to get the code snippet for the missing metadata definition. Once you have that you just paste at the top off bigpunk6’s code to resolve the error message.
Has anyone used this device type with the Kwikset 914’s and successfully got the Battery status working? I switched back to the default zWave Lock as I’d rather have Battery Status than Code Management for now.
Came across this thread via google and wanted to leave the solution for the metadata issue - It is because you are saving it in “My Smart Apps” instead of “My Device Types” (this took me 3 hours to figure out) Paste the code here instead of in the SmartApps
After you add a “Device Type” you can then add the Device under “My Devices” and it should show up on your phone.
I switched back to the default as well. Interestingly, however, the default one doesn’t update consistently either. I received an update at 90% and another one at 80%. Nothing in between and Refresh does nothing.