Sonoff for roller shutters: wiring diagram for MINI-RBS and MINI-ZBRBS
Updated 30/11/2026
To make a roller shutter smart with Sonoff you need one module per motor: the MINI-RBS, which works on Wi-Fi and Matter, or the MINI-ZBRBS, which works on Zigbee and needs a hub. The module goes in the flush-mounted wall box, behind the switch you already have, and connects to live, neutral, the two motor wires (up and down) and the switch. The wall switch keeps working; on top of that you control the shutter from the eWeLink app, by voice and with schedules.
The wiring diagram is the same for both modules: they have the same terminals, and only the way they connect to your home is different.
Which one to choose: MINI-RBS or MINI-ZBRBS
They are wired the same way and drive the same type of motor. The difference is how they talk to your home: the MINI-RBS connects directly to Wi-Fi, while the MINI-ZBRBS uses Zigbee and goes through a Sonoff hub, but in return it strengthens the Zigbee network because it acts as a repeater.
| MINI-RBS | MINI-ZBRBS | |
|---|---|---|
| Connection | Wi-Fi 2.4 GHz, with Matter | Zigbee 3.0 |
| Hub | Not needed | A Sonoff Zigbee hub is needed, for example the Zigbee Bridge Pro or Bridge Max |
| App | eWeLink, or a Matter-compatible app | eWeLink, through the hub |
| Alexa and Google Home | Yes | Yes, through the hub |
| Apple Home | Yes, with Matter and an Apple home hub (HomePod or Apple TV) | Not stated by the manufacturer |
| Home Assistant | Yes: cloud, local network or Matter | Yes: cloud, or direct Zigbee with a USB dongle (ZHA or Zigbee2MQTT) |
| Zigbee repeater | No | Yes |
| Motor | AC 100–240 V, up to 1 A | AC 100–240 V, up to 1 A |
| Size | 39.5 × 33 × 16.8 mm | 39.5 × 33 × 16.8 mm |
Our advice. If you have only a few shutters and good Wi-Fi throughout the house, choose the MINI-RBS: no hub needed. If you already have a Sonoff Zigbee hub, or many shutters and sensors, choose the MINI-ZBRBS. If you use Home Assistant with a Zigbee dongle, the MINI-ZBRBS works locally, without the cloud.
- Sonoff MINI-RBS: the Wi-Fi module with Matter, no hub required.
- Sonoff MINI-ZBRBS: the Zigbee module, which connects to the app through a Sonoff Zigbee hub.
What about the Sonoff Dual R3?
The Sonoff Dual R3 is a two-channel Wi-Fi relay: it usually controls two lights, but it also has a motor mode for roller shutters, curtains and blinds. In motor mode it uses its two channels for up and down, so it drives one motor only, just like the dedicated modules.
- Wiring: live to L In, neutral to N In, the two motor wires to L Out 1 and L Out 2 (up and down), the wall switch to S1 and S2. Follow the diagram in the manual: do not bring the live wire of the mains directly to S1 and S2.
- Motor: 10 to 240 W, up to 1 A.
- Motor mode: you select it in the eWeLink app after pairing.
- Energy monitoring on each channel (not available on the Lite version).
- Wi-Fi 2.4 GHz only, no Matter: for Apple Home you need a Sonoff Matter bridge, such as iHost or NSPanel Pro.
- Size: 54 × 49 × 24 mm, bigger than the MINI modules: check that there is room in the wall box.
Our advice. For a new shutter, choose the MINI-RBS: it is smaller and has Matter. The Dual R3 makes sense if you also want energy monitoring, or if you already have one to use for the shutter.
What you need
- One module per motor. A module controls one motor only.
- Neutral in the wall box: both modules need it.
- An AC roller shutter motor with 4 or 5 wires (neutral, up, down and earth), with limit switches in the motor and a current draw of up to 1 A.
- A single-phase installation, 100–240 V.
- A 1 A circuit breaker upstream of the module, or a 1 A RCBO: this is required by the Sonoff manual.
- Copper wires from 18 to 14 AWG, i.e. about 0.8 to 2 mm², solid or stranded.
- The eWeLink app on your phone. For the MINI-RBS, 2.4 GHz Wi-Fi that reaches the wall box.
- For the MINI-ZBRBS: a Sonoff Zigbee hub already added in the eWeLink app.
- A qualified electrician: the manual requires the module to be installed by a professional.
Wiring diagram, wire by wire
Both modules have the same six terminals: N and L for the power supply, Lout1 and Lout2 for the motor, S1 and S2 for the wall switch.
⚠️ Safety. Before opening the wall box, switch off the power at the consumer unit and check with a voltage tester that the wires are dead. The connection is at 230 V: have it done by a qualified electrician, as the Sonoff manual requires.
| Wire | Where it goes | Note |
|---|---|---|
| Mains neutral (blue) | N | The motor neutral goes to the same neutral |
| Mains live | L | The common of the wall switch is also taken from the live |
| Motor up wire | Lout1 | Output 1, «Forward» in the manual |
| Motor down wire | Lout2 | Output 2, «Reverse» in the manual |
| Motor neutral | Mains neutral | Not connected to the module |
| Motor earth (green-yellow) | Installation earth | Not connected to the module |
| «Up» button of the switch | S1 | Up command |
| «Down» button of the switch | S2 | Down command |
| Switch common | Live (L) |
The colours of the up and down wires change from motor to motor. If you are not sure which is which, don't worry: in step 8 you test the direction and correct it if needed.
The steps
- Switch off the power at the consumer unit and check with the voltage tester that the wires are dead.
- Remove the wall switch and take a photo of the wires before disconnecting them.
- Identify the wires: live, neutral, the two motor wires (up and down), the motor neutral and earth, the switch common.
- Connect the power supply: live to L, neutral to N.
- Connect the motor: up to Lout1, down to Lout2. The motor neutral goes with the mains neutral, the earth with the installation earth.
- Connect the wall switch: the «up» button to S1, the «down» button to S2, the common to live.
- Fit the module in the wall box and refit the switch or cover plate. The module must be fully inside, with no exposed parts.
- Restore power and test the direction: press «up». If the shutter goes down, switch off the power, swap the wires on Lout1 and Lout2 and try again.
- Run the travel calibration, as explained below: you need it to set the shutter to a percentage.

The full manuals, in PDF, are on the product pages of the MINI-RBS and the MINI-ZBRBS.
The wall switch
The switch you already have stays and keeps working alongside the app. The manual lists two types:
- the 3-position switch (up, stop, down): this is the factory setting;
- the momentary push button, which returns to rest after being pressed.
The product page also mentions the double roller shutter switch.
How to change the switch type. Press the button on the module 3 times, briefly: the blue LED flashes 3 times and the module moves to the next mode. There are three modes, in this order: Edge, the factory mode for the 3-position switch, then Pulse, then Following, and back to the start. The button is on the module: if you use a momentary push button, have the electrician set it during installation, testing the switch after each change.
Without a switch. The module also works without one: you control it from the app, by voice and with schedules.
A new wall control. For the MINI-RBS, Sonoff offers two wall-mounted solutions: the Orb-RBS, the MINI-RBS with a wall front panel, for 86 × 86 × 34 mm boxes, and the ERBS, a wall housing that holds the MINI-RBS, for round 60 or 80 mm boxes or square 86 mm boxes, more than 30 mm deep.
First power-on and pairing
MINI-RBS with the eWeLink app
- Download the eWeLink app and connect your phone to 2.4 GHz Wi-Fi.
- Switch on the power. The first time, the module enters pairing mode by itself and the LED gives two short flashes and one long. If it doesn't, hold the module button for 5 seconds.
- In the app choose Add Device, scan the QR code on the module and follow the instructions.
- Pairing stays open for 10 minutes.
MINI-RBS with Matter
To add it to Apple Home, Google Home, Alexa or SmartThings, open the app and scan the Matter QR code on the quick start guide or on the module. For Apple Home you need an Apple home hub, such as a HomePod or an Apple TV.
If you use it with Matter in another app, calibration is done with the module button: you will find the steps below.
MINI-ZBRBS
- First add the Sonoff Zigbee hub in the eWeLink app.
- Switch on the power. The first time, the module enters pairing mode by itself and the LED flashes slowly. If it doesn't, hold the module button for 5 seconds.
- In the app, open the hub and add a Zigbee device. Pairing stays open for 3 minutes.
The manual lists as hubs the Zigbee Bridge Pro (ZBBridge-P), the Zigbee Bridge Ultra (ZBBridge-U), the NSPanel Pro and the iHost; for Home Assistant, the ZBDongle-P and ZBDongle-E dongles. According to Sonoff, the Bridge Max supports all Sonoff Zigbee devices.
What the LED means
| Blue LED | MINI-RBS | MINI-ZBRBS |
|---|---|---|
| Steady on | Connected and online | Connected to the hub |
| One flash | Offline | — |
| Two flashes | Working on the local network (LAN) | — |
| Two short flashes and one long | Pairing | — |
| Slow flashing | — | Pairing |
| Fast flashing | — | Connection problem with the hub |
| Off | — | Pairing failed or timed out |
| «Breathing» (slowly fades on and off) | Calibration | Calibration |
Travel calibration
Calibration teaches the module how long the shutter takes to open and close completely. Without calibration the shutter goes up and down, but you cannot ask for «open to 50%».
From the eWeLink app, the easiest way. After adding the device, the app offers calibration; otherwise you find it in the device settings. You can choose:
- automatic: the module moves the shutter by itself and measures the travel;
- manual: you bring the shutter fully open and confirm with «Next», then fully closed and confirm with «Done».
With the module button:
- Hold the button for more than 10 seconds, until the LED «breathes». If you leave it, the module runs the automatic calibration.
- For the manual one, as soon as the LED breathes, briefly press the button.
- Open the shutter completely, then briefly press the button: the LED flashes 3 times.
- The module closes the shutter by itself. When it is closed, briefly press the button again: the LED flashes 3 times and calibration is done.
After calibration, check the fully open and fully closed positions from the app. If they are not right, do it again.
Extra Time. In the eWeLink app the MINI-RBS also has the Extra Time function, which compensates for motor wear.
2-minute limit. The module drives the motor in one direction for a maximum of 2 minutes in a row.
Useful automations
From the eWeLink app you can:
- set schedules: up at 7:30, down at 20:00;
- open halfway: «open to 50%» for shade, after calibration;
- create a scene: for example «all down» for the evening, with several shutters together;
- control them by voice: «Alexa, lower the kitchen shutter», with Alexa or Google Home;
- use a remote: with the MINI-RBS you can add eWeLink-Remote remotes, such as the R5 controller.
Common problems
| Problem | Cause | Solution |
|---|---|---|
| The shutter moves the wrong way | Up and down wires swapped | Switch off the power and swap the wires on Lout1 and Lout2. With the MINI-RBS you can also reverse the direction in the eWeLink app («Move Direction» setting) |
| The percentage is not right | Calibration not done or not accurate, or worn motor | Redo the calibration. With the MINI-RBS, update the firmware from the app (version 1.0.3 fixes inaccurate percentages) and try Extra Time |
| The wall switch does not work properly | Switch mode not suitable | Press the module button 3 times to move to the next mode (Edge, Pulse, Following) and try again |
| The MINI-RBS won't pair | 5 GHz-only network, weak signal or timeout | Use 2.4 GHz Wi-Fi, hold the button for 5 seconds and complete pairing within 10 minutes |
| The MINI-ZBRBS won't pair (LED off) | No hub, hub too far away or timeout | First add the hub in eWeLink, hold the button for 5 seconds and complete pairing within 3 minutes |
| The MINI-ZBRBS LED flashes fast | The module is not communicating well with the hub | Check that the hub is on and online. If it is far away, move it closer or add a mains-powered Zigbee device in between, which acts as a repeater |
| The motor doesn't start | Unsuitable motor (not AC, over 1 A) or wrong connections | With the power off, check the connections against the diagram and the motor rating plate. If in doubt, ask us |
Frequently asked questions
No. Each module controls one motor only: do not connect two motors in parallel. For two shutters you need two modules, which you can then move together with a scene in the app.
Yes, for both modules: the mains neutral goes to terminal N, and the motor neutral goes to the same neutral.
Yes. You connect it to the S1 and S2 inputs: both the 3-position switch and the momentary push button work. The module also works without a switch.
With Alexa and Google Home, yes, both of them: the MINI-ZBRBS through the Sonoff Zigbee hub. With Apple Home the MINI-RBS works via Matter and an Apple home hub (HomePod or Apple TV); for the MINI-ZBRBS the manufacturer does not state it.
Yes. The MINI-RBS via cloud, on the local network or with Matter. The MINI-ZBRBS via cloud through the hub, or with direct Zigbee using a dongle such as the ZBDongle-P or ZBDongle-E (ZHA or Zigbee2MQTT), without the cloud.
AC roller shutter motors, 100–240 V, with 4 or 5 wires (neutral, up, down and earth), with limit switches in the motor and a current draw of up to 1 A. For DC or other motors, ask us before buying.
The module measures 39.5 × 33 × 16.8 mm and is designed to go in the flush-mounted box behind the shutter switch. Check that there is room for it together with the existing wires: it must sit fully inside the box, closed by the switch or a cover plate. If the box is already crowded, send us a photo before buying.
For the MINI-RBS, no: it connects directly to Wi-Fi. For the MINI-ZBRBS, yes: a Sonoff Zigbee hub, such as the Zigbee Bridge Pro or the Bridge Max.
MINI-RBS: delete the device from the eWeLink app. MINI-ZBRBS: hold the module button for 5 seconds, or delete the device from the app. The MINI-ZBRBS can also be reset from the wall switch: with the 3-position switch, alternate «up» and «down» more than 3 times within 6 seconds; with the momentary push button, press «up» more than 6 times within 6 seconds.
The manual requires the module to be installed by a professional electrician. The connection is at 230 V and must always be made with the power switched off at the consumer unit.
Recommended products
- Sonoff MINI-RBS: the Wi-Fi module with Matter, no hub required.
- Sonoff MINI-ZBRBS: the Zigbee module, which also acts as a repeater.
- Sonoff Zigbee Bridge Pro: the Zigbee hub for the MINI-ZBRBS.
- Sonoff Bridge Max: Matter-compatible Zigbee hub, with Ethernet and Wi-Fi 6.
- Sonoff Orb-RBS: the MINI-RBS with a wall front panel.
- Sonoff ERBS: the wall housing for the MINI-RBS.
- Sonoff Dual R3: two-channel Wi-Fi relay with motor mode and energy monitoring.
Sonoff Bridge Max Bridge-M Hub Zigbee Compatible Matter with Ethernet, Wi-Fi 6
More modules among our smart relays and modules and more hubs among our smart home hubs. You will find all the products on the SONOFF brand page and more solutions for roller shutters and curtains. If you have doubts about your motor, write to us before buying.