How to close eletrical circuit (closet lighting on opening the door)
Doesn’t the switch part have 3 terminals: common and “no” &amp; “nc” ie normally open &amp; normally closed.

So once the switch is fitted with the door closed the magnet holds the contacts open ie off and when the door is open the contacts are closed ie on.