0
Guides

Two-way switch with Shelly: where to install the device and how to set it up

November 24, 20265 min read

A two-way switch is two switches that turn the same light on and off, for example at the bottom and top of the stairs, at both ends of a hallway, or by the door and by the bed. Itโ€™s one of the questions we get most often: can a two-way switch be made smart? Yes, and usually with the existing wiring. This guide explains where to install the device, what to set in the app, and which device fits.

Important: the connection must be made by a licensed electrician only. Two-way switch wiring differs a little in every home, and the electrician checks it before installation.

Where to install the device

One Shelly device is enough for each two-way switch. Install it in the wall box of the switch where the switched live to the light leaves, the wire that goes to the light fixture. The device output connects to that wire and powers the light. This wall box also needs a live, and for most models a neutral too. No neutral? Some models work without one, see the table.

  • Both switches stay. They no longer carry the lightโ€™s power; instead they send the device a โ€œpressโ€. The device is what turns the light on and off.
  • The device output powers the light, so you can also control it from the app, with schedules and by voice.
  • Usually no new cables. The connection uses the wires that already run between the two switches.

The key setting: switch type โ€œEdgeโ€

You must set the switch type to โ€œEdgeโ€. After installation, open the device settings in the app and under switch type choose edge switch (Edge). Without this setting the light wonโ€™t work properly from both switches.

Settings in the app:

  • Switch type: edge switch (Edge). Every change in the position of either switch toggles the light, no matter which way the switch is facing. This way both switches work as before, even after you turned the light on or off from the app.
  • Power-on default: restore last state, so that after a power outage the light returns to the state it was in.
  • Do you have a push button (a button that springs back) instead of a regular switch? Choose Momentary instead of Edge.

If the light behaves โ€œbackwardsโ€, for example it turns on from only one of the switches, the Edge setting is almost always missing.

Which device fits

Whatโ€™s in the wall box Device
Neutral present, one light Shelly 1PM Gen4, or 1PM Mini Gen4 for a crowded wall box
Neutral present, two lights on two two-way switches Shelly 2PM Gen4
No neutral in the wall box Shelly 1L Gen3, or 2L Gen4 for two lights
You also want dimming Shelly Dimmer Gen4

Without a neutral, when the LED bulbs draw less than 20 watts, add a Bypass in parallel with the light.

Wiring diagrams by model

Choose your model and the diagram will change. The principle is the same in every diagram: the live goes to the common terminal of two-way switch 1, the two traveler wires stay between the switches, and the common terminal of two-way switch 2 connects to the device input. On the 1L, which works without a neutral, the Sx terminal goes to the common of two-way switch 1 instead of the live.

Shelly 1PM Gen4 two-way switch wiring diagram: live to the common of two-way switch 1, two traveler wires, the common of two-way switch 2 to SW, output O to the light fixture
Shelly 1PM Mini Gen4 two-way switch wiring diagram: live to the common of two-way switch 1, two traveler wires, the common of two-way switch 2 to SW
Shelly 2PM Gen4 wiring diagram for lighting with a two-way switch: live to the common of two-way switch 1, the common of two-way switch 2 to S1, light fixture on O1
Shelly 1L Gen3 no-neutral wiring diagram with a two-way switch: Sx to the common of two-way switch 1, two traveler wires, the common of two-way switch 2 to S1, Bypass in parallel with the light fixture
Shelly 1PM Gen3 two-way switch wiring diagram: live to the common of two-way switch 1, two traveler wires, the common of two-way switch 2 to SW
Shelly 2PM Gen3 wiring diagram for lighting with a two-way switch: live to the common of two-way switch 1, the common of two-way switch 2 to S1, light fixture on O1

Have an older model, such as Plus 1PM, Plus 2PM or 2.5? They also have two-way switch wiring diagrams in the knowledge base.

You can also skip the second switch

Want to add a control point where thereโ€™s no switch, for example by the bed? Instead of pulling wires to an extra switch, stick a wireless button on the wall, such as Shelly BLU Button Tough 1 or Shelly BLU RC Button 4, and set it to turn the same light on and off. The button talks to the Shelly device in your home over Bluetooth, and runs on a battery, with no power and no wires.

Frequently asked questions

Do I need a device in each of the two switches?
No. One device, in the wall box where the switched live to the light is, controls the light from both switches.

After installation the light turns on from only one of the switches.
Check in the app that the switch type is set to โ€œEdgeโ€. If itโ€™s set correctly, the electrician checks the wiring of the second switch.

I have three switches for the same light (two-way plus intermediate).
Itโ€™s exactly the same as a two-way switch. The intermediate switch stays in the middle, between the two two-way switches, and its wiring doesnโ€™t change. The device is installed in the wall box where the switched live to the light leaves, and in the app you set the switch type to โ€œEdgeโ€. This way each of the three switches turns the light on and off.

Can I schedule a two-way switch light?
Yes, like any light with Shelly: schedules by time, by sunset, or voice control.

Need help with installation or setup?
Ask us, book an electrician who knows Shelly devices, or plan your home for free.