Securifi Community Forum
Sensors and Home Automation => Home automation => Topic started by: alpjor on December 13, 2016, 03:07:40 pm
-
I want to write a rule to auto lock my doors when they are closed for a minute. I've started with the rule depicted in my image, but it's incomplete.
for example:
if someone closes the door it triggers the rule, but if in that 60 seconds they reopen the door I don't want the door to try to lock until it's re-closed.
I think what I really want is a rule that re-checks that the door is both closed and un-locked after the 60 second wait and only relocks if the state hasn't changed.
How can I accomplish this with the rules system?
-
I am not sure that you can with the rules set up the way they are. What door lock do you have? Many door locks are able to do this on their own. I believe my Kwiksets do (I am not sure what the time is though, it may be 30 seconds or 1 minutes) that it relocks after being unopened.
-
Yes, I do not think the current rules have a direct way to do it. A workaround might be to set something else extraneous to trigger it:
IF door closed and unlocked THEN turn on spare outlet/light after 60 seconds
Then a second rule...
IF door closed and unlocked and spare outlet on THEN lock door and turn off outlet
And a cleanup rule..
IF door closed and locked THEN turn off spare outlet
Something a bit like that as a workaround.
-
@mparadis Yeah, kwikset locks. They have the same dumb just wait 2min and relock, but they have no sensor to know that the door is closed. I had an issue using that where the deadbolt would come out when the door was open and when someone would then close the door, the deadbolt would slam into the doorframe (no good). Maybe if I could chain rules, I could do it. Like the action of one rule starts another rule? is something like this possible?
@fillibar that's a great idea! Are there virtual switches, or do I actually have to go buy new sensors just to have more switches for programming?
-
Is this an Almond 3? Could use the Almond 3 built in LED?
-
almond +
-
Unfortunately, no. There are no virtuals at this time. I just know many people have some extra light or something somewhere. This is still pretty much a DIY space. So extra odd stuff comes up.