Connecting Ceiling Fan to Wall Switch
I replaced a ceiling fan in one of my bedrooms, in the process of removing the old fan, some of the wires got loose, so I was not sure how to hook up the new fan. I have 3 white and 4 black wires coming out of the ceiling of the bedroom, I connected all black in the ceiling to the black wire on the fan and all white in the ceiling to the white on the fan, everything works fine except the wall switch does not turn anything off, so when you come into the room you have to pull the light switch on the ceiling fan to get the light to come on, which comes on whether the wall switch is on or off. I want to know how to make the light come on when the wall switch is in the on position. It seems I inadvertently bypassed the wall switch and I don't want to do that. How do I tell which of the wires are the wall switch wires, they all look the same. And do both wall switch wires go to the ceiling? Why do I have so many wires coming out of the ceiling? If both black and white wires from the switch go to the ceiling, do I attach the black wall wire to the rest of the black wires and white wall wire to the rest of the white wires? Some where I read that both wires coming out of the wall switch are hot, does that mean they both need to be attached to the black house wires?