Ask question regarding lights and electrical
Hi I am removing my ceiling fan and putting in 4 recessed lights. I want 2 recess lights to have its own switch so I am putting in a Rocker double switch. When I removed the ceiling fan I see Blue/White/black/White, the blue and white was the connected to the ceiling fan and the black/white was just running across the box (looks like it might be going to another outlet). I removed the old single switch and I only see 2 blue connected to it, then the black/white is just running through the box. So I connected the 2 recessed lights to the blue and white wire in the ceiling to the existing wire. Then ran new wires to the other 2 recessed wire to the switch. Why is my switch working incorrectly? 1 switch turns on all 4 lights and the other switch turns off 2 recessed lights.