I have two routines for my lock to auto lock and unlock when I come and go but after I get home and it auto unlocks for me I come inside then lock it again but it’ll auto unlock again because it’s detecting I’m home. How can I make that not happen? Here are my two current routines
Auto lock
IF
If all conditions are met
Backdoor Lock state is unlocked
I am away from my house
THEN
Backdoor Lock is Locked
Auto unlock
IF
If all conditions are met
Backdoor Lock state is locked
I am at my house after being away for 2 mins
THEN
Backdoor is unlocked 30 seconds after
I have it set up to unlock after being away after 2 mins in case I am outside geo fence shortly. That’s also why I have it set to unlock after 30 seconds in case I’m just passing by through my geo fence.
What do I need to edit or add so it will not unlock again after I have entered the house and locked it manually?
I don’t think this is possible at the moment. There is no way to natively tell SmartThings you have manually locked the door. I use SharpTools to retrieve event data to determine if a lock has been manually locked/unlocked to active a routine. Using it you could add a virtual switch that is set when manually method is detected to prevent the routine from running.
Sounds like you need a nested if/the conditional statements.
I can’t help to much as I have moved onto Hubitat.
From that perapective I use Node-Red with the Samsung Automation Studio pallet for a few things I cant fully move over. It is a very powerful tool that can create very complex rules. You may want to look into something like that if the built in Smartthings rule engine isn’t powerful enough. It has a visual aspect to it as well which i think makes it easier then trying to write code to do it from within the Smartthings API environment.
1 Like
RBoy
(www.rboyapps.com - Making SmartThings Easy!)
8
Try adding a pre condition, only to execute the unlock action if you’re not present for X minutes.