I am trying to wire a separate light into a light switch by connecting the wires into the switch, along with the ones already in there connected to our main light fixture. The problem is we have two light switches that control the same light, so the polarity is funky. The switch I am trying to wire it into has a black and a white on the right side, and a red on the other side. From what I know, the red wire is what passes electricity to the other switch depending on which switch is activated at any moment in time. I've tried every combination of wires into the switch, and what's happening is the secondary light will turn on when the main light is off, and vice versa.
That being said, what is the best way to get this to work? What am I missing? Any help is appreciated!