Casual Wire A Receptacle From A Light Switch
Connections to the outlet are basically color to color for the blacks whites and green or bare.
Wire a receptacle from a light switch. 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. Wiring a receptacle to a switch receptacle always on. As you can see connecting a receptacle to the light would see the receptacle only hot when the light switch is on.
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. You then splice all the white wires and all the ground wires in the switch box together. You cannot connect a receptacle outlet to this type of switch wiring because there is no neutral wire in the switch box but you can at the ceiling electrical box assuming there is enough room for the extra wires.
Connect the black wire to one of the switch terminals and the black wire going to the light fixture to the other switch terminal. Twist the white wires together and cap them and connect the ground wires to the ground terminal. 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.
I will be using very minimal tools that you might find ar. In this video i will show you how to wire a switched receptacle. In this case you must change the cable from the switch to the light outlet from a 2 wire to a 3 wire cable.
It is required by the national electrical code nfpa 70 that a neutral conductor be available in each light switch electrical box. The neutral is needed for the use of electronic dimmers timers and wifi smart home devices that can be installed instead of.