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.