However it s likely that the light fixture was mounted in the middle of a stud cavity which makes mounting a box that can support the weight of the fixture more difficult.
Wiring a ceiling light with 2 wires nz.
Remove the old ceiling light.
True the lamp will.
Untwist the fixture wires from the house wiring.
Red black green or brown blue green yellow cable feeds the switch.
It is helpful to have someone to hold the fixture as you uncap the wires and remove any electrical tape.
Replacing fuse wires and fuse cartridges.
Correctly connect hot and neutral wires when you replace a lamp switch and socket to keep your lamp safe.
Ensure that you do not work in any enclosure where conductors or terminals are live or could become live.
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.
Use a phillips screwdriver to unscrew the mounting screws and bring down the light fixture.
In the ceiling light fixture electrical box one black wire from a 3 way switch gets connected to the black load wire on the light fixture.
When doing work on wiring in your home you must.
The source is at the dimmer and the hot wire is spliced to one hot wire on the device.
A device like this should only be used with an incandescent light fixture and not with a ceiling fan or other motor.
Doing your own wiring.
The third conductor green or green yellow is only needed if the lamp requires a safety earth black neutral blue wire goes to the loop terminal a red positive brown wire goes to one switch terminal and another from the other side of the switch to the lamp.
Secure the wire to the joists with electric staples.
Make sure that the power is switched off before you start.
Even an inexpensive plug and cord has a marked neutral wire.
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.
See wiring a speed controller for wiring a rheostat to control fan speed.
If you wonder why you have to identify and connect the hot and neutral wires correctly in a lamp read on.
A two or three core cable.
3 way switch wiring diagram depicting all wires in the ceiling junction box.