# Two switches, one turns both lights on, the other just one of them

I have two separate lights in a room. And two separate switches (actually one switch and one motion sensor). I want one switch to turn both lights on, and one switch to turn just one of the lights on.

As a truth table:

``````Switch 1   Switch 2   Light A   Light B
0          0          0         0
1          0          1         1
0          1          1         0
1          1          1         1
``````

My trouble is: Since Switch 1 has to turn on both lights, the "inputs" of both lights have to be connected. So if Switch 2 the sends power to Light A, Light B will also turn on since they are connected.

Is there an easy way to do this?

• Where are you on this planet, and how many wires can you run between the various boxes involved? Mar 31, 2019 at 12:11
• Also, is the motion sensor Switch 1 or Switch 2 in your truthtable? Mar 31, 2019 at 12:12
• I can run as many wires as needed. Switch 2 is the motion sensor. Mar 31, 2019 at 13:29
• Switch 2 needs to be a single-pole double-throw, called a "3-way" switch in the USA. Mar 31, 2019 at 13:32
• The power is coming from the first switch (double pole, turning on both lights). From there a cable with 5 wires is running to the motion sensor and lights. If I do it like this, I could use the 5 wires for ground, neutral, phase and the two switchable wires from the double pole switch running phase. No new wires needed, right? Mar 31, 2019 at 13:51