The red wire is connected to the opposite end of the switch box and to the black wire on the light back in the light box. This is called a pigtail.

How To Replace A Light Switch With A Switch Outlet Combo
How to wire a light switch and outlet together. In the third case the switch controls both the outlet and the light. Wrap wires clockwise around terminal screws wrapping the wire clockwise when wiring a light switch ensures that the loop on the end of the wire will tend to close when the screw is tightened. Wiring a light switch and outlet together diagram every electric structure is composed of various unique components. If you put the loop over the screw in the counterclockwise direction tightening the screw will force the loop open and could create a loose connection. How to wire up a electrical outlet to a light switch. Otherwise the arrangement will not function as it ought to be.
Diy electrical work duration. At the switch box the white neutral wires are spliced together and the ground wires are spliced and a pigtail wire is added and attached to the green ground screw on the light switch frame. Alternatively you can wire the switch up in such a way that only that single outlet will be controlled by the switch but other outlets in the circuit will still stay powered on constantly. Pig tailing is a process where a short wire is cut to lead from a connector to a connection at a cap. Joining these two black wires is the black with from the outlet or receptacle. A wire is then pig tailed to the switch.
Twist and cap the white wires connect all the ground wires to the ground screw and youre done. How to install a light switch to turn on a wall outlet. Connect the hot circuit wire to one of the black common terminals the hot load wire to the brass terminal and the pigtailed white wire to the chrome terminal. Each component should be set and connected with different parts in specific manner. Connect the ground wires to the ground terminal. After identifying the line and load terminals on the switch remove the wire going to the light fixture twist it together with the wire going to the outlet add a jumper wire cap them and attach the jumper wire back to the switchs load terminal.
To do this you have to join together the black wires neutral wires and ground wires so that you have one connection for each using pigtails.