I want my Schlage Connect to automatically relock after some period of time as long as the door is shut. I've been playing around with this in rule machine for an hour and a half and I can't get it to work properly.
The main issue is that I can't figure out how to get Rule Machine to recognize a physical manual unlock, using the knob. When I unlock the door manually, it instantly shows "unlocked" on the lock's device page, and the unlocking event shows up in the logs, but the door never relocks.
This automation works perfectly when the door is unlocked electronically. Any tips on this?
I've tried to attach screenshots of the logs to this post directly and also to paste links to the screenshots and both methods result in an error telling me that I can't do that.
Edit: After creating this post, I was bumped up a "trust level". I can now post links.
You should just be able to have a trigger of "schlage lock changes", then do a conditional action saying If unlocked for longer than x minutes then lock. Works fine on my hub.
Can you post a screenshot of your actions and triggers?
The door is "Door Front" the lock is "Door Front Lock". I think what you suggested would be the second trigger in my list, correct? I put all three of those different door lock triggers in there when I was trying to get it to work.
In my case, I also added a condition (magnet door closed) to lock only if the door is physically closed and keep the door unlocked while the door is still open. And I just monitor the changed status in the trigger.
And the rules works, whatever the method: manual (knob when inside) or electronically (code when outside or through the hub).
hmmm, the brand is different (Yale vs Schlage). You need to ask schlage locks users.
Do you have in your lock an automatic lock feature built-in ? I disabled it in my lock because it locks automatically the lock, whatever the status of the door (open/close) and after a very quick moment.
What's your model number ?
I'll edit also this post title to put Schlage on it.
When you installed the lock, did it Hubitat pick that driver, or did you pick it?
I ask because while I am sure that is the correct driver for the older z-wave BE469/BE468, I'm not sure that's the right driver for the zwave+ BE469ZP.
Edit - If Hubitat picked that driver, then everything's ok. The driver has the fingerprint for the z-wave+ BE469ZP and presumably the z-wave+ command classes that recognize manual unlock.
Can you try making this very simple rule and tell us what happens?
Trigger:
Door Front Lock *changed*
Actions:
IF (Door Front Lock locked) THEN
Cancel Delayed Actions
ELSE
Lock Door Front Lock --> delayed 0:02:00 (cancelable)
ENDIF
The idea behind this rule is that the only condition being tested for is if the lock is locked. Any other state should result in the lock getting locked. Also, I'd rather remove the complexity of adding in the contact sensor until something simple works reliably.
Edit - please make it as a fresh rule and pause other rules for the "Door Front Lock" while testing this rule.
Without making any Hubitat changes, manually unlock the lock. Then go to the device page for the lock, and try locking it using the Lock button. Does that work?
If that doesn't work, then try this:
Change the lock driver from "Schlage BE468/BE469 Lock" to "Generic Z-Wave Lock". After changing the driver, press "Save", and then press "Configure".
Ready to hear something weird? I tried this anyway, and the lock DOES re-lock properly when using the Generic Z-Wave Lock device handler. After a manual unlock, it does re-lock. Strange. Maybe I'll just stick with this generic driver for now.
My lock has identical details to the screenshot that you posted.
I guess that we could consider this kind of solved, but I have a related follow up question. Let's say that I have the re-lock delay set at ten minutes. If I walk into the house, then need to run out to the car 9.5 minutes later, it's going to lock me out when I'm outside.
This issue also come into play for notifications. I like to have a "door left unlocked" notification of about twenty minutes. If the door relocks and then happens to be unlocked again at the end of that 20 minutes, I get a notification that the door is stuck unlocked for some reason even though that isn't the case.
On Smartthings, there was a custom lock control smartapp that would restart the lock delay timer every time the door was opened. This is also possible through Webcore using "door stay closed for time" instead of "is door closed after time".
I can't figure out a way to duplicate this functionality through Rule Machine. Has anyone managed this?