# eWeLink-Remote Sub-Devices

You can transform the CUBE OS into an eWeLink Remote Gateway, allowing integration of sub-devices like the [**S-MATE 2**](https://sonoff.tech/en-us/products/sonoff-s-mate-extreme-switch-mate/58) **or** [**R5**](https://sonoff.tech/en-us/products/sonoff-switchman-r5-scene-controller/58).

{% hint style="info" %}
**What is the eWeLink-Remote control？**

eWeLink-Remote Control is a unique new remote control solution for SONOFF devices. It provides a more convenient, more reliable, and longer-distance control way for your home appliances.

About the details, please view:

<https://sonoff.tech/news-and-events/what-is-ewelink-remote-control/>
{% endhint %}

## 1. Enable eWeLink-Remote Control in Pilot

{% stepper %}
{% step %}
From the left sidebar, go to **Pilot Features**.

<figure><img src="/files/qu9BeUnDvdrAA1wsJRYp" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Find **eWeLink-Remote Control** and click **Learn More**. Toggle the switch to **enable** this feature.

<figure><img src="/files/Q1Bbq07gmbyPT5awlZ6P" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Once enabled, CUBE OS will activate the eWeLink-Remote protocol and prepare to receive signals from compatible devices.
{% endstep %}
{% endstepper %}

## 2. Add an eWeLink-Remote Sub-Device (Using R5 as Example)

{% stepper %}
{% step %}
Go back to the **Home** page. Click the **“+”** icon in the top-right corner. Select **eWeLink-Remote Sub-Devices** from the list.

<figure><img src="/files/9Wjtt1cKRB9nlNfuVWzd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Click **Pair** to enter pairing mode.

<figure><img src="/files/891PPDAYv1EWtbxLfDjs" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
On your **SONOFF R5**, trigger any button once. This will send a pairing signal.
{% endstep %}

{% step %}
Once pairing is successful, the R5 will appear in your device list.

<figure><img src="/files/FdE3kOLBngZ86GyRHlnw" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## 3. Configure Smart Scenes for eWeLink-Remote Sub-Devices

After adding your eWeLink-Remote sub-device, you can link it to other smart devices through **Smart Scenes**.

{% stepper %}
{% step %}
Go to the **Scene** page.

<figure><img src="/files/gSFda5iDYRukW6G19mtt" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Under the **Smart Scene** tab, click **Add Scene**.

<div align="left"><figure><img src="/files/W3239AN1rT3Rbf0ZEq91" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
Set up the **If** condition:

**Add Smart Device → SONOFF R5 → Enable Wireless Button → Channel 1 → Click → Done.**
{% endstep %}

{% step %}
Set up the **Then** action:

**Add Smart Device → SONOFF B05-BL → Enable Switch → On → Done.**
{% endstep %}

{% step %}
Save your Smart Scene.

<figure><img src="/files/05UoyTI5sGZnwP8elbLa" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

Now, when you press the R5 button, the connected B05-BL light will turn on automatically.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cube.ewelink.cc/getting-started/add-devices/ewelink-remote-sub-devices.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
