Step 1 turn off the power. Switching an outlet yourself will allow you to switch a lamp from a convenient location rather than unplugging it or switching it off at the lamp.
Plus it protects sensitive electronics from voltage spikes due to lightning or utility problems.
Add light switch to existing outlet.
Once you identify it be sure to turn off. If power is coming into the switch box from the panel and you want to connect an outlet to the switch your first option is to wire the receptacle to always be on. Wiring a new switch and light from an outlet. At the switch box the white neutral wires are spliced together and the ground wires are spliced and a pigtail wire is added and attached to the green ground screw on the light switch frame. Not a bad idea. The first thing you need to do is distinguish the line cable coming from the panel from the load cable which is the one going to the light fixture.
The switch comes first in the new part of the circuit and new 2 wire cable is run to it from the outlet. Also find a diagram for adding a light from a switched receptacle you already have to include the fixture when you turn on the room light. Even a novice can add electrical outlets to existing light switches already operating in his home. The existing wall switch electrical box was mounted to the wood wall stud using two 16 penny nails. Wrap the black wire from your new light fixture around a screw on the right side of the new switch. Connections to the outlet are basically color to color for the blacks whites and green or bare.
They re not as ubiquitous as regular light switches and outlets but you can still usually find them at most hardware stores. To add an outlet to a light switch you start by making a pigtail using the hot wire the wire going to the fixture controlled by the switch and a third length of wire. Wrap the black wire from the existing light fixture around one screw on the right side of the original switch. With the breaker on turn the switch off and test both switch leads with a voltage tester. Lastly you ll need a switch outlet combo unit. It is also possible to plug such things as tv sets computers or other vampire appliances into a switched outlet saving electricity over time by turning those appliances completely off.
The incoming power from the outlet is attached to one of the light switch screw terminals and the black wire of the cable leading to the light fixture is attached to the other light switch screw terminal. This one from leviton 9 will get the job done in most cases but i m using this heavy duty one from eaton which is more appropriate for workshops and such. From the switch new 2 wire cable is run to the new light location. Wrap one black pigtail around the other screw and tighten both screws. The third cable goes to the electrical receptacle outlet nearby which is controlled by the wall switch. In this diagram power is taken from an existing wall outlet for a new switch and light fixture.
All it takes is a basic understanding of electrical connections the right tools and materials and a good deal of caution. You can see the nails as they pass through the upper and lower parts of the box. Hook up the outlet as you normally would. You then splice all the white wires and all the ground wires in the switch box together. The one that gives a positive reading is the line. The wiring will change so that the outlet is on all of the time and two switches will be used to control a new ceiling fan and light.