Attach the black wire to the outlet you want to always be on usually the top one and the red wire to the switched outlet. Split the incoming hot wire into a y and connect it to a terminal on each switch.
![Electrical Wiring Color Codes](https://www.electronicshub.org/wp-content/uploads/2015/09/color-coding.jpg)
Electrical Wiring Color Codes
Red black green wires. Green green with a yellow stripe. Youll find black and red or orange wires connected to 220 volt appliances like electric water heaters well pumps and older electric ranges. Connect the red wire to the screw in. Connect the black wire to the screw located in swith 1. Consider all black wires to be live at all times. If the fan doesnt come on first make sure you have power then wire the red to the black and cap the red.
In 220 volt circuits red wires are the secondary live wires. Your house is set up for a fan with a light on itblack wire the fan you purchased seems to have no lightno black wire wire your fan red red white white green ground and cap the black wire. In the switch box. Tie a strong lightweight string to the wires and pull them through the conduit. Connect the white wire to either of the chrome screws remember they are still joined and the ground wire to the green ground screw. The standard ground wire color is either bare copper or green.
You can now screw the outlet to the box and proceed to the switch box. Since you only need two conductors to wire a 120 volt outlet you seldom see a red wire in the outlet box although there is no regulation that prevents an electrician from subbing a red wire for a black one. The colors regulated by the national electrical code in the united states are standardized for safety. Connect white wires together. Also black wires are often used as switch legs in circuits which is the connection linking a switch to the electrical load. Connect black fan wire to the black ceiling wire.
Try the switch after you wire it up. The different colors of electrical wires indicate the function of the wire with black and red indicating the wires carry electric current white usually indicating neutral charge and green indicating the wire is grounded. If you see a white wire marked with black or red or a piece of black or red electrical tape at its ends that means its acting as a hot wire and is no longer neutral. Use a screwdriver to loosen the red r yellow y and black b colored pump terminal lugs and disconnect the green ground from the box. Green electrical wires green wires connect to the grounding terminal in an outlet box and run to the ground bus bar in an electrical panel. This color of wire is used to transfer power to switches and outlets in all types of circuits.
Connect the blue wire to the red wire.