How to set up the Sonoff Basic R2 WiFi relay: step-by-step instructions

Intelligent control of electrical appliances is no longer science fiction and has become an accessible reality for every smartphone owner. One of the most popular and affordable devices on the market is Sonoff Basic R2, which allows you to turn any ordinary household appliance into an element of a smart home system. This is a compact relay with a module WiFi Provides remote load control via a mobile application from anywhere in the world where there is internet access.

The device setup process may seem complicated at first glance, but by following a clear procedure, you can activate the relay in just a few minutes. In this article, we'll cover every step in detail: from unpacking and connecting to the power supply to fine-tuning scenarios and integrating with voice assistants. Proper initialization equipment is the key to the stable operation of your home automation for many years.

Before you begin installation, it is important to understand that Sonoff Basic R2 works exclusively in networks with a frequency 2.4 GHzIf your router broadcasts 2.4 and 5 GHz signals under the same name, you may encounter some difficulties during setup, which we'll definitely cover below. Getting ready to use begins with checking your infrastructure's compatibility.

Preparation for installation and technical requirements

The first step before starting any electrical work is to ensure safety. Make sure the circuit breaker in the panel is in the off position and there is no voltage on the wires. Use a test screwdriver or multimeter to check, as the visual absence of light in the bulb does not always guarantee the absence of voltage. phases on contacts.

Device Sonoff Basic R2 Requires a connection to a standard home Wi-Fi network. Support for the protocol by the router is critical. 802.11 b/g/n on frequency 2.4 GHzModern routers often combine the 2.4 and 5 GHz bands into a single network (Smart Connect technology), which sometimes causes problems when initially pairing the device with the app.

⚠️ Attention: If your device doesn't see your router while searching for a network, try temporarily disabling the 5 GHz band in your router settings or creating a separate guest network for 2.4 GHz only.

To connect, you will also need a smartphone with the app installed. eWeLink, available on Google Play and the App Store. Register in the system using a valid phone number or email address, as this account will be used to authorize the relay in the manufacturer's cloud service.

Sonoff Basic R2 power supply connection diagram

Relay housing Sonoff Basic R2 Equipped with four main terminals for connecting wires, the markings of which are applied directly to the printed circuit board. Terminals are used for switching L And N to supply power to the device itself, as well as L in And L out to break the load circuit.

The connection is made as follows: the phase wire from the circuit breaker (input phase) is connected to the terminal L inFrom the same point, the phase must be supplied to the terminal L (often a jumper or comb is used for this if the device is in the panel, but in the basic version of R2 the input phase is usually fed directly to L in, and on L a phase is started to power the WiFi module if the design implies a separate input, however, in the classic R2 circuit, the input phase goes to L in, and with L power is taken for the controller and the output to the load). In the standard installation diagram: the phase from the panel is carried to L in, zero from the shield - on NWe take the output phase for the light bulb or device from the terminal L out.

For ease of understanding, the main types of connections are summarized in the table below:

Terminal on Sonoff Purpose Wire color (standard) Where to connect
N Neutral (Zero) Blue Common zero from the panel
L in Phase Input (Load) Red/Brown Phase from machine
L out Phase output (to the device) Red/Brown On a lamp or socket
L Module power supply - R2 is often connected internally or requires a jumper from L in

After physically connecting the wires, carefully arrange them inside the junction box, avoiding kinks and excessive tension. Insulation All connections must be secure, use heat shrink or high-quality terminal blocks to eliminate the risk of short circuits inside the wall.

After power is supplied to the device, the LED indicator on the case Sonoff Basic R2 will start flashing quickly. This is a signal that the relay is in the mode conjugations (Pairing Mode) and ready for setup. If the indicator light is constantly on or off, you need to reset the settings by holding the button on the case for 7-10 seconds until it flashes rapidly.

Launch the application eWeLink on your smartphone and tap the "+" button in the upper right corner to add a new device. The system will offer several ways to add: quick add (AP mode), a compatible device, or scanning a QR code. Sonoff Basic R2 the most reliable method is the mode Quick pairing mode (Quick Add) which uses Bluetooth or direct WiFi connection.

  • πŸ“± Select the "Quick pairing mode".
  • πŸ”Œ Make sure your smartphone is connected to the same 2.4 GHz WiFi network that the relay will be connected to.
  • πŸ”‘ Enter your WiFi network password in the field that appears (the app often fills it in automatically).
  • ⏳ Click β€œNext” and wait for the process to complete, which takes between 10 and 40 seconds.

During setup, the app may request permission to access the local network and geolocation. These permissions are necessary for the device discovery protocol to function correctly and for location-dependent scenarios to function. After successfully adding the device, you can rename it, for example, to "Living Room Light" or "Humidifier," to easily identify it in the list.

πŸ“Š Which step of setting up a smart home do you have the most difficulty with?
Connecting to 2.4 GHz WiFi
Setting up scenarios
Integration with Alice/Google
Mounting in a panel

Setting up operating modes and timers

Functional Sonoff Basic R2 It's not limited to simply turning on and off. In the device settings (gear or pencil icon), you can select one of three relay operating modes, allowing you to adapt it to different tasks. The default mode is Switch (A switch) that allows independent switching of states.

Mode Momentary (Pulse) is designed to control devices that require a short-term signal, such as opening a garage door or ringing a doorbell. In this mode, the relay closes the contact for a set time (from 0.5 to 3600 seconds) and automatically opens it. Inching (Self-return) works similarly, but the pulse time is set more precisely and is used less frequently, in specific industrial tasks.

What is the difference between Inching and Momentary?

Inching mode has a fixed time range (usually up to 3600 seconds) and is often used for overload protection or testing, while Momentary is more versatile for emulating button presses. In everyday life, Momentary is more often used for doorbells and gates.

For automation without complex scripts, the app has a powerful built-in timer block. You can configure:

  • πŸ•’ One-shot timer: turn on or off at a specific time (for example, boil the kettle by 7:00).
  • πŸ”„ Cyclic timer: switching on/off according to a schedule on certain days of the week (simulating the presence of the owners).
  • ⏲ Countdown: turns off the device after a specified period of time after activation.

If WiFi is lost, the relay will continue to perform its current function (the light will be on or off depending on its last state), but remote control and automation will not work.

Troubleshooting and flashing the device

During use, users may encounter a situation where the device stops responding to commands or disappears from the network. This is often caused by an unstable WiFi signal or changes to the router settings. In such cases, reconnecting the device can help: remove the device from the app (hold down the device icon and select "Remove"), reset the settings using the button on the device, and then re-add it.

Sometimes the application eWeLink You may be prompted to update your device's firmware. This is an important procedure, as new software versions contain security fixes and improve connection stability. The update is performed over-the-air (OTA) and takes a few minutes.

⚠️ Attention: During a firmware update, it is strictly forbidden to power off the device or interrupt the connection to the smartphone. Disrupting the data transfer to the controller's memory may cause irreversible damage to the device ("bricked").

If standard methods don't help, you can use Recovery Mode. To do this, with the power on, hold the button for 6-12 seconds until the indicator light starts blinking at double speed, then try adding the device as a new one. In some cases, especially when changing the server region in the app, a complete network configuration reset is required.

β˜‘οΈ What to do if connection to the device is lost

Completed: 0 / 5

Integration with voice assistants and ecosystems

One of the key features Sonoff Basic R2 is the ability to control voice through popular platforms. For integration with Yandex Alice, Google Assistant or Amazon Alexa You need to go to the β€œProfile” -> β€œThird-party services” (or β€œVoice Control”) section in the eWeLink app and link the accounts.

After logging into your voice assistant account and granting access to your devices, your relays will appear in the corresponding app (Home with Alice, Google Home). There, you can assign them to rooms and give them more descriptive names. Voice control allows you to turn on lights without reaching for your phone, which is especially convenient when your hands are full.

For users who prefer local solutions and maximum independence from the cloud, there is the option of reflashing the device to alternative firmware, such as Tasmota or ESPHomeThis requires the use of a USB-to-TTL adapter and soldering of contacts on the board, which voids the warranty, but allows access to local control via Home Assistant or OpenHAB.

When integrating with voice assistants, it's important to consider command latency. Since the signal travels along the following chain: Voice -> Assistant Cloud -> eWeLink Cloud -> Router -> Sonoff, the response time can range from 1 to 3 seconds, which is normal for cloud-based IoT devices.

Why can't Sonoff Basic R2 connect to 5GHz WiFi?

WiFi module installed in Sonoff Basic R2, does not physically support the 5 GHz frequency. It is based on the ESP8266 chip, which operates exclusively in the 2.4 GHz band. If your router broadcasts a single network with a common name (SSID) for both bands, try temporarily separating them in the router settings or creating a 2.4 GHz guest network with a unique name for the initial setup.

What is the maximum load power for Sonoff Basic R2?

According to the technical documentation, the relay Sonoff Basic R2 rated for current up to 10 Amps At 220-230 volts. This means that the maximum power of active loads (incandescent lamps, heaters) should not exceed 2.2 kW. For inductive loads (motors, pumps), a power reserve is recommended, so connecting devices with a power greater than 1-1.5 kW without an additional contactor is not recommended to avoid contact sticking.

Is it possible to control Sonoff without internet?

In the standard configuration, offline control via the eWeLink app is not possible, as commands are routed through a cloud server. However, if a server is configured on your local network Home Assistant With Sonoff LAN integration or if the device is flashed to Tasmota, local control is possible even without Internet access.

What should I do if the red indicator is on and the device is heating up?

If the device becomes very hot and the red indicator lights up (or flashes in emergency mode), this may indicate an overcurrent or short circuit in the load circuit. Immediately disconnect the device from the power supply, check the wiring connections, and check the power of the connected device. Prolonged operation at maximum power may cause deformation of the housing and damage to the electronic key.

Is Sonoff Basic R2 compatible with Apple HomeKit?

Natively, out of the box, Sonoff Basic R2 Doesn't support the Apple HomeKit protocol. Integration with the iPhone Home app requires the use of an intermediate gateway, such as Homebridge (based on a Raspberry Pi or PC), or the purchase of a dedicated Sonoff NSPanel Pro/Bridge, which streams devices from the eWeLink cloud to HomeKit.