This is an updated version of the first arrangement because the electrical code as of the 2011 nec update requires a neutral wire in most new switch boxes, a 3-wire cable runs between the light and switch the red and black are used for hot and the white neutral wire at the switch box allows for powering a timer, remote control, or other programmable switch. Electrical wiring diagrams for light switches. Switch wiring diagrams a single switch provides switching from one location only “single-pole” may sound simple, but there are different ways to wire a single-pole switch the power can come from either the switch box or the fixture box and a set of electrical switch wiring diagrams will explain each of these scenarios to you clearly.
electrical wiring diagrams for light switches
This story features diagrams that show how to wire three-way switches the wiring is more complicated than a traditional single-pole switch, but we'll explain how to make the connections once you're done, you'll be able to control a light from two switches wiring of 3-way light switches is. A variation of the above three-way and 2-way switch wiring is to bring all of the cables into one wall switch box as depicted in the diagram below, and branch off from there to each switch and light fixture. the line and load are brought into one 3-way switch electrical box..
get link reference