Quoted from RJL:
Good call on the switch. A small tweak and it was working fine. What thru me off was it looked like it was registering green in the switch test. It was an intermittent problem.
I am guessing that you tested it with your finger in Switch Test. That doesn't accurately simulate where the ball rests when sitting behind the door.
Glad you got it working well!