Electrical – Bathroom light fixture above sink and ceiling fan/light combo wiring issue

electricalwiring

enter image description hereenter image description hereenter image description here

Hey so I'm having an issue hooking up a bathroom light fixture above the sink with a bathroom ceiling fan/light combo.

1) for the light fixture above sink: coming out of the wall there appears to be what is a white black ground and another white black ground. I tried doing black to black white to white ground to ground on the fixture but that resulted in a loud pop noise. I then used a voltmeter and found that one of the white black ground combos appears to have current only when the switch is on and the other has current all the time. In what order do I hook these up to get the switch to work? If I hook the light up to the hot all the time wire group the light works fine. But doesn't turn off.

2) similar issue with the light/ ceiling fan combo in the attic, I have 2 wire bundles, one with a black white pink and ground and one with a white black and ground. On the ceiling fan light combo unit I have e two wire pairs, a white and a blue, and a white and a black. I cannot seem to get this to power on at all.

Im thinking if I can even solve one of these two problems it will be much easier as these items are both wired to a triple switch one for fan, one for ceiling light, one for sink light.

Any help is appreciated as I really don't want to pay someone to come hook a few wires together. I'll be happy to take more pictures.

Best Answer

It sounds like you have your supply and a switch leg. The switch leg goes to the switch , normally you connect your hot to the white of the switch leg and Mark that white with black or some other color than green,gray or white. After that the white and black go to the switch. With the switch in the on position the black will now be hot , to connect your light use the black on the switch leg and the white from the hot cable. And of course grounds if available. When you had the white to white and black to black the pop you heard was a bad thing it may have damaged your switch, so if the switch is not working a replacement may be needed.