I am installing ceiling fans in a brand new home that had pre wiring for ceiling fans installed. The issue I am running into is I have two switches in my wall, one controls an outlet and one is a dimmer switch that controls the ceiling fan. The conduit for the ceiling fan has a wire coming out with black, red, white and ground. When I connect wires from the fan I connect the black to black for the fan, red to blue for light, white to white for neutral and grounds. The problem is the black wire is not powering the fan. The light works with the switch but will not power the fan. If I connect the black from the fan, blue from the fan to the red in ceiling I get power to both light and fan with the switch. My concern is that the dimmer now controls the lights and the fan which can burn up the fan motor. I don’t understand why the fan does not have power when connected to the black wire from the ceiling.
You need two separate switches in the wall, one for the fan and one for the light. The dimmer switch may be one which is rated for a light or a fan, you would have to determine that.
You could disconnect and remove the simple switch which controls the receptacle and connect the two wires so the receptacle is always on. Then use that spot for a dimmer switch that is rated to control a fan. On one side of that switch would be the hot feed and the output side would be the black wire going to the fan.
Alternatively, if you don't need a dimmer for the light you could use the simple switch for the light and the dimmer switch for the fan (assuming it is rated for a fan).
Another alternative is to leave the receptacle switch in place and connected as is and change the dimmer switch to a double dimmer switch that will control both the light and the fan. double dimmer switch