I have a pair of three way switches at the ends of my hallway that control a ceiling light and I'm working to replace them with new switches. I pulled out the old switch and put all the wires back on the same terminals on the new switch, but when I turned the breaker back on, neither switch was turning on the light. I did some research and figured it was probably caused by wiring the new switches incorrectly. The old switches didn't have any indication for which terminal was the common one (there was no black screw terminal or label or anything else) which I'm guessing contributed to me wiring it wrong. I've tried swapping some of the wires around to different terminals but so far I keep getting different results, with none of them being correct. The wiring coming into the boxes is a little confusing so I'm hoping to figure out the best way to find which wire goes where without having to go through trial and error. Here's the way the wiring currently looks:
There is one wire bundle coming in with a black, white, red, and ground. The ground wire was terminated to the box, and the black, white, and red wires went to the switch terminals.
There are two wire bundles coming in. One bundle has a black, white, red and ground and the other has a black, white, and ground. The two grounds are twisted together and terminate in the box. The two white wires are twisted together with a wire nut. The two black and one red wires went to the switch terminals.