I am trying to complete my first DTH to add “Locked by Keypad” to webCore and all other Smartthings that I need that function in.
It seems that I am stumbling a bit. Everything looks right, it even logs 'Locked With Keypad" in IDE but no matter what, I can’t use a condition “If Garage Door Locked” is “Locked by Keypad”.
What else do I need to add to make it visible in webCoRE?
I already tried asking on the webCoRE forums. Nobody was biting, after a month I got one response that didn’t help.
Respectfully, no that was not complete. This DTH has about 5 ‘keypad’ methods as you can see in my github link. I fixed it by altering the DTH to actually say ‘locked by keypad’. Code 18 around line 610 is where it is fixed to make $currentEventValue say what I needed.
I am absolutely shocked that this isn’t stock. ‘Locked Manually’ is. Someone at ST didn’t figure we needed that information.
You are more than welcome to take my edits and use them yourself @RBoy
1 Like
RBoy
(www.rboyapps.com - Making SmartThings Easy!)
7
Yes I agree, there’s a lot that’s missing from the stock handler some of which we have given to ST and they’ve incorporated into the new handler.
I know what you’re saying about the “not complete” part and it’s intentional for compatibility purposes with existing apps. The primary change you’ve made is already present in our enhanced DTH. However the additional change you’ve made to the description is so that it works with $currentEventValue variable with WebCoRE is very specific to your Kwikset 910 lock, that may break existing SmartApps from ST which is why we’ve retained the original description but included the additional metadata for apps like WebCore and CoRE to process.
The most compatible way to use the DTH would be to use the $args variable rather than looking at the $currentEventValue variable as I had outlined in my post above and this way it also works with existing apps and with the Kwikset 910 lock + WebCoRE.
So far, I’ve not noticed it having issues. I’m not saying that it won’t but, that change I made is only for code 18. For now, everything works as it did before and has the ‘locked by keypad’.
Your DTH says ‘Locked Manually’, even in the IDE logging. Not sure where you changed it. Haven’t looked though yours.
This device handler is out of date. It will seriously mess up your lock. Do not use it. I’ll update the one on my GitHub and make note of it in the code.
Rboy and other device handlers (for this 910 lock) are still messing my lock up badly, sometimes my entire Z-wave Network!
Also, please only use this if you need ‘locked by keypad’ in $currentEventValue for webCoRE
Somebody can help me out to figure out My Dome Siren problem ; I installed Copy the code and I paste Published for me , After that I open my SmartThing app I add Device Everything went ok , But I don’t see Differents Chime or Differents Siren I only see Siren off and on ,: What I did or What Im doing wrong ? Sif someone have or had thesame problem that can help me out ? Thanks