Xiaomiβs relay is a compact device that allows you to control electrical appliances through the Mi Home or Aqara Home app, integrating into the smart home ecosystem. It can remotely turn on/off lights, fans, heaters, or even run complex automation scenarios. But before you enjoy the convenience, you need to connect the relay correctly β and many face difficulties, from choosing a connection scheme to setting up an app.
In this article, we will look at all the steps from unpacking and installation to creating automation, with a special focus on safety (electricity requires care!), compatibility with other devices. Xiaomi/Aqara, And also the common bugs that keep the relay from running smoothly, and if you're new to the smart world, don't worry, the manual is tailored for users without technical backgrounds.
For experienced users, we have prepared unique data on the communication protocols of the Xiaomi relay (Zigbee 3.0 vs Wi-Fi) and current restrictions for different models that are not in the official documentation. And if you have already tried to connect the relay, but it is not βseenβ in the application, at the end of the article there is a section that solves 90% of these problems.
1. What relays Xiaomi are: the choice of model for the task
Before you buy a relay, itβs important to know which model is right for your needs. Xiaomi and its sub-brand Aqara offer several types of relays, differing in communication protocol, maximum load and functionality.
- π Mi Smart Relay (Wi-Fi) is a simple Wi-Fi controlled relay with a maximum current of 10A. Suitable for lamps, fans, but not for high-power appliances (such as heaters). Works only with Mi Home.
- π‘ Aqara Relay T1 (Zigbee 3.0 is a more reliable 16A solution compatible with Aqara Home and Home Assistant, with two control channels (for two independent devices).
- β‘ Aqara Relay C1 (Zigbee 3.0, with power measurements, is an advanced power monitoring model that supports up to 16A.
- π Aqara Single Switch Module T1 (Zigbee 3.0 - Relay for hidden wall mounting (replaces the usual switch). Supports 10A, requires neutral wire.
How to choose? If you need to control one appliance (like a desk lamp) and you already have a Xiaomi hub Mi/Aqara, For heavy loads (heater, air conditioning) or complex scenarios (linking with motion sensors), it is better to take Aqara Relay. T1/C1. If you want to build a relay in the wall instead of a switch, the Single Switch Module is fine. T1.
It's important. Xiaomi/Aqara They require neutral wires (except some models in the U.S.), and if you don't have one in your wiring, you'll either have to lay it out or choose alternatives (like smart sockets).
π‘
Before buying, check if your Xiaomi gateway supports (e.g. Mi Gateway 3 or Aqara Hub) M2) Some Aqara relays don't work with the 1st generation Mi Home hubs.
2 What you need to connect: tools and security
Connecting a Xiaomi relay is a work with electricity, so first of all, de-energize the line you will work with!
- β‘ Indicator screwdriver - to check the absence of voltage.
- π§ Flat/cross screwdriver - for fastening the relay and connecting wires.
- π Stripper/slice - for cleaning wires (if the relay does not have terminal clamps).
- π Climax pads (optional) - for reliable connection of wires.
- π± Smartphone with the Mi app Home/Aqara β customize.
- π Stable connection to Wi-Fi/Zigbee β The relay must be within the range of the hub.
Safety warning:
β οΈ Note: Xiaomi Relays are not designed to control inductive load devices (e.g. refrigerators, washing machines, compressors) and this can lead to overheating of contacts and fire. For such devices, use special contactors or relays with support for high initiation currents.
Also consider the maximum power of your relay:
| Relay model | Max. Current (A) | Max. power (Watt) | Type of load |
|---|---|---|---|
| Mi Smart Relay | 10A. | 2200 watts | Resistance (lamps, heaters) |
| Aqara Relay T1 | 16. | 3500 watts | Resistive/weakly inductive |
| Aqara Relay C1 | 16. | 3500 watts | Resistant + power-monitoring |
| Aqara Single Switch Module T1 | 10A. | 2200 watts | Only for switches. |
If you connect a relay in a junction box, use terminal clamps, which are more reliable than twists and reduce the risk of short circuits. T1) You will need a subpowder at least 40 mm deep.
3. Xiaomi relay connection schemes: step-by-step instructions
The way you connect depends on the relay model and the task, and let's look at the three most common options:
Connect Mi Smart Relay (Wi-Fi) to control the lamp
This is the simplest relay that's suitable for beginners.
- Clear the line on the shield.
- Connect phase wire (L) to the terminal IN relay.
- Connect the neutral wire (N) to the terminal N.
- From the terminal OUT Bring the wire to the lamp (for the phase break!).
- Place the relay in a box or on DIN-Reiki (if the model supports the).
Important, don't plug in. OUT to neutral - this will lead to a constant supply of voltage to the lamp, and the relay will not be able to turn it off.
Are L and N connected to the correct terminals?|No bare wires outside the terminals?|Relay is fixed and not dangling?|Line is de-energized (checked by the indicator)?-->
3.2.Aqara Relay Connection T1 (Zigbee) for two independent devices
This model has two channels (CH1 and CH2), So you can control the two devices separately:
- π Connect L and N to the corresponding terminals.
- π K CH1_OUT Connect the first device (for example, LED tape).
- π K CH2_OUT β second device (e.g. fan).
- πΆ Make sure the relay is within range of the Zigbee hub (maximum) 10-15 m without obstruction).
Features of Aqara Relay T1: It supports feedback (contact status is displayed in the app in real time) and it's useful for automation, where it's important to know if the app is on.
3.3 Aqara Single Switch Module T1 switch-on
This relay is designed to be hidden in the wall instead of the usual switch.
- Remove the old switch, de-energizing the line.
- Connect L, N and the output to the lamp to the terminals of the relay (see the scheme in the instructions).
- Install the relay in the rosette and fasten.
- Connect the switch button to the terminals S1 and S2 (This will allow you to control the light from the button and through the application).
If you don't have a neutral wire in your wiring, Single Switch Module T1 It will not work, you will have to lay it out additionally or choose another model (for example, Aqara Wireless Switch).
What happens if you mix L and N?
4.Configure the relay in the Mi Home or Aqara Home app
After installation, you need to add relays to the smart home ecosystem, and the process differs depending on the protocol (Wi-Fi or Zigbee).
Adding Mi Smart Relay (Wi-Fi) to Mi Home
Instructions for the Mi Home application (Android/iOS):
- Open Mi Home and go to Devices β Add Device.
- Choose the category of Smart Home β rela.
- Press Mi Smart Relay and follow the hints.
- Connect the relay to the Wi-Fi network (make sure the network is running at 2.4 GHz β 5 GHz is not supported!).
- Wait for the addition to be completed (the green indicator will light up).
If the relay is not located:
- π Reboot the router.
- πΆ Check if your phone is connected to the same Wi-Fi network.
- π Make sure the relay is powered (the indicator should flash blue).
Adding Aqara Relay (Zigbee) via hub
Aqara relays require a Zigbee hub (e.g., Aqara Hub). M2 Mi Gateway 3):
- Open the Aqara Home app (or Mi Home if you use the Xiaomi hub).
- Go to Add the device β rela.
- Press and hold the button on the relay (usually) 3-5 seconds) until the indicator flashes yellow.
- Wait for the hub to find the relay (it can take up to 30 seconds).
Tip: If the relay is not added, try resetting it (click the button for 10 seconds until the indicator goes out and blinks again). Also make sure that the hub is no further than 10 meters from the relay (walls and furniture reduce the range of Zigbee).
π‘
Aqara relays with Zigbee 3.0 are more reliable than Wi-Fi models because they don't depend on the stability of the Internet, but they require a hub.
5. Creating automations with Xiaomi relay
The most interesting thing about relays is automation, so you can set up, for example:
- π Turning on the light at sunset (link to the illumination sensor).
- πͺ Turning off the heater if the window is open (link to the door/window sensor).
- π‘ Simulation of presence (accidental lighting in your absence).
- β±οΈ Fan timer (turn on for 30 minutes every hour).
Letβs look at how to create automation in Mi Home:
- Open the app and go to Automation. β Create.
- Select a Condition (for example, a Motion Sensor) β Traffic detected).
- Add Action: Select your relay and install Enable.
- Save the script and test it out.
The process is similar for Aqara Home, but there are additional options, such as:
- π Delayed execution (turn on the light 5 seconds after the sensor is triggered).
- π Power conditions (if the relay supports energy monitoring, you can create a rule like "turn off the device if the power exceeds 2000 watts").
An example of complex automation:
β οΈ Note: If you use relays to control heating appliances (such as underfloor heating), be sure to add overheating protection to the scenario, for example: If the temperature is above 30Β°C (Aqara Temperature Sensor) - Turn off the relay!
Typical errors and their solution
Even with the right connection, Xiaomiβs relay can be unstable, and here are the most common problems and ways to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Relay not added to app | Weak Wi-Fi/Zigbee signal | Move the hub/router closer to the relay or use a repeater. |
| The relay is switched on but not turned off | Incorrect connection scheme (phase on) OUT) | Check the circuit: IN β phase, OUT β load. |
| Rele is warming or smelling of a burn | Exceeding maximum load | Turn off the device and check its power (should be) β€ 2200 watts for Mi Smart Relay). |
| Rele is running with a delay (1-2 seconds) | Zigby network overloaded or far from hub | Add an intermediate Zigbee device (such as a Xiaomi lamp) to amplify the signal. |
| Relay resets after lights go out | No backup power for the Zigbee model | Use a hub with a backup battery (such as the Aqara Hub) M2). |
If the Aqara relay is periodically disconnected from the hub, try:
- π Reconnect it (remove and add again).
- π‘ Update the hub firmware (check for updates at Aqara Home).
- π Change the location of the hub (it should be in the center of the house, not in the corner).
Critical error: If the relay shuts down immediately after you connect (the indicator goes out), chances are you mixed up L and N or applied too high voltage. In this case, the relay could burn - check it with a multimeter (resistance between the two). IN and OUT must be infinite in the off state).
7.Compatibility of Xiaomi relay with other smart home systems
rela Xiaomi/Aqara It can be integrated not only into native applications, but also into other ecosystems:
- π Home Assistant β Supports all Zigbee models through integration ZHA or Zigbee2MQTT. Wi-Fi models (such as Mi Smart Relay) are connected via Mi Home API.
- π Apple HomeKit β requires the hub Aqara Hub M2 (It has built-in HomeKit support. Wi-Fi relays are not compatible.
- π€ Google Home / Yandex Alice β connect via Mi Home or Aqara Home with an account link.
- π OpenHAB β Use binding Mi Home or Zigbee.
Home Assistant Aqara Relay Connection Process T1 looks like:
# Configuration for Zigbee2MQTT (fragment configuration.yaml)
devices:
'0x12345678': # Replace with your relay ID
friendly_name: "Aqara Relay T1"
retain: trueLimitations:
- Wi-Fi relays donβt work without Xiaomiβs cloud (internet required).
- Zigbee relays (Aqara) can conflict with other Zigbee devices (e.g. from Philips Hue) if they use a single channel.
π‘
If you use multiple Zigbee networks (such as Xiaomi and Philips Hue hubs), set them up on different channels (11, 15, or 20) in the hub settings to avoid interference.
8. Xiaomi relay alternatives: when to choose another solution
Xiaomi relays are not always the best choice. Consider the cases when you should pay attention to the alternatives:
| Situation | Xiaomi's problem | The alternative |
|---|---|---|
| Managing powerful devices (>3500 watts) | Aqara Relay's top 16A T1 | Shelly Pro relay 4PM (up to 20A on the channel) |
| No neutral wire. | Most models require N | Sonoff relay BasicR3 (neutralizes) |
| You need a job without the internet. | Wi-Fi models depend on the cloud | Zigbee relays from Tuya or Sonoff with local control |
| 3-phase load management | Xiaomi does not offer 3-phase relays | Contacts ABB or Schneider Electric + Shelly relay |
If you need a street relay (for example, to control the lighting in the yard), pay attention to models with protection. IP65 (Like Sonoff. TH16). Xiaomi relays are not designed to be used in high humidity or dust conditions.
π‘
rela Xiaomi/Aqara Optimal for home automation in the Mi ecosystem Home/Aqara. For industrial applications or complex schemes, it is better to choose specialized solutions (for example, Shelly or Sonoff).