I'm replacing a light fixture in my house and am a bit confused about how the old fixture was wired.
There are two pairs of wires, 2 black, 2 white and 2 ground. The two black wires were capped off together and not hooked up to the old fixture at all.
The white and beige wire were connected two the old light I removed. I guessing one set of wires is power coming from the box and the other set is from the switch. The switch is a dimmer.
The light I bought has black and white wires. Any ideas on how to tell which ones to hook them up too?