How To Wire A Door Switch In A Closet
To wire a door switch in a closet, identify the circuit breaker controlling the closet light and turn it off. Remove the light fixture and disconnect the wires from the switch. Connect the wires from the door switch to the wires from the light fixture. Secure the wires with wire nuts. Mount the door switch in the desired location and turn the circuit breaker back on to test the switch.