I added a light fixture to a ceiling fan. The ceiling fan was hooked up as instructed, but the single switch only operated the fan and not the light. I opened the light switch box and found two black wires going to a switch and a lone red cap. The black wires were coming from different wire bundles. There is a second switch that turns off and on a outlets in the same room. I placed the red wire on the top switch screw, and only the light worked. I switched the lower black wire with the other black wire (the one initially connected to the upper screw), and neither fan nor light work. What do I do to operate the light and fan with the single switch?
White coded wires in a bundle inside switch box as shown. This config only powered the fan and not the light. The other switch has a white wire up top and a red down low.