Smart relays Sonoff from the company ITEAD have become one of the most popular home automation solutions thanks to their combination of affordability, reliability, and customization flexibility. These devices allow remote control of lighting, heating, ventilation, or any other load via smartphone, voice assistants (Alice, Google Assistant, Alexa) or even on a schedule. However, beginners often encounter difficulties during the initial connection: why the relay doesn't find the network, how to properly connect the wires, or what to do if the indicator light is flashing red.
In this article, we'll cover the entire process—from selecting a relay model to integrating it into a smart home ecosystem—taking into account current firmware and app versions for 2026. We'll pay special attention to common errors that lead to unstable work or complete device inoperability. If you have already tried connecting Sonoff and encountered problems, here you will find solutions for most scenarios.
1. Choosing a Sonoff relay model: which one is right for your needs?
Ruler Sonoff There are over a dozen models available, varying in functionality, maximum load, and connection methods. To avoid making mistakes when purchasing, determine the key parameters:
- 🔌 Connection type: Suitable for concealed installation in a distribution box Sonoff Mini R2 (compact size), and for open mounting - Sonoff Basic R3 with terminal blocks.
- ⚡ Maximum load: models Pow R2 And Pow R3 support up to
16A/3500Wand have a built-in energy consumption meter. - 📶 Communication protocol: Most relays operate via Wi-Fi
2.4 GHz, but there are options with Zigbee (Sonoff ZBMini) or RF 433 MHz (Sonoff RF R2). - 🔄 Additional functions: Sonoff TH16 equipped with a temperature/humidity sensor, and Sonoff Dual R3 controls two independent channels.
For most household tasks (controlling lights, sockets, fans), a basic model is sufficient. Sonoff Basic R3 or Mini R2If you need to monitor energy consumption, choose the series Pow. Please note: relay not intended for controlling inductive loads (e.g. refrigerator compressors) without additional protective modules.
⚠️ Please note: Model specifications may vary depending on the batch. Please check the supported voltage before purchasing (110–240V for most models) and maximum current on the official website ITEAD.
2. Preparing for connection: tools and safety measures
Before you begin, make sure you have everything you need:
- 🔧 Screwdriver with insulated handle (for removing the relay cover).
- 📱 A smartphone with the app installed eWeLink (available for Android And iOS).
- 🔌 Voltage tester or indicator screwdriver to check for the absence of current.
- 📡 Wi-Fi enabled router
2.4 GHz(relay don't work in networks5 GHz). - 🔄 Cable
Micro-USB(for flashing alternative software, if required).
Important: Perform all electrical wiring work when the power is offIf you are unsure of your skills, entrust the installation to a qualified electrician. Wiring errors can lead to damage to the relay, fire or electric shock.
Turn off the circuit breaker on the panel | Check for voltage with a tester | Prepare insulated tools | Make sure the relay voltage and the network are compatible | Do not connect the load until the setup is complete -->
If you plan to control powerful devices (such as heaters), use a relay with a current reserve or connect them through a contactor. For example, Sonoff Basic R3 designed for 10A, but for the load in 2000W (≈9A) it is better to choose a model on 16A.
3. Sonoff relay connection diagrams to the electrical network
The connection method depends on the load type and relay model. Below are the three most common circuits:
| Connection type | Scheme | Application | Sonoff models |
|---|---|---|---|
| Direct connection (normally open contact) | L → Sonoff IN → Sonoff OUT → Load → N |
Control of lamps, sockets, fans | Basic R3, Mini R2, Pow R2 |
| Connection with an external switch | L → Switch → Sonoff IN → Sonoff OUT → Load → N |
Combination of mechanical and intelligent control | Basic R3, TH16 |
| Connection via contactor | L → Sonoff OUT → Contactor coil → Load via power contacts |
Control of powerful devices (>3500W) | Any model + external contactor |
To connect Sonoff Mini R2 Use terminals in the junction box IN (nutrition), OUT (load) and GND (grounding if required). In models with sensors (e.g. TH16) a thermocouple is additionally connected to the connector Sensor.
How to connect Sonoff to a two-key switch?
To control two independent loads (for example, a chandelier with two groups of lamps), use Sonoff Dual R3 or two separate relays Mini R2. Scheme:
1. Phase (L) connects to both inputs IN1 And IN2 relay.
2. Outputs OUT1 And OUT2 go to the corresponding groups of lamps.
3. Zero (N) and grounding (PE) are connected directly to the load.
After installation, check the security of all connections and insulate exposed wires with heat shrink tubing or electrical tape. Do not use twisted connections—use terminal blocks or soldering only.
4. Configure the eWeLink app and add a relay
Official app eWeLink — the main tool for relay control SonoffDownload it from App Store or Google Play and follow the instructions:
- Register an account (you can use email or phone number).
- Click
+ → Add devicein the upper right corner. - Select
Quick setup (Easy Mode)for most models. - Connect the relay to the power supply - the indicator will start flashing quickly. green (pairing mode).
- Enter the password for your Wi-Fi network (2.4 GHz only) and wait for the connection.
If the relay is not located, try:
- 🔄 Reboot the router and relay (turn off the power for 10 seconds).
- 📶 Move the relay closer to the router (maximum distance is
10–15 mwithout obstacles). - 🔑 Make sure the network name does not contain Cyrillic or special characters.
- 📱 Update the app eWeLink to the latest version.
Once successfully added, the device will appear in the list. Here you can:
- 🔄 Rename the relay (for example, "Kitchen light").
- ⏱ Set timers or schedules.
- 🔗 Integrate with Google Home or Alexa.
- 📊 View energy consumption statistics (for models Pow).
5. Alternative firmware: Tasmota and ESPHome
Standard firmware eWeLink has limitations: dependence on cloud servers, lack of local control without the Internet. Alternative firmware, such as Tasmota or ESPHome, solve these problems by adding:
- 🌐 Local control over your home network (no cloud).
- 🔧 Advanced settings (MQTT, automation scripts).
- 🛡 Greater security (no dependence on third-party servers).
- 🔄 Compatibility with Home Assistant, OpenHAB.
To flash the firmware you will need:
- Connect the relay to the computer via
USB-TTLadapter (for example, FTDI232). - Download firmware Tasmota from the official website or compile ESPHome through VS Code.
- Use the utility
esptoolto write firmware:esptool.py --port COM3 write_flash 0x0 firmware.bin
After flashing, configure the relay via the web interface (http://[relay IP address]), specifying the parameters of your Wi-Fi network and MQTT broker (if required). For integration with Home Assistant add configuration to file configuration.yaml.
⚠️ Warning: Flashing alternative firmware will void your warranty. ITEADThere is also a risk microcontroller damage if connected incorrectlyUSB-TTLadapter (for example, if you mix them upTX/RXor apply voltage5Bat the entrance3.3B).
6. Common mistakes and their solutions
Even with a proper connection, users still encounter issues. Here are the most common scenarios and how to resolve them:
| Problem | Possible cause | Solution |
|---|---|---|
| The relay does not connect to Wi-Fi | Incorrect password, network 5 GHz, weak signal |
Check your router settings, reboot the relay, use a Wi-Fi repeater |
| The indicator is flashing red | Firmware error, microcontroller damage | Reflash the relay via USB-TTL or contact support |
| The relay switches on/off spontaneously | Unstable power supply, network interference 2.4 GHz |
Connect the stabilizer and change the Wi-Fi channel in the router settings. |
| The app doesn't see the relay after a reset. | The relay remains in the mode AP Mode (own access point) |
Connect to the network ITEAD-XXXX and repeat the setup |
If the relay stops responding to commands, try:
- Turn off and on the power again.
- Reset the settings using the button on the case (
5-10 seconds). - Check for firmware updates in eWeLink.
- Make sure the relay's IP address does not conflict with other devices on the network.
7. Integration with the smart home ecosystem
Relay Sonoff can be integrated with popular smart home platforms:
- 🏠 Home Assistant: via the official component
SonofforMQTT(for alternative firmware). - 🗣 Voice assistants: Alice (through Yandex Smart Home), Google Assistant And Alexa (setting in eWeLink).
- ⚙ OpenHAB: using a bunch
MQTT Binding+ Tasmota. - 🌐 IFTTT: to create automation chains (for example, turning on the light when opening the door).
Example setup for Home Assistant (for firmware Tasmota):
mqtt:broker: 192.168.1.100
username: your_user
password: your_password
switch:
- platform: mqtt
name: "Sonoff Light"
command_topic: "cmnd/sonoff_power/POWER"
state_topic: "stat/sonoff_power/POWER"
payload_on: "ON"
payload_off: "OFF"
To integrate with Alice:
- Open eWeLink and go to
Profile → Smart Home → Yandex. - Log in using your account Yandex.
- Grant permission to access devices.
- In the appendix Yandex With the command "Alice, turn on the light," specify the name of your relay.
8. Safety and optimization of relay operation
To extend the life of your relay and avoid emergency situations, follow these recommendations:
- 🔌 Use a relay with a current reserve (for example, for a load
8Achoose a model on16A). - 🌡 Monitor the case temperature - if it overheats (>
60°C) turn off the load. - 🔄 Update your firmware regularly via eWeLink or web interface (Tasmota).
- 🛡 Set up backup control: for example, a mechanical switch in parallel with a smart relay.
- 📡 Place the relay in an area with stable Wi-Fi reception or use Mesh systems.
To protect against power surges, connect the relay through surge protector or a stabilizer. If you use a relay to control street lighting, make sure the enclosure has an IP rating of at least IP44 (For example, Sonoff Outdoor).
⚠️ Caution: Do not connect the relay Sonoff to circuits with higher voltage 250V or loads exceeding the rated values. This may lead to fire or failure of the device.
FAQ: Frequently asked questions about connecting Sonoff
Can Sonoff be connected to a 5GHz network?
No, all relays Sonoff work only in networks 2.4 GHzIf your router supports both bands, make sure the network 2.4 GHz included and has a unique name (not the same as 5 GHz).
How to reset the relay to factory settings?
Hold down the button on the relay body 5-10 secondsuntil the indicator starts blinking rapidly. After this, the device will create its own access point. ITEAD-XXXX, which you can connect to for re-configuration.
Why does the relay turn off after a few minutes?
This may be due to:
- Overheating (check the case temperature).
- Unstable power supply (use a power supply with a current reserve).
- Power saving settings in the router (disable the "Power Saving" function for Wi-Fi).
Is it possible to control Sonoff without internet?
With standard firmware eWeLink — No, since commands are transmitted via the cloud. For local control, flash Tasmota or ESPHome, which work according to the protocol MQTT in the local network.
How to connect Sonoff to two different Wi-Fi networks?
Relay Sonoff does not support simultaneous connections to multiple networks. However, you can:
- Use a router with this feature
Multi-SSID(multiple networks on one device). - Set up automatic switching via scripts in Home Assistant.
- Apply firmware ESPHome with support for multiple access points.