Calculator Ecosystems

Shelly wiring diagrams, terminal by terminal

Wiring diagrams for every Shelly relay we stock, and what each terminal actually does. Pick the job, pick the relay, and you get the same diagram that sits on the product page.

By Synced Updated 2 September 2026 10 min read
Question 1 of 2

What are you wiring?

The explorer above asks what you are trying to do first, then which relay you are using, and draws the wiring for that pairing. It is the same diagram that sits on that relay's own product page, from the same data, so the two can never drift apart.

The rest of this page covers the same ground in words, because a diagram is only useful once you know what its labels mean.

Everything electrical below comes from Shelly's own knowledge base, and where Shelly publishes an Australian page for a model, that is the one we have used. The four Gen4 relays have ANZ pages. The Gen3 models are published without a region, so those are what we have worked from for them. The distinction matters: for the Shelly 1 Gen4, the European page lists 24-48 V and 12 V DC supply modes that the Australian device does not have, and quoting the European figures here would be wrong. One wording note: Shelly's legends label the supply conductor "Live", and we call it the active, which is the Australian term for the same wire.

What each terminal does

L and N, the supply

These power the relay itself, at 110-240 V~ on the Gen4 models. Shelly's spec sheets for the 1 Gen4 and 1PM Gen4 answer the line "neutral not needed" with "No", and the rest of the range apart from the 1L has an N terminal on the strip, so plan on a neutral being present at the relay. Some models carry more than one of each: the 1PM Gen4 strip has three L terminals and two N, and the 2PM Gen4 has two L and one N.

O, the load circuit output

This is the switched active conductor that goes out to the light or appliance. The 2PM has two of them, O1 and O2, one per channel.

I, the load circuit input

Only the Shelly 1 and the 1 Mini have this terminal. On those two the relay contact is potential-free, which Shelly also calls volt-free or a dry contact: in Shelly's own words the output carries no voltage or current from the relay itself, so whatever you connect across I and O is joined or separated and nothing more. In the ordinary lighting job our diagram bridges I from L, so the contact switches mains. In the garage door job it doesn't, and that is what the terminal is for.

SW, the switch input

Shelly's legend describes SW as controlling the O output. The existing wall switch lands here, so the switch on the wall keeps working alongside the app. One thing to be blunt about: in every diagram on this page the wiring to the wall switch is fed from the active conductor, so SW sits at mains potential. Treat it as a mains terminal, not as an extra-low-voltage signal wire. The 2PM calls its two switch inputs S1 and S2. The 1L uses S1 and S2 as well, plus an Sx terminal that sends the switch signal back out to the wall switches.

ModelSupply terminalsOutputSwitch inputPotential-free contact
Shelly 1 Gen3 L, N, plus its own 12 V and 24-48 V DC terminals O SW Yes via I
Shelly 1 Gen4 L, N O SW Yes via I
Shelly 1 Mini Gen3 L, N O SW Yes via I
Shelly 1 Mini Gen4 L, N O SW Yes via I
Shelly 1PM Gen3 L, N (three L, two N), which also take 24 to 30 V DC O, metered SW No
Shelly 1PM Gen4 L, N (three L, two N) O, metered SW No
Shelly 2PM Gen3 L, N (two L, one N), which also take 24 V DC O1, O2, metered S1, S2 No
Shelly 2PM Gen4 L, N (two L, one N) O1, O2, metered S1, S2 No
Shelly 1L Gen3 L only O S1, S2, with Sx out No

The Gen3 models can run on a DC supply as well as mains, and the Gen4 ones sold here can't. On the 1PM and 2PM that isn't an extra pair of terminals: the same N and L screws take the DC supply instead, N as the positive and L as the negative. Only the 1 Gen3 has DC terminals of its own. The diagrams show the AC arrangement throughout, which is what nearly every Australian installation uses.

The six jobs

Switching a light or appliance

The common one. Mains comes in on L and N, O carries the switched active conductor out to the light, and the wall switch lands on SW. On the Shelly 1 a short bridge from L feeds the I terminal, because the contact needs something to switch. On the 1PM there is no bridge to make, and the relay meters the circuit on the way through.

Switching a light with no neutral

This is the 1L Gen3, and it is a different drawing rather than a variation. There is no N terminal on the relay. It powers itself through the load circuit, and Shelly's own note is that an LED light on it needs a Shelly Bypass wired across the lamp, while an incandescent lamp does not. The Bypass is in the box. The 1L is rated at 200 W and takes incandescent and LED lamps without step-down transformers, so it suits a light rather than an appliance. Sx loops the switch signal out to the wall switches on S1 and S2, so an existing one-way or two-way arrangement keeps working. The neutral hasn't gone anywhere in this job, it just doesn't come to the relay.

Switching two lights

This is the 2PM. Each channel is its own switched and metered circuit: O1 to the first light, O2 to the second, with the wall switches on S1 and S2. Mains comes in once on L and N and feeds both. The rating is per channel and shared: 10 A on each output, 16 A across the relay.

Pulsing a garage door opener

The job the potential-free contact exists for. The opener wants a brief connection across the two terminals its own push button uses, and nothing else. I and O run as a dry contact across those terminals, with no mains passing through them, while L and N power the relay alone. The pulse length is set in the Shelly app. A push button can go on SW if you want a physical trigger as well.

Driving a roller shutter or awning

This puts the 2PM in cover mode, where it drives the motor one way at a time. One output winding opens and the other closes, which is which comes out in calibration, and the motor's common returns to neutral. S1 and S2 take optional open and close buttons. Shelly's advice is to use a motor with electronic or mechanical limit switches, and to have those set correctly before the relay is connected to it.

Metering an appliance

This is the 1PM wired exactly as it would be to switch a light, and the wiring is not what you are here for. Put a heater or a towel rail on O and the relay reports what it is drawing and what it has used, with the switching as a bonus. Anything with a motor in it counts as an inductive load, which Shelly's supported-load list qualifies as needing an RC snubber, so that is a detail for your electrician rather than an afterthought. If you want the measurement without the switching, the energy monitors are built for that job instead.

Which relays we have drawn

Nine relays have diagrams today: the Shelly 1, 1 Mini, 1PM and 2PM in both Gen3 and Gen4, plus the 1L Gen3.

Two groups aren't drawn yet, and neither is a comment on the hardware. The Pro range mounts on a DIN rail in the switchboard rather than behind a wall switch, so it needs a different body drawing rather than another scenario on an existing one. The 1PM Mini Gen4 hasn't been drawn yet. Both are on the list, and a relay having no diagram here doesn't make it harder to install or a worse choice for the job. If the model you are looking at has no diagram, ask us and we will get you the manufacturer's own.

If you are still choosing between models rather than working out how to wire one, Which Shelly do I need? covers that, and what a Shelly is rated to switch covers the loads. The whole range sits on the Shelly relays page.

Who can do this work

Frequently asked questions

How do you wire up a Shelly device?

Supply goes in on L and N, the switched active conductor comes out on O, and the existing wall switch lands on SW. That covers most of the range. The variations are the 2PM, which has two outputs and two switch inputs, the 1 and 1 Mini, which add an I terminal for potential-free switching, and the 1L, which takes no neutral. Pick the job and the relay in the explorer above to see the diagram for your combination.

Does a Shelly need a neutral wire?

Most of them do. Shelly's spec sheets for the 1 Gen4 and 1PM Gen4 answer "neutral not needed" with "No", and every model on this page except one has an N terminal on the strip. The exception is the 1L Gen3, which runs on an active conductor alone.

What does the SW terminal do?

Shelly's legend calls SW the switch input controlling the O output, which is what lets the wall switch you already have keep working after the relay goes in. In every diagram here the wiring to the wall switch is fed from the active conductor, so SW sits at mains potential and should be treated as a mains terminal rather than a signal one.

What is a potential-free contact on a Shelly?

It means the relay contact carries no voltage or current of its own. On the Shelly 1 and 1 Mini, I and O are the two sides of that contact, so connecting them across a garage opener's trigger terminals joins and separates them without putting mains into the opener. No other relay on this page has an I terminal: the 1PM and 2PM outputs are metered instead, and the 1L has neither.

Can you wire a Shelly without a neutral?

Yes, with the 1L Gen3, which is built for it. It takes only an active conductor, and an LED lamp on it needs a Shelly Bypass across the lamp, which comes in the box. It is rated at 200 W and supports incandescent and LED lamps without step-down transformers, so it suits a light rather than an appliance.

Can I install a Shelly myself?

Not the in-wall relays, which all connect to fixed wiring. In Australia that's a job for a licensed electrician, to AS/NZS 3000. Use these diagrams to plan the job, then hand them to your electrician.

Still need a hand?

We answer most messages within one business day. If your question is about an existing order, have your order number ready. It speeds things up.

Contact us