Can someone tell me how to properly wire a ceiling light in the following situation:
I have a ceiling fixture with 3 pairs of wires coming in to it, plus a single red wire.
I have determined that:
A. One black and white pair + the red goes to the wall switch B. One black and white pair goes to a wall outlet C. One black and white pair is coming from the breaker ("C" is an assumption I haven't tested that yet)
When I flip the breaker for this fixture, the adjacent bathroom and the next bedroom lose power. My guess is they are fed from the "B" wall outlet
When I removed a ceiling fan from this fixture All the black wires are taped together, and all the white wires are taped together. At the switch the black wires are tied together with one wire coming from that bundle and going to the switch. The white wires were all tied together. The red wire is connected to the switch. HOWEVER in the 8 years we've been in the house, the switch never controlled the ceiling fan or any of the wall outlets (the house is 66 years old).
Can someone tell me if it is possible to safely wire this switch and ceiling fixture so that the switch controls the light, the wall outlet in the bedroom with the ceiling fixture is always hot, and the adjacent bathroom and bedroom are always hot, too. If this is possible, what do I need to do?
Thanks in advance for any assistance you can offer.