Implementing smart home technologies often begins with purchasing an affordable and functional controller, and the Chinese brand Sonoff has established itself as a leader in this segment. Connecting such a device opens up wide possibilities for automating lighting, controlling electrical appliances, and creating complex interaction scenarios between gadgets. The installation process requires careful attention, especially if you plan to work with high voltage, but if you follow the instructions, even a novice can handle it.
The main challenge for most users isn't the physical installation of the module in the enclosure, but the initial software setup and pairing of the device with the router. Modern models support various communication protocols, including classic Wi-Fi and the more energy-efficient Zigbee, but it's wireless connection 2.4 GHz remains the most popular choice for relay controllers. In this article, we'll cover every step in detail, from unboxing to integration into a unified ecosystem.
It is important to note right away that there are many modifications of these controllers, such as basic ones Sonoff Basic, compact Sonoff Mini or powerful DIN rail versions. Despite the design differences, the logic behind their software configuration remains virtually identical, significantly simplifying the learning process. Let's move on to the practical part and get everything you need to get started.
β οΈ Caution: All work involving installing the relay in an electrical panel or distribution box must be performed with the power supply disconnected. Failure to follow safety precautions may result in electric shock or equipment failure.
Preparing equipment and choosing an installation location
Before beginning any work, you must ensure you have a complete set of components and suitable operating conditions for the device. The first step is always checking the package contents: the box should contain the relay itself, sometimes with pre-installed wires, and a brief instruction manual. For proper operation, you will also need a stable power supply. Wi-Fi, operating at a frequency of 2.4 GHz, since most models do not support the 5 GHz standard.
The choice of installation location directly depends on the device's enclosure type. If you're using a flush-mounted model or a model mounted behind a switch, ensure there's sufficient clearance to accommodate the module and wiring. DIN-rail versions will require space in the electrical panel. Signal strength is critical: the device must be within a strong reception area; otherwise, commands will be delayed or not delivered at all.
- π± A smartphone with Android or iOS operating system for installing the control application.
- πΆ A router with DHCP enabled and a working 2.4 GHz network.
- π Electrical installation tools: screwdriver, wire cutters, voltage indicator.
- π Additional 5V power source (USB) if initial setup is planned outside the installation site.
It's worth thinking through the wiring diagram in advance, especially if you plan to use external buttons or switches. Some models, for example, Sonoff Dual R3, have specific requirements for the wire gauge that cannot be ignored. Also, check whether your router supports the required number of simultaneous connections, as a fully-fledged smart home system can have a very large number of them.
β οΈ Note: Technical specifications and software requirements may be updated by the manufacturer. Before installation, check the latest documentation on the official website or in the app to ensure compatibility with your firmware version.
Installing the eWeLink application and registering an account
The foundation for controlling any device of this brand is a mobile application eWeLinkThis software interface is used for initial configuration, scenario creation, and remote control. The app can be downloaded from the official Google Play or App Store; a search for "eWeLink" will immediately return the desired result, featuring a blue house logo.
After installation, launch the app and create an account. The registration process is standard: enter your email address, create a strong password, and confirm the action with a code from an email. It is recommended to use email rather than quick login via social media, as this ensures more stable access recovery and integration with third-party services such as Google Home or Amazon Alexa.
When you first sign in, the app may request permissions to access geolocation and local network. These permissions are essential: geolocation is required to detect devices in pairing mode, and local network access allows the phone to communicate with the relay even if the internet is temporarily unavailable. Ignoring these requests will result in the device search taking forever.
Putting the device into pairing mode
The most crucial step is putting the controller into pairing mode. The method may vary slightly depending on the model, but the general principle is the same. Typically, you need to locate the physical button on the device's body. If the relay is new and has never been connected to the network, it often enters pairing mode automatically when power is applied, indicated by a rapidly flashing LED.
If the automatic transition does not occur, or the device has been used previously, you will need to perform a factory reset. To do this, press and hold the button on the case for 5-7 seconds until the indicator light starts flashing rapidly. On some models, such as Sonoff TH For touchscreen versions, double- or triple-clicking may be required. The exact combination can always be found in the manual, but the long-press method works 90% of the time.
There are two main quick connection modes that the app offers:
- β‘ Quick Pairing ModeThe phone itself transmits Wi-Fi network data to the device. This requires being in close proximity to the router and relay.
- π‘ AP ModeThe device creates its own access point, which you connect to with your phone to transfer the router settings. This is used if the first method doesn't work.
If the LED blinks slowly (once every 2-3 seconds), the device is in AP mode. If it blinks quickly, it's ready for a quick connection. In the eWeLink app, when adding a device, you can manually select the desired mode if automatic detection fails. Make sure your phone is connected to the 2.4 GHz network you want to link the relay to.
βοΈ Check before connection
The process of adding a device to the network
Once prepared, open the eWeLink app and tap the "+" button in the upper right corner of the main screen. The system will prompt you to scan a QR code or select a device from the list. The easiest way is to select the "Quick Addition Mode" category and tap "Next." The app will begin searching for available devices in pairing mode.
When your device's name appears on the screen (for example, Smart Switch-XXXX), select it. Next, the system will ask you to enter the password for your Wi-Fi network. Enter it carefully, observing the capitalization of the characters. The configuration process will then begin, which can take 10 to 60 seconds. During this time, the phone transmits network parameters to the relay, which attempts to connect to the router.
If the connection is successful, the LED on the device will stop flashing and turn solid (or turn off, depending on the model), and a device icon will appear in the application. You can rename it, for example, to "Hallway Light" or "Boiler," and assign it to a room for convenient grouping. If the process freezes at 99% or returns a timeout error, check the password and signal strength.
| Indicator status | Meaning | Action |
|---|---|---|
| Fast blinking | Pairing mode | Add via app |
| Slow blinking | AP (Access Point) mode | Select "AP Mode" in the app |
| It's on constantly | Device online | It can be controlled |
| It doesn't burn. | No power or failure | Check your network connection |
Setting up scripts and automation
Once successfully connected, it's time to unlock the device's true potential. The "Scenarios" (Smart) tab in the app lets you create logic chains that make your home truly smart. You can set up scheduled lights, reactions to temperature changes, or interactions with other devices.
One of the most useful features is creating "If-Then" conditions. For example, you can set a rule: "If the time is 11:00 PM, then turn off the lights in all rooms." Or a more complex scenario: "If the temperature drops below 18 degrees, turn on the heater." To implement such tasks, the device must be constantly online, so stability is essential. Wi-Fi connections critically important.
An "Inching" function is also available. It allows the relay to be turned on for a set period of time (from 1 second to 3600 seconds) and then turned off automatically. This is ideal for controlling bells, pumps, or short-term backlighting. Configuration is performed in the device menu by activating the "Inching" switch and setting the desired interval.
Secrets of stable work
If the relay frequently loses connection, try reserving a static IP address for the device's MAC address in your router settings. This will prevent address conflicts and speed up reconnection after a router failure.
Integration with voice assistants and third-party systems
Controlling via a phone is convenient, but voice control or control via a single smart home interface takes convenience to the next level. eWeLink supports native integration with Google Assistant, Amazon Alexa And Yandex Alice (via skill). To activate, simply go to the "Third-Party Platform Management" section in your eWeLink profile settings and link your accounts.
For users who prefer local management and independence from the cloud, there is the option of flashing devices with alternative software, such as Tasmota or ESPHomeThis requires some technical skills, a USB-TTL adapter, and a willingness to risk the warranty. However, this approach allows you to integrate the relay directly into Home Assistant without using Chinese servers.
When integrating with voice assistants, it's important to name your devices correctly. Use simple, easy-to-pronounce names, avoiding complex letter combinations. After syncing, tell the assistant to "Update devices," and it will find your new relays. Now you can say, "Alice, turn on the living room lights," and the relay will instantly activate.
β οΈ Please note: Using third-party firmware will void the manufacturer's warranty and the ability to use the official eWeLink app. This solution is only for experienced users who understand the risks.
Troubleshooting and Common Mistakes
During operation, situations may arise where the device stops responding or operates erratically. The most common problem is a loss of connection with the router. This often happens if the router broadcasts both 2.4 GHz and 5 GHz networks under the same SSID. In this case, the smart device may become stuck trying to connect to a 5 GHz band it doesn't support.
To resolve this issue, we recommend separating the networks in your router settings by giving them different names (for example, HomeWiFi and HomeWiFi_5G), or forcing the router to use 2.4 GHz-only compatibility mode during setup. You should also check your Wi-Fi security settings: some older encryption protocols or MAC address filtering may block connections from new devices.
If the relay is accessible on the local network but can't be controlled remotely (when you're away from home), check your router's firewall settings and ensure the device is allowed to access the internet. The eWeLink cloud service requires open ports for data exchange. In rare cases, a full reset of the device and re-binding may help.
Why isn't the relay added to the app and a timeout error is displayed?
Most often, the cause is an incorrect Wi-Fi password or a weak signal at the installation location. Make sure the phone is connected to a 2.4 GHz network, not 5 GHz. Also, try moving the device closer to the router during setup. If you use MAC address filtering, add the new device to the router's whitelist.
Is it possible to control the relay without the Internet?
Yes, if "Local Control" mode is enabled in the eWeLink app. The corresponding icon must be lit in the device settings. In this case, commands are transmitted directly over the local network, but remote access and voice control will not work.
How to reset the relay to factory settings?
To reset, press and hold the button on the device for 10-15 seconds until the LED starts flashing rapidly several times in a row. After this, the device will return to pairing mode and can be re-added as a new device.
Does Sonoff support 5G Wi-Fi?
The vast majority of Sonoff models, including the Basic, Mini, and DIN-rail relays, operate exclusively in the 2.4 GHz frequency range. They are physically unable to connect to a 5 GHz network. Make sure your router is broadcasting a 2.4 GHz network.