Checks to see if the door is open and updates the space api