Ceiling fan with light installation
I recently took down a ceiling fan with light as it has a bad bearing. I bought a newer version of the same unit. When trying to install the new one, I ran into a wiring issue. Unfortunately, I did not pay attention to the wiring configuration when I removed the old fan.
There is only 1 cable to the unit from the wall switch - black wire / white wire / ground. The switch has 2 controls = 1 side switch for the fan and another for the light. The fan / light unit has a white wire, a ground and 2 black wires. Solid black to the fan and black with white stripe to the light. When I turn on the light switch, the white wire from the ceiling becomes energized. When I turn on the fan switch, both the white and black wire become energized.
Which wires from the ceiling do I connect to which on the fan / light unit?