How to Connect Devices to Xiaomi Gateway: A Complete Guide with Expert Advice

Xiaomi Gateway is the centerpiece of the smart home ecosystem from the brand, which connects sensors, lamps, sockets and other gadgets. Without the right devices to connect to the gateway, the system will not work steadily: sensors will lose communication, commands will be executed with delay, and automation will fail. This article will help you understand how to add a new device to the Xiaomi Mi Home Gateway (including Gateway 3 models, Aqara Hub and others), avoid typical errors and optimize the operation of the smart home.

We will look not only at the basic steps through the Mi Home app, but also at alternative methods for devices that are not seen by the system, as well as the nuances of working with different protocols (ZigBee, Wi-Fi, Bluetooth Mesh), and will focus on solutions for users who have a gateway already configured but new devices refuse to connect, a problem that occurs in 30% of cases, according to surveys on Xiaomi forums.

Whether you’re just starting out building a smart home or expanding your existing system, this guide will save you hours of searching for solutions, all of which have been tested on current firmware versions (2026) and work with most of the ecosystem’s devices, including Aqara’s products.

1. Preparation of the Xiaomi gateway to connect new devices

Before adding devices, make sure the gateway itself is ready to go. A common mistake for beginners is trying to connect the sensor to a non-activated or incorrectly configured hub.

  • πŸ”Œ Power gateway: connect it to the outlet 220V. The indicator on the case should burn blue (standby) or orange (pairing mode). If the LED flashes red - a problem with power or firmware.
  • πŸ“Ά Wi-Fi connection: The gateway must be on the same network as your smartphone.Use only 2.4GHz networks - 5GHz is not supported by most hub models.
  • πŸ“± Mi Home app: Update it to the latest version in the App Store or Google Play.Older versions may not see new devices.
  • 🌐 Region in settings: in the Mi Home profile, select China (Mainland China) - this will give access to all devices of the ecosystem.

If the gateway has already been in use, reset to factory settings.

  1. Press and hold the button on the lock body for 10 seconds until the indicator starts flashing yellow.
  2. Release the button – the hub will restart and be ready for a new setup.

⚠️ Warning: Once reset, all previously connected devices will be unplugged from the gateway. They will have to be added again. If you have a complex system with automation, export the settings through Profile first. β†’ Smart home settings β†’ Backup.

πŸ“Š What kind of Xiaomi gateway do you use?
Mi Home Gateway 3
Aqara Hub M2
Mi Home Gateway (1st generation)
Other

2. Methods of connecting devices to the gateway

There are three main ways to add devices to the Xiaomi ecosystem:

MethodSuitable forPlusesCons
Through Mi Home.All devices with support for ZigBee and Bluetooth MeshSimplicity, visual cuesSometimes I can’t see the device because of bugs.
Through Aqara HomeAqara devices (sensors, switches)More stable connection for AqaraNot all Xiaomi devices are supported
Manual mode (for experienced)Devices that are not automatically determinedIt works with non-standard gadgets.Requires knowledge of protocols and commands

Let's look at each method in more detail.

2.1. Standard connection via Mi Home

This is the most common method, and it works for 90 percent of devices.

  1. Open Mi Home and go to the Devices tab β†’ press + in the upper right corner.
  2. Select the category of the device (for example, Sensors and switches β†’ Motion Sensor).
  3. Follow the hints on the screen: πŸ”„ Press the button on the device (for example, the door sensor has a magnetic contact, the socket has a button on the case). πŸ“Ά Bring the device closer to the gateway (maximum) 1-2 square). πŸ•’ Wait 30-60 seconds while the search is underway.

If the device is not located, try:

  • πŸ”‹ Replace the batteries in the sensor (even if they are new – sometimes the contacts oxidize).
  • πŸ“΅ Shut down. VPN Proxies on the phone – they can block the connection to Xiaomi servers.
  • πŸ”„ Reset the gateway (remove the plug from the socket for 10 seconds).

The device is discharged by less than 20%|Gateway connected to 2.4 GHz Wi-Fi|In Mi Home selected region "China"|The device is located 1 meter from the gateway-->

Connection via Aqara Home (for Aqara devices)

If you have Aqara sub-brand devices (such as FP1 series sensors or D1 switches), use the Aqara Home app, which is better optimized for these devices:

  1. Download Aqara Home and register (you can use the same account as you do on Mi Home).
  2. Add the Aqara Hub gateway (if you have one) or connect to an existing Xiaomi hub via Add Hub.
  3. Click + β†’ Select the device β†’ Follow the instructions.

Important: Devices added through Aqara Home won't show up in Mi Home, and vice versa.Select one app for the entire ecosystem to avoid conflict.

Manual addendum (for experienced users)

If the device is not automatically detected, try manual mode, which works for some Chinese devices without international firmware:

  1. In Mi Home, click + β†’ Other Devices β†’ ZigBee (or Bluetooth if the device uses this protocol).
  2. Select Add Manually and enter the device UID (usually listed on the sticker or documentation).
  3. Confirm the addition and wait for synchronization.

Tuya Convert-enabled devices (such as some lamps) may require firmware via ZigBee2MQTT. This is a complex process that requires skills in working with GitHub and Docker.

What if the device is not added in any way?
If none of the methods worked, check: 1. Device compatibility – some gadgets (e.g., the old Xiaomi sensors of 2016-2018) are not supported by new gateways. 2. Gateway firmware – update it through Hub Settings β†’ Software Update. 3. Interference in the ZigBee network – if there are many other smart devices nearby (e.g., Philips Hue), they can create channel conflicts. Try changing the ZigBee channel in the gateway settings (option available in Aqara Home).

Let’s analyze the nuances of adding the most common Xiaomi and Aqara gadgets.

Sensors (movements, openings, temperatures)

Sensors are the backbone of a smart home, and they usually connect with ZigBee and require minimal setup. Take the Xiaomi Mi Door/Window Sensor 2:

  1. Remove the protective film from the battery (it blocks contact).
  2. Separate the magnetic and main parts of the sensor.
  3. In Mi Home, select the Door/Window Opening Sensor and follow the prompts.
  4. When the indicator on the sensor starts flashing blue, connect the parts back - the device will be added automatically.

For temperature and humidity sensors (e.g. Xiaomi TH Sensor):

  • πŸ”„ Press the button on the body 1 time - the indicator should blink.
  • πŸ“± In the application, select the Temperature and Humidity Sensor.
  • πŸ•’ Wait. 10-20 Seconds – the sensor will appear in the list.

⚠️ Note: Aqara sensors (such as the Aqara Temperature Humidity Sensor) do not always correctly display data in the Mi Home.

Smart lamps and lamps

Xiaomi Yeelight or Aqara LED Bulb lamps connect via Wi-Fi or ZigBee (depending on the model).

  1. Put the lamp in the cartridge and turn on the power.
  2. Turn off and turn on the lamp again 3 times in a row (interval of 1 second) - it will go into pairing mode and start flashing.
  3. In Mi Home, select Lighting β†’ Yeelight β†’ Follow the instructions.

For ZigBee lamps (e.g. Aqara LED Bulb T1):

  • πŸ”„ Put the lamp on the net and wait until it blinks slowly.
  • πŸ“± In Aqara Home, select Add Device β†’ lamp.
  • πŸŽ›οΈ After connecting, adjust the brightness and color temperature in the device menu.

Smart sockets and switches

Xiaomi Smart Plug and Aqara Wall Switch switches are connected in different ways:

  • πŸ”Œ For Xiaomi outlets (Wi-Fi): Put the socket in the network - the indicator flashes orange. In Mi Home, select the socket β†’ Xiaomi Smart Plug. Connect to a temporary Wi-Fi network from the socket (type name) Xiaomi_Plug_XXXX) and go back to the app.

Aqara

  1. Turn off the power on the shield before installation!
  2. Connect the wires according to the scheme (usually L - phase, N - zero).
  3. Turn on the power and hold the switch button for 5 seconds until the indicator starts to flash.
  4. Add the device through Aqara Home.

For advanced users: set up ZigBee2MQTT on the Raspberry Pi. This will allow:

  • πŸ”’ Get rid of Xiaomi’s cloud addiction.
  • πŸ“ˆ Get more detailed statistics on devices.
  • πŸ€– Integration of the smart home with other systems (e.g. Node-RED).

Example of teams for Alice:

  • "Alice, turn on the light in the living room" (if the lamp is called "Living room").
  • "Alice, show the temperature in the kitchen" (for the sensor).

6.2 Local management through Home Assistant

Home Assistant is an open platform for smart homes that allows you to:

  • πŸ”’ Manage devices without the cloud Xiaomi.
  • πŸ“Š Create complex automation (for example, if the motion sensor worked and it is dark outside, turn on the light for 5 minutes").
  • πŸ”„ Integration of devices of different brands (for example, Xiaomi) + Philips Hue).