A regular light switch will have two electrical terminals.
In some countries you may only install a new circuit in your own home if you are already suitably qualified AND have obtained the necessary permit from your Local Authority to allow you to do the work.
In some cities - for instance in New York - it is illegal to install any new circuits anywhere if you are not a licensed electrician. You must employ a licensed electrician to do the work for you. You will be breaking the City's Building Code if you attempt to do the work even in your own home.
Obtain a suitable length of cable containing hot, neutral and ground wires.
BEFORE STARTING WORK SWITCH OFF THE ELECTRICAL SERVICE AT THE MAIN PANEL.
Connect a hot wire coming from a lighting circuit breaker in the main panel to one terminal of the switch. A second length of hot wire must then be connected to the other terminal of the switch to form the switched hot wire. Its other end must be connected to one of the terminals of the lamp holder within the outside light fitting.
Connect a neutral wire coming from the service panel directly to the other terminal of the lamp holder.
If there are any grounding terminals on the switch housing box and/or on the outside light fitting you must connect a ground wire coming from the service panel to them.
MAKE SURE YOU CHECK THAT ALL CONNECTIONS ARE CORRECTLY MADE BEFORE YOU SWITCH ON THE ELECTRICAL SERVICE AT THE MAIN PANEL.
<><><>
As always, if you are in doubt about what to do, the best advice anyone should give you is to call a licensed electrician to advise what work is needed.
Before you do any work yourself, on electrical circuits, equipment or appliances,
always use a test meter to ensure the circuit is, in fact, de-energized.
IF YOU ARE NOT ALREADY SURE YOU CAN DO THIS JOB SAFELY AND COMPETENTLY
THEN YOU MUST REFER THIS WORK TO QUALIFIED PROFESSIONALS.
All a switch does is separate the hot side of a voltage source from the light. This means you put the switch "in series" with the black wire going to the light fixture. The black wire from supply goes into one terminal of the switch and the black wire going to the light goes on the other terminal. The switch is grounded with the bare wire from supply and the white wires coming from supply and going to light are connected with a wirenut. The bare wire grounds are also connected with a wirenut.
with a standard 1 pole light switch (one switch operating the light) it is black wire to black wire and white to white (non grounded)
You need two separate switches. You can get two switches that are in the same form factor as a single switch (2 gang switch). You use one switch for the outlet and the other for the light. You switch the black wires which are "hot".
You have a 3 way switch. Your black wire is the hot wire. Your green wire is the ground wire. Your red and white wires go to the light and other switch. You should have gotten a wiring diagram with your switch.
You put switch in series with the black supply wire and the black wire to the first light. Then connect black wire of first light to black wire of second light, black wire of second light to third light and so forth. Do the same with the white wires and ground wires.
If the question is, can I wire a switch to an existing light fixture (and I must assume that it's something like a pull-chain light fixture), the answer is yes.If the question is, "how do I wire a switch to an existing light fixture that has no external switch", the answer is, "in series".The attached web site gives simple instructions on how to wire a basic light switch to an existing light.See sources and related links below
with a standard 1 pole light switch (one switch operating the light) it is black wire to black wire and white to white (non grounded)
Current flows through a wire when a light switch is turned on.
You need two separate switches. You can get two switches that are in the same form factor as a single switch (2 gang switch). You use one switch for the outlet and the other for the light. You switch the black wires which are "hot".
You have a 3 way switch. Your black wire is the hot wire. Your green wire is the ground wire. Your red and white wires go to the light and other switch. You should have gotten a wiring diagram with your switch.
by a parellal current switch.
If you have one wire into your switch box for your light. this is called a switch leg, the dimmer should be wired across the black and white wire wires.
The switch probably turns the light out when the switch makes connection, then the light is on when there is no connection (like when the wire is not connected.) Reconnect the wire and push the switch to see if the light goes out. The switch is most likely out of adjustment or bad.
You put switch in series with the black supply wire and the black wire to the first light. Then connect black wire of first light to black wire of second light, black wire of second light to third light and so forth. Do the same with the white wires and ground wires.
If the question is, can I wire a switch to an existing light fixture (and I must assume that it's something like a pull-chain light fixture), the answer is yes.If the question is, "how do I wire a switch to an existing light fixture that has no external switch", the answer is, "in series".The attached web site gives simple instructions on how to wire a basic light switch to an existing light.See sources and related links below
Just wire it to a toggle switch. When you need it, just flip the switch.
you don't it is illegal
Open up the ceiling box and disconnect the blue wire coming from the light and connect it to the black wire coming from the fan. Be sure and put a wire nut on the wire where the light was connected before you removed it. The wall switch is controlling power to the wire where the fan is connected so when you connect the blue fan wire to that connection you will be sending power to both the fan and light from the wall switch.