I was previously using your code that was called "MIMOlite Garage Door Controller refresh" and just switched to this one since it's far newer. Does this updated code here not update if the door is operated manually (i.e. using the clicker)?
I noticed that my door said "Contact: Open" but also "Door: Closed". I am not sure how those two states can exist at once.