Before you attempt to fix a faulty light switch ... and end-line switches, and the diagrams below explain how each type works. With power-through wiring, power enters the switch box directly.