#Lock door after door close and wait 10 minutes?

1 messages · Page 1 of 1 (latest)

grave socket
#

So I’ve set up a few dummy switches to trigger my home lock to lock and unlock when I get home and leave.

What I used to have set up in HomeKit but want to set up in HA is when I close my door, wait 10 minutes and lock the door.

The issue is (and yes I have a sensor) is if I close the door and then open the door within 10 minutes to cancel the automaton until the door is closed again.

The main reason is so the deadbolt doesn’t close when the door is open which bangs on the door frame.

plain atlas
#

What is the issue? What is or isn’t it doing? Opening the door should interrupt the wait (you should use the sensor as the trigger: sensor ‘closed’ for 10 minutes)

drifting moss
grave socket
#

The issue is my lock won’t add to home assistant, so I use dummy switches to by-pass HomeKit security issues .

I’m still new to HA and not sure how to do the proper triggers and conditions and waits in order to not have the lock still lock with the door open

drifting moss
#

If your lock pairs to HomeKit you can instead pair it to home assistant and then share it back to HomeKit. That way you get the proper entities in home assistant.

grave socket
#

For some reason, everything else I have for HomeKit did that except my lock. It’s a Schlage sense and it couldn’t get it to pair home HA.

drifting moss
grave socket
#

I will check that out.

My other concern with doing it this way was using HomeKits geofencing rather than HA, since I didn’t plan on setting up the HA cloud or whatever it’s called

drifting moss
#

You don't necessarily have to use HA Cloud. You can set up remote access by yourself, or use proxies via HomeKit (though I've found HomeKit to be a bit flaky on that in the past)

untold hemlock
#

Wait, so you have a way to close your lock with that "dummy" switch, right? It doesn't matter it's Shlage or Yale or Chinese crap. The thing is if you can close it. And you said you have a sensor for the door.

Then automation is very easy:
Trigger: state of door sensor to Closed for 10 minutes.
Action: close lock switch.

If you open door in between 0 and 10 minutes after closing, this automation won't trigger at all. It will wait for first consecutive 10 minutes of closed door, then locks the lock.

grave socket
#

I think I might have made it when the door closes

grave socket
#

I added the Schlage integration and signed in but no entries show up

plain atlas
#

if you pass it to HA over homekit, you can keep using Apple Home for the geofencing and you won't need the nabu casa/HA cloud.

#

and lastly, be sure to use the open/close SENSOR to trigger your automation; but you can also accomplish this in Apple Home easily as well-- same logic.

grave socket
grave socket
plain atlas
#

Yes. Rosemary is saying the same thing

#

If you can’t see it in HK either, are you sure you bought a lock that has a wireless module in it? (Matter/zwave/zigbee/wifi)

grave socket
#

It must have one of those because I can scan the Homekit code and it is in Homekit

plain atlas
grave socket
plain atlas
#

Ok that's perfect.

#

Then you need to go into home assistant and use the "homekit device integration" to bring that single lock into Home Assistant. This will let it work in both locations. This is how people integrate the Aqara FP2 presense sensor as well.

drifting moss
#

But you might have to remove it from HomeKit first to be able to do that.

grave socket
#

I may have to try it again, because I “removed from HomeKit” but it didn’t appear in HA to pair. I was messing with some Mysa Floor Thermostats, and wonder if its similar where, I added them a long time ago, deleted from HomeKit and didn’t show up in HA. Wonder if it’s because they aren’t in “pairing” mode. When I tried with the lock not long ago, it wouldn’t show up in home assistant to pair.