After Hub offline effects

I have presence sensor in my car so when I arrive home the lock is unlocked automatically and it works as expected. The problem is that when for any reason my hub goes offline then when it is back online it will recognize my presence sensor and will unlock the door so it has happened at 3 o 4 am and of course I do not want to have an unlocked door at that time and when I am sleeping. Any idea how to avoid the hub to recognize my presence sensor in this way after an offline period?