Fixing a $1000+ wiring problem with $40 in parts: The Technical Info
Share
A walkthrough of a real installation: adding a Shelly 2.5 UL and a Shelly 1PM UL to a bathroom so the shower fan, shower light, and vanity light can be controlled locally - with no Home Assistant, no Shelly app, no cloud, and no house Wi-Fi. The only network that exists is the one the Shelly i3 creates, and all communication is direct device-to-device HTTP over that local subnet.
The setup
The bathroom had three things to control: a vanity light, a shower light, and a shower exhaust fan. The only wall box was a single-gang switch box, so:
- The Shelly 2.5 UL (two relay channels) runs the shower exhaust fan (relay 0) and the shower light (relay 1).
- The Shelly 1PM UL (single relay, with power measurement) runs the vanity light (relay 0).
- The Shelly i3 sits nearby, is wired directly to the wall switch, and provides the Wi-Fi access point the other two Shellies join in client mode. It's the only "network" in the picture, it runs no integrations and talks to no cloud.
The wall switch is a Leviton Decora 15 Amp 3-Rocker Combination Switch - one rocker per load. It's a single-gang form factor, so it fits the box, and pretty much any 3-rocker (or three separate single-rocker) switch would work for this.
Safety first
Turn the breaker off for the circuit and verify there's no power with a non-contact tester or multimeter before touching any wires. This is 120 V work - if you're not comfortable with it, get an electrician.
Wiring overview
The Leviton has a common (line) terminal on the switch, so there's only one hot wire to connect. That single hot feeds the Leviton's common and is also jumpered to the Shelly i3's L terminal, which powers the Shelly i3 from the same circuit (no USB, no battery). Each rocker's load side goes to one of the Shelly i3's inputs (I1, I2, I3). The Shelly i3 then communicates wirelessly with the Shelly 1PM UL and Shelly 2.5 UL - when a rocker changes state, the Shelly i3 sends a REST call to the corresponding relay.
| Switch / supply part | Connects to |
|---|---|
| Single constant hot (supply) | Leviton common (line) terminal, and jumpered to Shelly i3 → L |
| Neutral (supply) | Shelly i3 → N (with the other neutrals) |
| Rocker 1 (vanity) — load side | Shelly i3 → I1 |
| Rocker 2 (shower light) — load side | Shelly i3 → I2 |
| Rocker 3 (shower fan) — load side | Shelly i3 → I3 |
| Fan green ground | With the other grounds (box ground screw) |
(The rocker-to-input assignment is arbitrary - map them however you like and just keep the table consistent with your physical switch.)
Note that the wall switch is simply an input into the Shelly i3, so it does nothing without the Shelly i3 being powered.
Shelly 2.5 UL - terminals and connections
The Shelly 2.5 UL has two relay channels, each with its own switch input (SW) and switched output (O). It has no ground terminal. In this install, the SW inputs are left unconnected -the rockers reach the relays through the Shelly i3, not through direct wiring. Every terminal and what goes on it:
| Terminal | Connect to |
|---|---|
| L (×2 terminals) | Constant hot (line). Either terminal works, they're internally connected. |
| N | Neutral: all neutrals together (shower fan white, shower light white, and any other neutrals in the box). |
| SW1 | Unconnected: fan is switched in software by the Shelly i3. |
| SW2 | Unconnected: shower light is switched in software by the Shelly i3. |
| O1 (relay 0) | Shower exhaust fan motor hot (black wire from the fan). |
| O2 (relay 1) | Shower light hot (black wire from the light). |
Shelly 1PM UL - terminals and connections
The Shelly 1PM UL is a single-channel relay with power measurement. It has no ground terminal, and its SW input is unconnected because the wall switch isn't physically wired to it - the Shelly i3 switches its relay in software.
| Terminal | Connect to |
|---|---|
| L1 | Constant hot (line) from the supply. |
| N | Neutral: with the other neutrals. |
| SW | Unconnected: switched in software by the Shelly i3. |
| O (relay 0) | Vanity light hot. |
The power and energy figures aren't displayed anywhere by default (no Home Assistant), but they're available on demand: GET /status on the Shelly 1PM UL reports power, power_factor, energy, etc., or just look at its web interface.
Shelly i3 - inputs and outputs
The Shelly i3 is powered from mains L and N — no USB-C, no internal battery — and has three dry-contact switch inputs (I1, I2, I3) for the wall switch:
| Terminal | Connect to |
|---|---|
| L | Constant hot (jumpered from the same hot that feeds the Leviton common). |
| N | Neutral — with the other neutrals. |
| I1 | Load side of the vanity rocker. |
| I2 | Load side of the shower light rocker. |
| I3 | Load side of the shower fan rocker. |
| Wi-Fi access point (output) | The AP the Shelly 2.5 UL and Shelly 1PM UL join in client mode. This is the entire network. |
Each input is configured on the Shelly i3 so that a state change triggers a REST call to the corresponding relay on the Shelly 2.5 UL or Shelly 1PM UL.
Physical install notes
- Plan for a junction box, not the switch box. The bathroom only had a single-gang box, which the 3-rocker switch fills. The Shelly 2.5 UL is a full-size DIN-rail module (roughly 128 × 63 × 25 mm), so both the Shelly 2.5 UL and the smaller Shelly 1PM UL went in a nearby junction box with the fan and light wiring.
- Fans are inductive loads. Most small bathroom fans work fine, but if you get clicking or unreliable switching later, you may need a small RC snubber across O1 on the Shelly 2.5 UL.
Getting the Shellies onto the Shelly i3's network
The Shelly i3 was set to static IP 192.168.33.1, the Shelly 2.5 UL to 192.168.33.10, and the Shelly 1PM UL to 192.168.33.11. The Shelly 2.5 UL and Shelly 1PM UL were set to Wi-Fi Client mode and pointed at the Shelly i3's access point.
Why the Shelly 2.5 UL disappears from your Wi-Fi list: when it in Client mode successfully joins the Shelly i3's AP, it no longer broadcasts its own AP. The Shelly i3 becomes the network backbone, and the Shelly 2.5 UL appears as a client on the Shelly i3's network.
Enable the Shelly i3's access point
A common gotcha: the Shelly i3 may not have its AP enabled at all. If so:
- Connect to the Shelly i3's AP and open its web interface at http://192.168.33.1.
- Go to Settings → Access Point: enable the AP and set a password (recommended). Note the SSID.
- Save and reboot the Shelly i3 when prompted.
Unlike the other Shelly APs, the Shelly i3 has no Range Extender mode — and none is needed.
Verify the join
There's no client list to check on the Shelly i3, so verify the join directly:
- Ping the device's IP (192.168.33.10 for the Shelly 2.5 UL, 192.168.33.11 for the Shelly 1PM UL) from a phone connected to the Shelly i3's AP.
- Open the device's web interface at that IP — if it loads, the join succeeded.
- If it doesn't respond, the join failed: hard-reset the device (hold its reset button ~10 seconds, or cycle power several times), reconnect to its own AP (it reappears as
shelly25-XXXXXXorshelly1pm-XXXXXX), and reconfigure Wi-Fi Client with the Shelly i3's SSID and password. Prefer letting it get a DHCP address first, then set the static IP.
Control: physical switch, REST, and web interfaces
With no app, no Home Assistant, and no cloud, control comes from three places:
- The 3-rocker wall switch, wired to the Shelly i3's inputs. The Shelly i3 detects each rocker's state change and calls the corresponding relay on the Shelly 2.5 UL or Shelly 1PM UL — so the rockers work, but through the Shelly i3 rather than by direct wire.
- Direct HTTP requests between devices on the 192.168.33.x subnet. Any device on the Shelly i3's network can call a Shelly's REST API. You don't need the Shelly 2.5 UL's or the Shelly 1PM UL's own AP; the Shelly i3's AP is just the backbone carrying the traffic.
- Each device's web interface (http://192.168.33.10 for the Shelly 2.5 UL, http://192.168.33.11 for the Shelly 1PM UL, http://192.168.33.1 for the Shelly i3), reachable from any device on the subnet — for reading status and making any configuration changes.
Shelly relays are 0-indexed: on the Shelly 2.5 UL, the shower fan is /relay/0 and the shower light is /relay/1; on the Shelly 1PM UL, the vanity light is /relay/0. To switch the fan from another device on the subnet:
POST http://192.168.33.10/relay/0?turn=on
GET /status and GET /settings work the same way on each device.
Future: humidity-based fan control
Because the shower fan is behind a relay that answers to plain HTTP, a natural next step is adding a Shelly humidity sensor to the bathroom. The Shelly humidity sensor can call the Shelly 2.5 UL's REST API directly — when humidity crosses a threshold (say 65%), it triggers POST http://192.168.33.10/relay/0?turn=on on the Shelly 2.5 UL, and off again once it drops below a lower threshold (say 50%). No script on the Shelly i3 is needed — the whole loop is the sensor talking straight to the relay, device-to-device on the Shelly i3's subnet. The physical rocker still works in parallel, so you keep manual control whenever you want it.