Wiring a switch for a light fixture electrical question. At the light it connects to the neutral terminal.

How To Wire A Light Switch Smartthings
How to wire a new light fixture and switch. Test your new light. Assemble your new light fixture following the manufacturers directions. Place the bare end of the black wire from the cable in the wall with the bare end of the black wire from the light fixture. This is hot wire and goes to the new doubles switchs hot side. The black wire is connected to the other terminal on the new switch and to the hot terminal on the new light. Take off the cover and note the color of the wire insulation for the wires that.
Return to your fuse box and reset the fuse for the room in which youve been wiring to restore the flow of electricity to the room. Strip the last one inch of your new black wire and place all three black wires together. Twist the wire nut onto the three wires to secure them. The hot from the switch loop is spliced with a pigtail to both switches. Take the white wire that is coming from the circuit the original line and the white wire from the fixture twist them together and tighten a wire nut over them. If you are going for a sperate single switch this hot wire will be used for powering both switches.
Now you can install a light bulb and turn on the new light fixture you have installed to test it out. In an existing ceiling box there is power coming in for a light and power going out to another room. Can i run a new line from a switch to turn the light on and still have power to the other room. The neutral wire from the switch loop is spliced to the new white wire. Grab your light fixture and twist the fixtures ground wire in with the other ground wires and secure them with a wire connector or wire nut. Strip the last one inch of the new white wire and place it next to the other white wires.
Twist the two ends together three or four times with a pair of pliers. Repeat the connection for the black wire from the junction box and the black wire from the fixture. Loosen and remove the screws from the cover for the light switch that operates the light using a screwdriver. You need to identify the wire that makes light up. Turn off the light and use voltage tester against each wire that is connected to switch. Unscrew the wire nut holding the two white wires together.
Connect the white wire from the light fixture to the white wire from the new ceiling junction box by twisting an orange wire connector to both wires. New 2 wire cable is run from the switch box to the new light fixture location. Two wire cable runs from the combo to the light fixture and the switch output is connected to the black wire running to the fixture hot terminal. The source neutral wire is spliced to the neutral on the receptacle half of the combo device and to the white cable wire running to the light.