Connecting Xiaomi Relays to Smart Home: From Unpacking to Automation

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.

πŸ“Š What kind of smart home ecosystem do you use?
Only Xiaomi/Aqara
Google Home + Xiaomi
Apple HomeKit + Xiaomi
Other (Yandex, Home Assistant, etc.)
I'm not using it yet.

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 modelMax. Current (A)Max. power (Watt)Type of load
Mi Smart Relay10A.2200 wattsResistance (lamps, heaters)
Aqara Relay T116.3500 wattsResistive/weakly inductive
Aqara Relay C116.3500 wattsResistant + power-monitoring
Aqara Single Switch Module T110A.2200 wattsOnly 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.

  1. Clear the line on the shield.
  2. Connect phase wire (L) to the terminal IN relay.
  3. Connect the neutral wire (N) to the terminal N.
  4. From the terminal OUT Bring the wire to the lamp (for the phase break!).
  5. 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.

  1. Remove the old switch, de-energizing the line.
  2. Connect L, N and the output to the lamp to the terminals of the relay (see the scheme in the instructions).
  3. Install the relay in the rosette and fasten.
  4. 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?
If you plug phase into the terminal N and zero into the L, the relay can burn up when you turn it on. At best, it just won't work. Always check the phase with an indicator screwdriver!

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):

  1. Open Mi Home and go to Devices β†’ Add Device.
  2. Choose the category of Smart Home β†’ rela.
  3. Press Mi Smart Relay and follow the hints.
  4. Connect the relay to the Wi-Fi network (make sure the network is running at 2.4 GHz – 5 GHz is not supported!).
  5. 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):

  1. Open the Aqara Home app (or Mi Home if you use the Xiaomi hub).
  2. Go to Add the device β†’ rela.
  3. Press and hold the button on the relay (usually) 3-5 seconds) until the indicator flashes yellow.
  4. 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:

  1. Open the app and go to Automation. β†’ Create.
  2. Select a Condition (for example, a Motion Sensor) β†’ Traffic detected).
  3. Add Action: Select your relay and install Enable.
  4. 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 causeDecision
Relay not added to appWeak Wi-Fi/Zigbee signalMove the hub/router closer to the relay or use a repeater.
The relay is switched on but not turned offIncorrect connection scheme (phase on) OUT)Check the circuit: IN β€” phase, OUT β€” load.
Rele is warming or smelling of a burnExceeding maximum loadTurn 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 hubAdd an intermediate Zigbee device (such as a Xiaomi lamp) to amplify the signal.
Relay resets after lights go outNo backup power for the Zigbee modelUse 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: true

Limitations:

  • 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:

SituationXiaomi's problemThe alternative
Managing powerful devices (>3500 watts)Aqara Relay's top 16A T1Shelly Pro relay 4PM (up to 20A on the channel)
No neutral wire.Most models require NSonoff relay BasicR3 (neutralizes)
You need a job without the internet.Wi-Fi models depend on the cloudZigbee relays from Tuya or Sonoff with local control
3-phase load managementXiaomi does not offer 3-phase relaysContacts 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).

FAQ: Frequent questions about Xiaomi relay

❓ Can I connect the Xiaomi relay without a hub (for example, directly to the phone)?
Only Wi-Fi models (such as Mi Smart Relay) work without a hub, connecting directly to the router. T1/C1) A hub (Aqara Hub or Mi Gateway) is required 3).
❓ Why Xiaomi relays don’t keep a state after the lights go out?
This is a feature of Zigbee relays, which are powered by the hub. If the hub turns off, the relay will return to its original state. Solution: Use a backup hub (like the Aqara Hub). M2 Configure the automation to restore the state after power is turned on.
❓ Can you control the Xiaomi voice relay (Alice, Google Assistant)?
Yes, but you need to: Connect the relay to Mi Home or Aqara Home. β†’ Settings β†’ Voice assistants. Link your account to Yandex or Google. Once synchronized, you can say, "Alice, turn on the relay in the living room." Restriction: Voice control only works through the cloud, so when you shut down the Internet, you won't be able to execute commands.
❓ How to reset Xiaomi relays to factory settings?
For reset: Hold the button on the relay 10-15 For the second, until the light flashes quickly (for Mi Smart Relay). 5 So the relay will be removed from the application after the reset, and you'll have to add it back.
❓ What Xiaomi relay is the most reliable for controlling the heater?
For heaters (loading) 1500-2500 W) recommended: Aqara Relay T1 β€” maintain 3500 The watt has overheating protection. Aqara Relay C1 β€” It also allows you to monitor your energy consumption. It's important! Don't use Mi Smart Relay (maximum). 2200 W - it can overheat. Also add temperature protection to the automation (for example, turn off the heater if the sensor shows the temperature). >28Β°C).