I have red blue black white and copper(ground) coming out of my bathroom ceiling. I'm hooking up a fan light combo with 2 black 2 white and two green wires. I need to know which wires go to which?
A bathroom overhead light position commonly has 3 separate loads in it:
- Overhead light
- Heat lamp or air blast heater
A perfect cable
The electrician who installed this did an excellent job future-proofing, going out of his way to use the rarely-seen 12/4 or 14/4 cable. This is perfect for a bathroom overhead light, because it provides all the wires you'll ever need, in one cable: black, red and blue are "hot" wires for all 3 of the above loads. White is a shared neutral, and ground is ground of course.
You can choose colors as you please, or as the bathroom switches are already wired. You can tighten the wire-nut not-so-tight to hold wires together for testing, or pop the cover off the bathroom switch and see how that's wired.
One of your wires will not be used; if it's not already capped, just put a wire-nut on top of it and tape the wire-nut onto the wire so it doesn't fall off (as they're prone to with only one wire).
All the neutrals get tied together.
Why does the fixture give two white wires?
They are both neutral. One is the neutral for the lamp, and the other is the neutral for the fan. This gives you the flexibility to feed the lamp and fan from separate circuits (in that case the neutrals would need to be separated.)
I'd use a voltage tester to find out if any of the black, blue & red in the ceiling is permanently hot or is turned off by a switch somewhere nearby.
Then I'd wire the appropriate wires depending on which switch I wanted to control the fan and which the light
Some (many? most?) fan and light combos have a pull-switch on the unit or a wireless remote control, I suspect that might not be the case here as you have two complete sets of wires. If it is the case and you want that switch/remote to solely control whatever it controls, you need to connect the relevant black to a permanent hot wire (which would also be black in a rational world but I'd check with a voltage tester).
Using the type of connector pictured below makes it easier to try out connections to see which black is fan and which light (or some other funky combo - see instructions for fan/light unit). Otherwise you might be having to make and remake connections with wire nuts - which I suspect is annoying.
I don't live in a part of the world that uses those wiring colours or which has much use for ceiling fans, so take my advice with a pinch of salt.