Electric roller shutters are some of the most useful things to automate in a house: close them on summer afternoons, open them in the morning, lower them all with one button when you leave. They are also easy to get subtly wrong. A tubular motor tolerates bad switching for a while and then fails, and a module that does not know where the shutter is cannot move it to 30%.
This article covers the two common setups. In the first, a wired 230 V motor is driven by a relay module in the wall box. In the second, a motor with a built-in radio receiver, typically Somfy RTS or io-homecontrol, is controlled over the air. It also explains how modules work out the position, and the mistakes that kill motors.
What is inside a tubular motor
A standard 230 V tubular motor for roller shutters connects with a four-core cable. Mains is switched to one of two wires, brown or black, to choose the direction. Blue is neutral and green-yellow is earth. Swapping brown and black reverses the direction. If the motor hums without moving, the connections are wrong.
The motor stops itself at the ends. Older and simpler motors have mechanical limit switches set with two adjusting screws on the motor head. Electronic motors learn their end positions during setup, and some detect the stops on their own. Either way, the end positions are set in the motor, not in your smart home system. Shelly says the same in its documentation for the 2PM Gen3: use only motors with electronic or mechanical limit switches, and set them correctly before connecting the module.
Tubular motors are also not built for continuous running. Kaiser Nienhaus gives about 4 minutes of running time for its motors, after which an integrated thermal cut-out switches the motor off for about 30 minutes. That matters when you set the end positions, and when an automation retries a command over and over.
Three rules for switching a motor
The motor manufacturer elero sums up its requirements as three rules. Its warranty depends on them, and they apply to any relay module or DIY controller:
- Do not connect motors in parallel. Two or more motors on one switch output are not allowed, because the capacitor between the up and down windings of one motor feeds voltage back into the others. If several shutters should move together, give each motor its own output or a separate cut-off relay, or group them in software.
- Pause before reversing. The motor must be without power for at least 0.5 seconds before it changes direction.
- Never power both directions at once. Up and down should be interlocked, ideally in hardware, which is why ordinary shutter wall switches are mechanically interlocked.
elero warns that breaking these rules rarely shows up at commissioning. The motor goes up and down, everything looks fine, and the windings fail weeks or months later, sooner with automation because it operates the motor more often.
There are exceptions, so read your motor's manual. Kaiser Nienhaus, for example, allows motors from its "Electronic" series to be connected in parallel on mechanical interlocked shutter switches, but not its other motors. It also says its motors cannot be used with mains disconnect switches, the devices sometimes installed to cut power to bedroom circuits at night, and that control systems that send signals over the mains wiring can cause malfunctions.
Relay modules: how they know the position
A shutter module sits in the wall box behind the existing switch. It has two relay outputs, one per direction, and two inputs for the wall switch. The Shelly 2PM Gen3 is a typical example. It has 10 A per channel and power measurement on both outputs, needs a neutral wire, and has a cover mode for roller shutters, blinds and awnings, including slat tilt for venetian blinds. Zigbee, Z-Wave and Matter modules for shutters exist too and work on the same principle.
Without position feedback from the motor, the module has to work the position out. Shelly's API documentation describes how:
- Calibration runs the shutter fully in both directions while the module watches its power meter. Because the motor's limit switches cut the power at each end, the module treats a drop below an idle power threshold as the end position, and from the travel times it can work out intermediate positions.
- Only a calibrated cover can go to a position. Until calibration succeeds, the module accepts only open, close and stop. Moving to 30% needs valid calibration data.
- Calibration can fail. It aborts when the shutter does not reach the end within the maximum travel time (60 seconds by default, adjustable up to 300), when the limit switches do not cut the power cleanly, when the motor turns the wrong way, or when someone presses the wall switch mid-run. It also cannot work if the motor is switched through an intermediate contactor or relay, because the module then cannot see the motor's power draw.
- Obstruction detection uses the same power meter. During calibration Shelly sets the threshold to the peak power plus 15%, and a holdoff time ignores the inrush spike when the motor starts. The feature is off by default.
Before calibrating, check that open really moves the shutter up. If not, flip the direction setting (invert_directions in Shelly's configuration) rather than rewiring.
The DIY variant with ESPHome
If you build the controller yourself, ESPHome offers two cover platforms. time_based estimates the position from configured open and close durations. current_based adds current sensors, detects the end stops and obstacles from the current draw, and cancels a move if current flows in the opposite circuit, which usually means a welded relay. Its documentation example uses the relays of a Shelly 2.5 with interlock and interlock_wait_time: 200ms.
The ESPHome documentation is clear about the limits: these are software interlocks, a bug can still switch on both relays, and relay pins may be active at reset before ESPHome runs. It recommends hardware interlocks, such as SPDT (changeover) relays wired so that only one direction can ever get power. Combined with elero's rules, that means at least 500 ms of wait time and a hardware interlock rather than 200 ms and trust in the firmware.
Radio motors: Somfy RTS and io-homecontrol
Many shutters, especially retrofits, have a motor with a built-in receiver and a handheld remote instead of a wall switch. A relay module cannot help here, and what you can do depends on the radio system.
Somfy RTS is Somfy's original protocol. It works at 433.42 MHz and only in one direction: the remote sends a command and the motor carries it out without confirming anything. No system can read an RTS shutter's position over the radio, so any position you see in an app is an estimate.
io-homecontrol works in the 868 MHz band and in both directions. The motor confirms each command and can report its current position. It is run by an association of manufacturers, so roof windows or awnings from other member brands can share the same controls. The association describes the messages as encrypted and authenticated.
The two systems do not talk to each other. Somfy's TaHoma hubs control both, and Somfy's Situo 5 bi-radio remote handles RTS and io on the same channel. If you are buying new motors and want reliable automations, io's feedback is worth having. With RTS, the dashboard only shows the last command sent, so a shutter held by ice still appears open after the morning "open" command.
For RTS there is also a local DIY route. In October 2026 ESPHome merged a transmit_somfy_rts action for its remote transmitter. With a 433.42 MHz transmitter, an ESP32 or ESP8266 can be paired as an extra remote and send up, down, My and Prog commands. It only transmits, so it cannot see what the original remote does. The rolling code has to be stored so that it survives a reboot.
Practical details: ice, drifting end positions and extra switches
- Ice. A frozen shutter is held in place by ice in the guide rails or between the slats. Some electronic motors include anti-freeze protection. Somfy's manual for the ilmo 50 WT says the motor does not move if it detects resistance and the shutter stays where it is. Mechanical limit-switch motors have no such protection, and an automation that keeps retrying a frozen shutter runs into the thermal cut-out at best. If you automate shutters, consider skipping the morning opening when it has been freezing, or at least do not retry automatically.
- Seasonal drift. Kaiser Nienhaus notes that temperature differences between winter and summer can shift the end positions slightly, and recommends setting the upper end position with about 3 cm of play.
- Two controls for one motor. Do not wire a second switch directly to a motor that is already connected to a module. One manufacturer's manual puts it plainly: never connect two or more switches to the same motor. Connect any extra switch to the module's inputs instead.
Common mistakes
- Running several motors off one module output. This breaks rule 1. Use one output per motor, or a cut-off relay per motor if you really need group control from one output.
- Setting the end positions in the app instead of in the motor. Calibration measures the ends the motor already has. If the limit switches are wrong, calibration will be wrong too.
- Calibrating with a stiff shutter. Friction in the guide rails changes the power draw and travel times. Fix the mechanics first.
- Trusting a software interlock alone. A firmware bug or a reset can power both directions. Use a module designed for shutters or a hardware interlock.
- Expecting position from RTS. It cannot report anything. If you need to know that the shutters are really closed, choose io-homecontrol or a wired motor with a measuring module.