Device watchdog should take care of the letting you know if the locks have fallen off.
For RM maybe look at having the unlocking trigger setting a variable to with a 30 second delay reset it to [Y].
Then have a second rule that is dependent on the the variable being when the door is open.
There is should be a way to do it comparing last event times but I can't off the top of my head think how to do it in RM.