Electrical – Why does a single switch on the wall control only the fan on the ceiling fan

ceiling-fanelectricallight-fixture

I have a Harbor Breeze fan where the light switch only controls turning the fan on and off. You have to pull the chain to turn the light on. Both pull chains work fine. There is no remote control.

What is wrong? Is the wiring wrong? Could the wrong black wire be connected to the blue and the wrong black to black?

ceiling wires
ceiling wires pic 2

Best Answer

Answer:. Now fixed. Tan and white were neutral wires ( hooked together correctly) The blue wire (light hot wire) from fan was not hooked to hot wire coming out of box. Just disconnected small black wire from blue (capped it off) then connected blue wire to the black coming from ceiling. Now light and fan can be controlled by switch or pull chains!!!