Run a wire from the light to the switch. At the light connect the black power wire to the black wire to the switch. Not wrap some black electric tape at each end of the white wire going to the switch (This indicates that the wire is potentially hot and not a common wire).
At the switch connect the black wire to one side of the switch and the taped wire to the other side of the switch. Connect the ground (bare) wire to the green screw on the switch.
Now at the light connect the taped white wire to the black wire feeding the light and connect all grounds together with a wirenut.
If I am correct I think you are wanting to know how to connect a 3 way switch where you can turn off an light at 2 locations. At one switch you run a 12/2 wire from the switch to the light. There is no power at this switch. At the other switch you have your a power input wire. Run a 12/3 wire from one switch to the other. Connect all the whites together and shove them back in the box at the switch with the wire going to the light. At the switch with the 12/2 wire going to the light, connect the black 12/2 wire coming from the light to the black screw on the 3way switch. Now connect the red wire and black wire from the wire you ran between the switches to the other 2 screws on the switch. It does not matter which you connect to which screws. Connect the ground wire and put that switch in the wall with the cover on it. Now move the the other 3way switch with the power wire. Again connect all the whites together and shove them back in the box. Connect the black wire from the power source to the black screw on the switch. Now connect the other 2 wires left, black & red to the other 2 screws that are left. Again it matters not which wire you connect to which 2 screws that are left. Connect your ground wire and put the switch in the wall a cover on. At the light connect the black to black and white to white. Connect the ground wire to the green or ground wire on the light. You are done.
To control a light with a switch, the switch has to be connected in series with the light fixture.
Connect all white wires together under a wire nut and push them back into the box. Connect all ground wires together and then connect them with a jumper wire to the ground screw on the switch. Connect black power in and power out, if applicable, wires to the bottom screw on the switch. Connect the remaining black wire going to the light to the top screw on the switch.
Connect the incoming power to the line side of the GFCi outlet. Now run another wire connected to the line side of the GFCI outlet from the GFCI outlet to the switches. Power one of the switches and use that switch to turn on the 2 lights. Run power from that switch to another switch and use that switch to send power to the fan. Mount both switches in a double pole switch box. If the light above the sink has an outlet on it then you will have to connect power going to that light on the load side of the GFCI outlet. If not then just connect it to the line side.
Turn the breaker off sending power to this circuit. Just run power from the outlet up to the light switch box using a 12/2 or 14/2 wire. Now run a 12/2 or 14/2 wire from the light switch box up to the light. In the light switch box tie all the white wires together and push them in the back of the box. Connect all the ground wires together and connect that to the green screw on the light switch. Connect the black wire coming from the outlet to one of the screws on the light switch. Now connect the black wire coming from the light to the other screw on the light switch. Turn your breaker back on and this will control your lite.
I can not understand your question.
Connect the incoming power wire and the outgoing power wire going to the light switch to the line side of the GFCI outlet. This will protect the outlet and will not turn off power to the light if the GFCI trips.
Using 14/2 or 12/2 wire, black, white and bare. Bring the hot/black wire in the light down to the switch on the black wire, through the switch and back to the light on the white wire. Connect the white wire in the power wire to the white wire in the light. Connect the white power wire from the switch to the black wire in the light. Run the black and white wires in the first light to the second light. You should wrap the white power wire from the switch with black electrical tape to cover the white so that the next person realizes it is a power wire.
Power into the first outlet and out to all other outlets, black to gold and white to silver screw, ground wires to ground screw. From the outlet closest to the light switch run power from that outlet up to the switch box. Run another wire from the switch box up to the light. In the switch box tie all the whites together under a wire nut and push them back into the box. Tie all the ground wires together and connect that to the ground screw on the switch. Connect the 2 black wires you have left to the 2 screws on the switch. Does not matter which if you only have power in and power out to the light.
How do I connect a wall light switch that has 3 terminals, the third being for the ground wire. Which terminal should be connected to power coming from the breaker box?
go to the Help option in Matlab. It will not help at all.
Light switch connection is usually straight forward. Find your incoming hot wires, black and white. With the switch in the off (down) position and the power disconnected , connect the black wire to the top screw of the switch. Find the load wires and connect the black to the bottom screw of the switch. Connect the two remaining white wires together with a wire nut and push them to the back of the switch box. Install the switch into the wall box, replace switch plate cover. Turn the breaker (power) back on. Flip the switch to the up position and the light should come on.