In our garage we have a switch that controlled a light in the ceiling for a small laundry room. I have torn out that room and, in doing so, removed two lines coming down from the garage attic. When I went up into the attic to pull up those two lines I found a junction box that included the line coming from the switch that was connected to the ceiling light and also to two other lines powering another ceiling light and two other switches on the other side of the garage.
I pulled the wiring from the box and disconnected it all (and didn't take a pic before doing so) so I could remove the new unneeded lines and intended to simply re-wire as found to return everything to working order.
However, after connecting all the blacks, all the neutrals, and all the ground, the switch that controlled the light in the laundry area no longer controls the light. When the switch is in the off position, the ceiling light is on and stays on until I flip off the breaker. The switches and ceiling light on the other side of the garage work properly.
I have tried multiple ways to re-wire the switch and the lines in the attic but to no avail, including installing a new single-pole switch.
I think the problem, in part, is related to the panel hot line and the hot wire on the line going into the ceiling/attic are pigtailed, which I think means that the line going into the ceiling is always powered on.
Appreciate any help you can provide...