How to Replace a Traditional Switch with a Shelly Smart Relay – Step-by-Step Retrofit Guide
By Shelly Europe | Published: 2026-07-25
Category: How-to Guides
Learn how to retrofit a standard wall switch with a Shelly smart relay – wiring steps, no-neutral workarounds, and product picks for a seamless upgrade.
Replacing a traditional light switch with a smart relay is one of the most rewarding smart‑home upgrades. You keep the familiar wall switch but gain app‑based control, scheduling, voice commands, and (with some models) energy monitoring. Shelly relays are designed specifically for this kind of retrofitting: they are small enough to fit behind an existing switch or inside the wall box, and they work with almost any wiring setup – even older homes without a neutral wire.
In this guide we’ll walk through the entire process: from turning off the power and identifying wires, to connecting the relay, installing it in the box, and configuring it with the Shelly Smart Control app. We’ll also cover two popular models – the Shelly 2PM Gen4 List for two‑way switch setups or combined lighting and the Shelly PM Mini Gen3 List for a compact single‑switch solution with power metering – and explain when you might need an RC snubber to suppress electrical noise.
Why Retrofit Instead of Replace?
Many smart switches require swapping the entire wall plate or adding a bulky hub. Shelly relays sidestep those issues: they hide inside the existing backbox, work with your current switch (momentary or toggle), and connect over Wi‑Fi directly to your phone or home automation system. You don’t need a new switch plate, and you keep the same physical operation that everyone in the household is used to.
Moreover, Shelly relays support advanced features like energy monitoring, scene triggers, and integration with Google Home, Alexa, Home Assistant, and even KNX or Matter when paired with the right gateway. This makes them a future‑proof choice for any room. The retrofit process itself is straightforward – just a few wires and screws – and can be completed by anyone comfortable with basic electrical work. Always remember: safety first. Turn off the breaker and use a voltage tester before touching any wires.
What You’ll Need – Tools and Components
Gather a few basic tools: a flathead and Phillips screwdriver, voltage tester, wire strippers, and a small flashlight. For the relay itself, choose the model that fits your wiring scenario. The Shelly 2PM Gen4 List is perfect if you have two switches in one box (e.g., for a ceiling fan and light) because it offers two independent channels with power metering on each. If you only need to control a single circuit in a tight space, the Shelly PM Mini Gen3 List is one of the smallest relays Shelly makes – it fits in nearly any backbox and still provides real‑time energy monitoring.
You may also need a few extras: wire nuts or Wago connectors, a short piece of wire if the existing leads are too short, and an RC snubber if you’re controlling LED or CFL bulbs that may flicker when switched off. The RC snubber connects in parallel with the load and eliminates ghosting or buzzing without affecting normal operation.
- Always turn off the circuit at the breaker panel and verify power is off with a tester.
- Check your wall box depth: most Shelly relays require at least 35 mm of depth behind the switch.
Step 1: Remove the Old Switch and Identify Wires
Unscrew the faceplate and then the switch itself. Gently pull the switch out of the wall box to expose the wires. In a typical UK/EU installation you’ll see three wires: live (brown), switched live (black or a different colour going to the light), and neutral (blue). Some older homes omit neutral – we’ll address that in a separate section. Take a photo or label the wires so you can reconnect them later.
If you have an earth/ground wire (green/yellow), it should be capped and left unused unless you’re using a metal faceplate or a specific Shelly model that requires grounding. Most Shelly relays do not need an earth connection, but check the product manual. For the Shelly 2PM Gen4 List, note that both channels share a common live input, so you’ll need to bridge the L terminal if using two loads.
Step 2: Connect the Shelly Relay – With Neutral Wire
If your wall box has a neutral wire, the wiring is simplest. Take the incoming live (from the breaker) and connect it to the L terminal on the relay (or the L terminal for each channel on the Shelly 2PM Gen4 List). Connect the neutral to the N terminal. Then connect the switched live wire(s) – the one going to the lamp – to the O (output) terminal(s).
For the original switch, you have two options: wire it directly to the relay’s SW input (if you want the physical switch to toggle the relay on/off), or bypass the switch entirely and use the relay as a pure smart switch. If using the switch, connect one wire of the switch to the SW terminal and the other to the neutral or common – refer to the relay’s wiring diagram. The Shelly PM Mini Gen3 List has a dedicated SW input that works with both momentary and toggle switches.
- Use Wago connectors for reliable, push‑fit connections – no soldering required.
- Label all wires before disconnecting to avoid confusion later.
Step 3: Wiring Without a Neutral Wire (No‑Neutral Setup)
Many older installations lack a neutral at the switch. Shelly relays are designed to work in such scenarios using a bypass or a specific wiring method. For example, the Shelly PM Mini Gen3 List can be wired in a “no‑neutral” configuration by connecting the relay in series with the load. This works because a small current constantly flows through the bulb to power the relay – known as “parasitic power”. However, this can cause LED bulbs to flicker or stay dimly lit when off.
To prevent that, add an RC snubber (sold by Shelly as the RC snubber) in parallel with the bulb. The snubber absorbs the tiny leakage current and stops the flickering. Alternatively, use a bypass capacitor specifically rated for your bulb type. Always check the bulb’s minimum load requirement – some LEDs need a load of at least 2W to work reliably with a no‑neutral smart relay.
Step 4: Install the Relay in the Wall Box
Once all wires are connected and the terminal screws are tightened, carefully tuck the relay into the backbox. Make sure no bare wires touch the relay’s metal casing (if present) and that the antenna (on Wi‑Fi models) is not crushed. For the Shelly 2PM Gen4 List, which has a built‑in antenna, try to position it away from any large metal objects to maintain a strong Wi‑Fi signal.
Now mount the original switch back into the box, but be careful not to pinch any wires. Screw the switch in place, then attach the faceplate. Restore power at the breaker. The relay should power up – you’ll see its LED blink. If it doesn’t, double‑check the connections, especially the neutral wire. If the LED is solid, the relay is ready for setup.
Step 5: Configure via the Shelly Smart Control App
Download the Shelly Smart Control app (available for iOS and Android). Create an account or log in. Tap “Add Device” and the app will scan for nearby Shelly relays. Once detected, follow the on‑screen prompts to connect the relay to your Wi‑Fi network. Choose a name for the device (e.g., “Living Room Light”) and assign it to a room.
In the device settings you can choose the switch mode: momentary (push‑button) or toggle (standard rocker). You can also set power‑on defaults, create schedules, link it to your favourite voice assistant, and enable energy monitoring (available on both the Shelly 2PM Gen4 List and the Shelly PM Mini Gen3 List). Test the switch several times to ensure it toggles the light on and off without delay.
- Make sure your phone is on the same 2.4 GHz network as the relay during setup – Shelly devices do not support 5 GHz.
- Enable “Button Type” to match your physical switch: for a standard rocker choose “Toggle”, for a momentary bell press choose “Momentary”.
Troubleshooting Common Issues
If the light stays on after switching off, you may have a neutral‑less wiring issue – install a bypass capacitor or RC snubber. If the relay goes offline frequently, check for Wi‑Fi interference; try moving your router closer or adding a mesh node. If the physical switch doesn’t work as expected, verify that you wired the SW input correctly and set the correct button type in the app.
For the Shelly 2PM Gen4 List, ensure that both channels are not overloaded – the total current must not exceed 10A per channel. Also note that if you’re using the same switch for both channels (e.g., one rocker controls two lights), you may need to configure the switch as a single‑push input and use the app to set channel grouping.
Replacing a traditional switch with a Shelly smart relay is one of the most affordable and effective ways to modernise your home. With models like the Shelly 2PM Gen4 List for multi‑channel setups and the compact Shelly PM Mini Gen3 List for single switches, you can add intelligence to any room without changing your decor. If your wiring lacks a neutral, the RC snubber solves flickering issues and ensures reliable operation. Ready to start your retrofit? Explore our best‑value relay options at the Shelly Europe store and bring your lighting into the smart age.



