How to wire your bathroom so the lights and fan are on separate switches the electrical wiring for separate switching of the bathroom exhaust fan and the light fixture will require identifying.
Exhaust fan and light on separate switches.
The power source will either.
If the existing wiring has only 1 switch for control and the power comes to the switch first then you can only control power to the ceiling fan assembly via the switch and you have to control the fan and the light with the pull chain switches when the wall switch is on.
The key factor is to understand where the power source enters the circuit.
Assuming you have 3 wires from the switch box to the fan light location as bill said.
Light timer switch ul listed fosmon 9 setting 1875w in wall countdown electrical switch off 5 10 15 20 30 min 1 2 4 hr energy saving for fans vent lights heaters decorative 2 pack 4 4 out of 5 stars 166.
Connect two of the black.
Connect the two white wires in the switch box together with a wire nut.
The wiring instructions for your new hunter fan differ slightly based on the type of wall switch and your fan s control system pull chain remote control etc.
Then this is what you do.