Please format your code properly, number 11 of this post: How to help us help you - or How to ask a good question
Any chance Garage Door A is more reliable? The issue i mentioned would only apply to Garage door B (the actual cover entity)
I would try opening and closing Door B while on the developer tools > states page and see if the door goes from closed > opening > open and vice versa for closing.