I also used a diagram picture thanks for watching. These cables are used for distributing power to the light fixture the wall switch and may provide power to wall receptacle outlets as well.

Wiring Up A Light Switch Mycoffeepot Org
Wiring a ceiling light switch. Use a phillips screwdriver to unscrew the mounting screws and bring down the light. To wire the ceiling fixture to the new wall switch first connect the copper grounding wire to the fixture. Double switch wiring requires a circuit with four wires black red white and greenbare copper. Remove the old ceiling light. Secure the wire to the joists with electric staples. If youre replacing an old fan or light fixture and the wiring in the fixture box contains only two or three wires black white and green or bare copper you must use single switch wiring for the new fan.
Usually the hot wire to the fan in a fanlight combination kit is black while the. I explain how i wired a ceiling fan on one part of the switch and the light on the 3 way part of the switch. Every wire connected to a switch are hot wires. Find the main breaker box and turn off either the individual breaker for. Ceiling light fixture electrical wiring and connections. Ceiling rose switch connection new ceiling light can be added by introducing a new cable into one of the existing ceiling lights sharing a live and neutral and earth connection with those wires already in the rose.
Mark this wire black. Turn off the power to the existing light. Drill through the floor in the correct stud bay and send the wires for the switch and the light up to the switch using the fish tape. Connect white wires together. At the light the white wire connects to the neutral terminal and the black wire connects to the hot. Wiring ceiling fan and light with one switch this method allows you to turn on the fan and the light from one single wall switch cutting out the necessity to use the pull chain every time you want to adjust the fan.
After removing the black wire to the fixtures lead splice it into the new white wire. The neutral wire from the source is spliced to the white cable wire and continues on to the light. It could be a single switch wiring or double switch wiring. Then splice the fixtures black lead into the new black wire. Depending on the age of the home there may be one or more cables found in the ceiling junction box. Connect the greencopper wires together.
The other ends of the cables are then connected into a new ceiling rose live neutral and earth. The wiring arrangements for electrical source at the switch and at the ceiling fixture. The neutral wires and ground wires are not connected to the switch. The source hot wire is connected to a switch terminal and the other terminal is connected to the black cable wire. Inspect the wiring in the outlet box. Connect the electrical wire to your source of power using the pliers and wire nuts and fish it through the joists until it reaches the light switch.