If there is a short in the Smart Junction Box from water intrusion it can reverse the polarity in the circuit like you are experiencing.What's really strange is how the system operates like the switch is backwards.
It's mounted correctly, plus it's Don-proof.
On the bench, the switch is "Open" and when I press the plunger ( as if the door closes ), it goes to .5 ohms.
Then, I put it in the door with my meter on the pins. It read open with the door open. Then I used a screwdriver to tilt the latch like when the door closes, it read .5ohms.