[OBSOLETE] Lock Manager

You could take a look at this?

You would make a simulated open/close sensor to mimic your door. Instead of adding your actual open/close sensor to SHM, you add the simulated one. The simulated one mimics the actual sensor after a delayed amount of time, thus fixing your issues.