By the way, I don’t change my lock codes often, either, but sometimes I have to add one and I don’t know of another way other than through the Rboy app (well, I think I can do it if I take the cover off the lock, but that’s tedious). The Rboy app also lets me schedule access so for example if we have some handyman come to the house I can set the lock code to be available only during the time the handyman is supposed to be there. Can I set codes with a SharpTools rule? I was poking around in the rules and couldn’t find anything yet.
Under the life tab in the mobile app you should be able to add Smart Lock Guest Access. After you install it, lock codes can be managed from the upper left menu of that app.
Thanks for sharing, Jimmy!
Yes, most lock devices will offer a setCode()
command. If I remember correctly, the parameters are:
- Code Slot
- Code PIN
- Code Name (Description)
OK, I see the dropdown menu now. Sheesh. That was hard to find! ;-). I do see all the names of guests that have codes assigned to each lock, but all I think I can do is edit the names, not the codes, so I guess I’ll keep poking around because I missed that I could even see the guests names. I can delete names/codes as well. There is a history listing. It shows when my Rboy app updates the codes. Anyway, thanks for the tip!
OK, I’ll check this out. I suspect that I could write a rule that authorizes our cleaners with a code as of 8 am then delete the code as of 5 pm and only do it on Thursday.
One other question: can a rule be triggered by a certain code being used to open the door? The Rboy app has a feature that let’s me do things depending upon who opens the lock. I’ve emailed their support, but no answer yet (although I know he’s been active on the SmartThings Community so I’m hoping he has a plan).
Thanks.
It depends on how that information is reported. In the Groovy world, locks could report an extra data
parameter and put whatever they wanted into that field. It was commonly used to report things like which code was used to unlock.
@plb44 was just asking about this in his thread:
For my use case, it’ll probably work if I track if the front door lock is unlocked regardless of code used because on Thursdays during the day it’s only the cleaners that unlock it.
In webcore, you can find these values using $args.method and $args.usedCode. Those come off the unlock event, but I don’t see them as context variables. any way to manually query for the values?
Thanks for the additional details, Scott. Were you able to see my reply in the thread linked above?
yes it seems like it would be info from the data property, so you are saying that is not accessible to sharptools? I am using kwikset 910 with the generic z-wave lock handler.
It’s just that it doesn’t seem to be documented in the next-generation eventing APIs at all.
I took a look through the Z-wave Lock Edge Driver and it still has some references to event.data
, so I just put in an order for a Kwikset 910 and will try it out.
wow, that’s very nice of you. I am excited to see if you are able to extract that info. would definitely be nice to react to the specific user code or entry method. in the meantime, how can I check if I am using an edge driver for my zwave lock?
You can open the SmartThings mobile app and open the device you are interested in. Give the screen a moment to load, then tap the ...
in the top right and if you see a ‘Driver’ option, it’s on an Edge driver.
From what I understand, as of today, you’ll only be on an Edge driver if you’ve explicitly reonboarded the device recently (removed it and re-paired it to SmartThings). The exception to that is if you are part of the Edge Driver Betas in which case they have automatically migrated some drivers already. I believe the plan is to start the automatic migration for regular SmartThings users sometime late August through end of September.
Hi! Groovy refugee working on transitioning my handful of live WebCore pistons. Similar to @RichB, I want to enable a lock code for my cleaners during scheduled visits. I originally had mine tied to a GCalSearch presence sensor which I’m working on mimicking in IFTTT. On the Rules side, I need to add the code when that presence is active.
My input arguments appear to show in the opposite order from your screenshot, with the numeric value coming last. I’ll try it out with the reverse sequence when I get home and can confirm the code enters properly but wanted to raise it here given the discrepancy withwhat you just posted.
Are you moved over to the next-generation integration? Keep in mind, the next-gen connection is only enabled for new users by default, so if you had a legacy connection to SharpTools at some point in the past, you may still be using that.
If you’re just getting started with SharpTools and don’t have many rules/dashboards built-out yet, you can deauthorize your existing legacy connection which would then make the next-gen connection available to you (proceed through auth, select the location, and tap deny).
Alternatively, we can get you added to the beta so you connect connect the next-gen connection side-by-side your existing legacy connection.
–
I would also add that the Groovy platform has an oddity where when it is asked for the list of parameters, they don’t always come across in the right order. You can fix it by tapping the ‘Advanced’ toggle in the top right of the Device Action in your rule and then change the parameter types as you see fit.
Got it in one. I didn’t realize the different connection would lead to a different presentation of the options. I set up an account ages ago and am just now making an effort to use it, so re-linking the couple of rules I started setting up was no big deal.
Feel free to send a note to support@sharptools.io if you’d like us to reset your trial so you can try out the premium features.
Just following up. Any luck getting access to event.data?
The data
property is there on the Z-Wave Lock Edge Driver in the next gen platform and has the codeId
property in it (along with codeName
and method
= keypad
). I won’t be able to get to it right away, but since the data is there the good news is it’s possible.
Is that based event data from a subscription?