if (state.retries++ < 3) {
log.trace "Door is open, can't lock. Rescheduling the check."
sendMessage("Can't lock the ${aLock.displayName} because the door is open. Will try again in ${duration} minutes.")
- runIn(duration * 60, notifyUnlocked)
+ //runIn(duration * 60, notifyUnlocked)
}
else {
log.trace "The door is still open after ${state.retries} retries, giving up."