With the paid Rboy Edge driver, you should be able to create a routine that sets the lock(s) in “away” or “night” mode between 5pm and 8am. Just make sure “away” or “night” mode has code entry turned off.
Yes it should if your lock reports that information, check out the first post for a list of features available to specific brands/models.
How would the lock enforce that? It has no notion of time of day. A Routine is only triggered by an event. If there is a valid code in the lock and a user enters it, that will trigger an event that can trigger a Routine. Of course by then, it’s too late.
That wouldn’t give you per-user time based codes. It would just disable all code entry similar to the Schlage Vacation mode. Certainly wouldn’t be good for locks on a short term rental where you need the current occupant’s code to work and you’d like to pre-program the next occupant. Nor would it work where you have codes for some individuals that you want to work at certain hours (dog walker), but you need everyone else’s to work all the time.
He only said he wants to disable code entry for everyone from 5 to 8. You are correct it would not vary times for each person, unless you wrote a routine to for each person, which would be dumb.
I was able to put something together that lets you schedule codes to activate and deactivate using routines. It’s the definition of a kludge and requires a bit of effort to set up, but it works. You’ll need a free SharpTools.io account and @TAustin 's excellent vEdge Creator. Instructions for installing the vEdge Creator device are in the thread, so I’m going to assume you can follow the instructions at the link.
Use the vEdge Creator to create a virtual switch for each code that you want to be able to activate and deactive. For easier use, I put all these virtual switches into their own room and named them code slot number and name.
In the SharpTools Rule Engine, you need to create two rules for EACH switch you created. The first rule disables the code in the slot when the switch turns off.
The second rule enables the code in the slot when the switch turns on.
Once you do that, just create a routine that turns the switch on or off at the desired times, and you’re good to go. It’s time consuming to create all the virtual switches and rules and there are easier/faster/more convenient ways to do it with with a paid SharpTools account, but it works.
Edit: I just realized this is fairly off-topic for this thread, but this method only works if you have a reliable, stable driver that doesn’t mess up the code setting and deleting, and @RBoy 's driver is what makes this method possible.
Nice work!
Your method will also work for Schlage locks running the Z-Wave Lock Edge driver from @philh30.
If I understand the situation, and I may not, I think you can do this with one rule in SharpTools. I have one rule that deletes a couple codes at 5:00 p.m. and adds them back in at 8:00 a.m. I have two triggers: one at 5:00 p.m. and one at 8:00 a.m. The flow then has two if statements to check if it’s between 5:00 p.m. and 5:05 p.m. as well as between 8:00 a.m. and 8:05 a.m. depending on the time, SharpTools will either delete the two codes or add the two codes.
Right now, until @RBoy has a solution, try Aurmur. It will do exactly what you would like. It is simpler and cheaper than SharpTools.
Is there an easy way to identify which lock code slot the existing code is assigned to?
You can use the Advanced User Web App. Choose your lock from the list of devices, then scroll down to attributes. One of the attributes is lockCodes and will list each slot number followed by the name you’ve assigned. I feel like there’s a way to get the actual codes too, but I didn’t need them so hopefully someone else can either remind me, or correct me.
Yes, the Sharp tools rule engine is way more advanced than Routines, so you can do all kinds of stuff with it. For me though, I have several locations, each with different users, and I didn’t want all of them to have to create (and remember!) SharpTools accounts for every time they want to disable or schedule a code. This way, people only need to use the ST app they already have, and they can manage codes and logic and schedules without too much intervention from me.
Am I looking at a different Aurmur than you? Their pricing is $5/month for the first lock and $3/lock/month after that.
That’s way more expensive than SharpTools which is free for basic automations like the one @rcbjr2 mentioned with enabling and disabling lock codes at different times or the automation @sdgood mentioned with using virtual switches to enable and disable codes. You only need premium if you want the advanced features like variables and its less than $3/month for unlimited locks.
Whatever is acceptable to you. To get what you need from Sharptools it is absolutely not free. But I’m not promoting anything. You will have to try them all as I did. I ended with Aurmur.
I have to disagree with you there. SharpTools have a paid tier and a free tier. What I posted above was all done using the free tier. The paid tier opens up way more possibilities, but it’s not a requirement.
I hope it works well for you.
Thank you! I’ll give it a try.
Thanks, croust1370. What app is that that you’re using? It doesn’t look like smart things.
Thanks, Bob. That is in fact the direction I’m now going. I just received the hubitat hub yesterday. I’m in the process of figuring out whether I should try to use it in conjunction with my smart things hub, or to just get rid of the smart things hub and go straight through the habitat hub, which seems to make the most sense since I’ve really only got a couple of locks on my building that I’m trying to control! Anyway, thanks again for your quick reply and your help. Much appreciated.
Matt, those images show the creation of a Routine in standard Smartthings on my iPhone 13 Pro Max.