I have a Kwikset door lock that I’ve setup on the Kwikset side to automatically relock after 30 seconds. That’s not a SmartThings app, it’s built into Kwikset.
Unfortunately SmartThings doesn’t, right now, update status due to manual changes at the lock. That is, if someone physically unlocks the door, or punches in a code and unlocks the door, or if Kwikset does it’s auto re-lock after 30 seconds, SmartThings is unaware of any of these changes.
So wrote a simply little program that watches for my door sensor to open. If it opens the program does a refresh on the lock, then 35 seconds later, does another refresh (this is to capture when the lock should auto re-lock after 30 seconds if unlocked).
The program works, but there is a problem in the selection process:
If I indicate that I want a door lock by saying: “capability.lock”, then I’m presented only with door locks when I select my device, but when the program tries to run it fails because “.refresh” isn’t a capability of the “.lock” device.
However, If I indicate that I want a device by saying: “capability.refresh”, then I’m presented with any device that can refresh when I only want to see a list of my locks.
Okay, not sure… this isn’t a huge problem. I just make sure I pick my lock when I install the program and I’m fine. The program works, everyone’s happy. But ideally I’d like the program to only offer my door locks as options I can select. Is there a way to do this and till access the ability to refresh the lock?