Your power supply line the black wire should be feeding both switches and those switches power the fan black or the light blue. This wiring diagram illustrates the connections for a ceiling fan and light with two switches a speed controller for the fan and a dimmer for the lights.
How To Wire 3 Speed Fan Switch
Wiring fan and light to separate switches. You can install a ceiling fan with a light in a room with a single light switch with a simple wiring trick. Wire the new fan. The key factor is to understand where the power source enters the circuit. Second remove the light fixture in the room. Make sure the box is rated for a ceiling fan. To do this method the wire from your wall circuit to your light has to have 3 wires.
The power source will either enter at the switch box or up at the light fixture or the exhaust fan. The electrical wiring for separate switching of the bathroom exhaust fan and the light fixture will require identifying the existing circuit and existing switch wiring. 3 wire cable from 2 nd ceiling outlet down to the second 2 gang box for fan light control. 3 wire cable switch legs from first ceiling outlet down to a 2 gang box for the first set of switches for ceiling fan light control. You can then place the old fan out of the way. First turn off power to the fixture at the electrical panel.
Wiring a ceiling fan is as easy as connecting color to color. This means that you will have black red white and bare. The source is at the switches and the input of each is spliced to the black source wire with a wire nut. I will show only the first ceiling fan and control. The hot wires are either black or red the white wires are neutral and the bare one is the ground. Attach the red and black wires from the fan light unit to the top terminal screws on the switches.
From the switches 3 wire cable runs to the ceiling outlet box. The ceiling fan with two switches will have two sets of wires. Connect two of the black pigtail leads to the black wire coming from the receptacle. Wiring ceiling fan and light with separate switches this method allows you to operate the fan and light power separately. Here is a diagram to show how this circuit will be connected.