Where can I buy a door operated switch for lighting in a wardrobe?
All you need is a door jamb “normally closed” push button switch, wired like a regular switch. When the door is closed, the button is pushed in, opening the circuit and turning off the light. Opening the door allows the button to return to the “normal” position and turning on the light. Easy to find and install.