Hello Nate, Where do I find the Device Type Handler for the device? I checked online and could locate the Device on api.smarthings.com, but there is no option to edit the Device Type Handler for this device. Please advise.
@sahabjee Hey Ravi, what @Terminal said is accurate. You are going to need to do a couple of things. First you need to get a new device handler for the lock that you can edit and install it in the IDE. I will try to walk you through it briefly.
In the IDE under My Device Handlers click settings in the top right and then click add new repository. Fill in the blanks as follows: under owner type: ethayer under name: type lock-manager and under branch type: master
Save that and then click on update from repo and you should see the one you just added. Click on it and it will show you all the Device Handlers you can choose from in that repo. You should see one called ethayer:Z-Wave Lock Reporting. Select it and click the publish box and then Execute update. Then you can go in and edit the code as I discussed above. On line 533 below def cmds = [secure(zwave.doorLockV1.doorLockOperationGet())] add the line cmds << secure(zwave.batteryV1.batteryGet())
Finally go to the My Devices tab of the IDE and find your lock click it and then select edit and then change the DTH to the new one you just edited and click update. Now if you go into the ST app on your phone and click refresh it should update the battery for you. If you want you can switch the DTH back to whatever you were using as well.
I know this is kind of long and confusing but hopefully it points you in the right direction. then switch
For me it just kind of went away and I haven’t had an issue since. Did you try adding the code mentioned above to force the DTH to request the battery level? I am curious if that is what fixed it for me. I don’t really know for certain, but it couldn’t hurt to try. It seems like the stock DTH just doesn’t poll for battery correctly so maybe it isn’t accurate.
Folks, I seem to have fixed my problem. Thanks to all of you for your input as well.
First of all, after looking closely at the specs of my lock, it is Kwikset 910 (not 914 as I thought). It is a ZWave device.
All I did was to choose a different Zwave Type device in the device handler online. I choose “Zwave Lock with Codes” in the device properties. The default device type was “Zwave Lock”. This did the trick. I can see the battery percentage as 60% now and the 1% default error message is gone. I will have to wait now to replace the batteries when they are exhausted to see if the annoying 1% message shows up again. For now I am good. Thanks again.
I have the same lock a Kwikset 910 – I changed the device type to “Zwave Lock with Codes” - how long does it take for the 0% to go away? I had changed the batteries already, prior to finding this possible solution. Thanks.
It should change almost immediately, less than 10 sec. If it doesn’t, please try changing the device type to Z-wave Lock, update the device handler online. Then go back in and select “Z-wave Lock with codes” second time and see if that helps. Also, make sure you have used fresh set of batteries (I am sure you did, just wanted to make sure). I have to follow this process everytime I change the batteries on this Lock.