The Shelly Plus 1 is the benchmark Wi-Fi smart relay for retrofitting standard dumb switches into smart home endpoints. To wire it correctly on a standard US 120V AC, 15A or 20A branch circuit, you need to connect four terminals: L (Line in), N (Neutral in), SW (Switch input), and O (Output to load). Unlike smart switches that replace the wall toggle entirely, this relay sits behind your existing switch in the backbox, requiring a neutral wire and a specific pigtail topology to maintain both physical and app-based control.
Shelly Plus 1 Smart Relay Wiring Diagram: Terminal Map & Symbol Key
Before stripping any wires, you must understand the physical terminal block on the Shelly Plus 1. The device uses a spring-cage terminal block designed for 14 to 16 AWG solid copper wire. Below is the exact terminal mapping, diagram symbol translation, and NEC color code reference for a standard single-pole lighting circuit.
| Terminal Label | Diagram Symbol | Physical Pin Location | Function & Internal Path | US NEC Wire Color |
|---|---|---|---|---|
| L | Line / Phase | Pin 1 (Far Left) | Powers the relay MCU; acts as the common feed for the internal relay contact. | Black (or Red) |
| N | Neutral | Pin 2 | Completes the 120V AC circuit to power the Wi-Fi radio and internal logic. | White (or Gray) |
| SW | Switch Input | Pin 3 | Senses voltage from the physical wall switch to toggle the relay state. | Black (Switch Leg) |
| O | Output / Load | Pin 4 (Far Right) | Normally Open (NO) contact. When energized, connects internally to L to pass voltage to the load. | Black (Load Leg) |
Note: The Shelly Plus 1 does not have a ground (PE) terminal. The equipment grounding conductor must bypass the device entirely. See the trace below for proper bonding. For complete Gen2 hardware specifications, refer to the official Shelly Plus 1 Knowledge Base.
Node-by-Node Trace: Source to Load Wiring Path
A common failure point in smart relay installations is misidentifying the "line" and "load" wires in a crowded backbox. Follow this textual node-by-node trace to understand exactly how current flows from the breaker panel, through the Shelly, and to the light fixture.
The Power Feed (Source)
- Main Panel Breaker (15A/20A): 120V AC exits the breaker on a Black (Line) wire and travels through the NM-B cable to the wall switch backbox.
- Backbox Line Pigtail: The incoming Black wire is stripped and joined via a Wago lever nut or wire nut to two pigtails.
- Pigtail A goes to the L terminal on the Shelly Plus 1 (powering the device).
- Pigtail B goes to one of the brass screws on your physical single-pole wall switch.
The Switch Loop & Neutral
- Physical Switch to Shelly: A second Black wire leaves the other brass screw on the physical wall switch and lands on the SW terminal of the Shelly. When you flip the physical switch, it sends 120V to the SW pin, signaling the Shelly to toggle its internal relay.
- Neutral Path: The incoming White (Neutral) wire from the panel is wire-nutted with a single pigtail that lands on the N terminal of the Shelly. The main neutral bundle continues uninterrupted to the light fixture at the ceiling.
The Load & Ground Path
- Shelly to Fixture: A Black (Load) wire connects the O terminal on the Shelly to the black wire leading up to the light fixture. When the Shelly relay closes, 120V flows from L, through the internal contact, out of O, and to the light.
- Grounding/Bonding Path: The bare copper (or green) ground wire from the panel never touches the Shelly. It must be pigtailed directly to the metal backbox (if metal) and to the green ground screw on the physical wall switch. This ensures fault current has a low-impedance path back to the panel, satisfying NEC Article 250 grounding requirements.
The Shelly Plus 1 requires a neutral wire to power its Wi-Fi radio. If your older home's switch box only has a Line, Load, and Ground (a classic "switch loop" with no neutral), you cannot use the Plus 1. You must either pull a new neutral from the fixture, or switch to a no-neutral device like the Shelly Plus 1PM (which can sometimes operate via capacitive bypass, though this is highly dependent on load type) or a Zigbee/Matter switch designed for no-neutral topologies.
Step-by-Step Installation & Meter Verification
Do not rely on guessing wire identities based on color alone—previous DIYers often miswire backboxes. Use a digital multimeter (DMM) to verify every node before making permanent connections.
Phase 1: De-energize and Identify
- Kill the Power: Turn off the branch circuit breaker. Test the wires with an NCVT. The NCVT must remain completely silent when pressed against the bare copper of the black and white wires.
- Identify Line vs. Load (If power was just restored for testing): With the switch OFF and power ON, measure AC Voltage (V~) between the black wires and the ground bundle. The wire reading ~120V (acceptable range 114V-126V) is your Line. The wire reading 0V is your Load. Turn power back OFF before proceeding.
Phase 2: Termination
- Prep the Pigtails: Cut three 6-inch lengths of 14 AWG THHN or solid NM-B wire (one black, one white, one black). Strip 10mm (3/8") of insulation. The Shelly spring terminals require a precise strip length to avoid exposing bare copper outside the housing or clamping onto insulation.
- Connect Neutrals: Join the incoming white wire, the fixture's white wire, and your white pigtail. Connect the pigtail to Shelly N.
- Connect Lines: Join the incoming black Line wire with two black pigtails. Connect Pigtail 1 to Shelly L. Connect Pigtail 2 to the physical wall switch.
- Connect Switch & Load: Run a black wire from the second terminal on the wall switch to Shelly SW. Run a final black wire from Shelly O to the black Load wire going to the ceiling fixture.
Phase 3: Meter Verification (Before Tucking into Box)
Before pushing the relay into the backbox and restoring power, verify your switch loop integrity.
- Continuity Test (Power OFF): Set your DMM to continuity (the diode/sound symbol). Place one probe on the Shelly SW terminal wire and the other on the Shelly L terminal wire. Flip the physical wall switch ON. Your meter should beep and read < 1 ohm. Flip the switch OFF; the meter should read OL (Open Loop). This proves your physical switch is correctly wired to trigger the Shelly.
- Short Circuit Check: Place probes between Shelly L and N. It should read OL. If it reads near 0 ohms, you have a dead short and will trip the breaker instantly. Fix the wiring before energizing.
Dry Contact vs. Wet Contact: Configuration Edge Cases
While 95% of Shelly Plus 1 installations are "wet contact" (switching 120V AC to a light bulb), the device's internal relay is technically capable of switching low-voltage DC circuits, such as a 12V/24V garage door opener or a motorized damper. However, you must understand the internal topology to avoid frying the device.
| Configuration | Wiring Topology | Use Case | Risk / Limitation |
|---|---|---|---|
| Wet Contact (Default) | L and O share the same 120V AC source. O outputs whatever voltage is fed into L. | Standard 120V AC lighting, exhaust fans, receptacles. | None, provided load does not exceed 16A resistive. |
| Dry Contact (Advanced) | Shelly L and N are powered by 120V AC. The O terminal is fed by a separate isolated low-voltage source (e.g., 24V DC). | Garage door triggers, HVAC relays, 12V/24V DC solenoids. | High Risk: If you accidentally wire 120V AC into the O terminal while using a low-voltage load, you will destroy the load and potentially the Shelly MCU. The Plus 1 does not have physical galvanic isolation between L and the relay coil; it relies on correct wiring. |
For low-voltage dry contact applications where safety and isolation are paramount, consider using the Shelly Plus I4 (which is strictly an input device) paired with a separate isolated relay module, or a dedicated dry-contact module like the Shelly Uni. Always consult the Electrical Safety Foundation International (ESFI) guidelines when integrating smart home devices with mixed-voltage systems to ensure proper isolation and fire safety.
By following this exact terminal map and verifying your switch loop with a multimeter, your Shelly Plus 1 will provide years of reliable, low-latency smart control without compromising the physical usability of your wall switch.






