A wiring diagram is a simplified conventional pictorial representation of an electrical circuit. It shows the components of the circuit as simplified shapes, and the power and signal connections between the devices.
White Black And Red Wires. Or it could be the red wire is the wire going to the fixture and the black wires are the live wires. No wire with any of those colors can be used for establishing a ground or neutral connection. These colors for hot wires are not mentioned in the nec but recommended and used by electricians as general practice.
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. The white wires on the fan go to the bundle of white wires. The ground wire also connects to the switch but the white wire gets spliced to the circuit neutral wire and bypasses the switch. The black wire goes to the bundle of black wires.
Red wires are also hot wires.
Red wires are also hot wires. 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. Hot when a white wire is augmented with a red or black color marking this often indicates that it is being used as a hot wire rather than a neutral wire. They may use other colors for. Then the red wire in your box goes to the non white wire on your ceiling fan which is often blue.