You asked for, so I’m giving it to you, but maybe not exactly how you want it. I
Sorry.
I too have several dings in my doorframe where the deadbolt locked while I was slamming the door shut. See the Door open check beta release for more info.
But in a nutshell: All integration commands that lock/unlock the device are now being sent to a “shadow lock”. This lock (named boltchecked_LOCKNAME
) will first determine the status of the door. When it receives a lock command, if the door sensor is closed, the command is executed. If the door sensor is open, input_boolean.keymaster_LOCKNAME_retry
is set to True
. When the door sensor reads closed
(presumably because the door was closed!) and if input_boolean.keymaster_LOCKNAME_retry
is True
the lock command will be called again.
In fact, every time the lock command is attempted, if the door is open than the next time time the door is closed it should lock. However any other commands to the lock should override this “lock retry” attempt.