Connecting Xiaomi Smart Home System: A Complete Guide with Expert Advice

Xiaomi’s Smart Home ecosystem is one of the most affordable and functional home automation platforms, but setting it up often raises questions for beginners. Even a simple task – connecting a light bulb or motion sensor – can become an hour of pain if you don’t know the nuances of working with the Mi Home (now Mi Home is renamed Xiaomi Home in new versions), this article will help avoid the typical mistakes of choosing a central hub to fine-tuning scenarios with the features of the Zigbee, Wi-Fi and Bluetooth Mesh protocols.

We’ll not only break down the basic steps (which are already in the official manual), but also covert settings that allow you to bypass the limitations of regional firmware, integrate third-party devices through Home Assistant, and optimize the system to reduce command delays. Particular attention is paid to solving connection problems – why the Mi Hub can’t see sensors, how to reset the device without losing data, and what to do if scenarios are triggered with a delay.

1. Selecting a central hub: what is needed for your system?

Without a central hub, most Xiaomi Smart Home devices won’t be able to work together.

  • πŸ”„ Connects devices using the Zigbee protocol (sensors, switches, relays) into a single network.
  • πŸ“‘ Provides connectivity between devices and the cloud Xiaomi via Wi-Fi.
  • 🎡 Plays sounds (sirens, voice alerts) through the built-in speaker.

For 2026, three models of hubs are relevant:

ModelProtocolSupport for MatterFeatures
Xiaomi Mi Smart Home Hub 2Zigbee 3.0❌ No.Classic model, requires region-specific binding in Mi Home
Xiaomi Mijia Hub (white)Zigbee 3.0❌ No.No speaker, only for device control
Aqara Hub M2Zigbee 3.0βœ… Yes (through update)Supports HomeKit, a more stable firmware

⚠️ Note: Xiaomi hubs are tied to the region when you first connect. If you choose China, some devices (e.g. European versions of sensors) may not connect.

πŸ“Š What hub do you use?
Xiaomi Mi Smart Home Hub 2
Aqara Hub M2
Another Xiaomi hub
Not yet.
I'll use it without a hub.

Preparation for connection: what to do before installation?

Before connecting the hub or devices, follow the mandatory steps:

Install the Xiaomi Home app (version no lower than 6.5.0)

Register a Xiaomi account (preferably with a phone link)

Select the correct region in your profile settings (e.g. Russia or Europe)

Connect the hub to the outlet within a radius of 5 meters from the router (for stable Wi-Fi)

Update the firmware hub through Settings β†’ Update the software-->

Pay special attention to the Wi-Fi network:

  • πŸ“Ά The hub only works with 2.4GHz networks. If your router broadcasts in two bands, create a separate network for 2.4GHz or turn off 5GHz while you configure.
  • πŸ”’ Turn off Client Isolation in the router settings, otherwise the hub will not be able to manage the devices.
  • 🌍 If you use VPN Or proxy, disable them – Xiaomi servers can block the connection.

πŸ’‘

If the hub is not connected to Wi-Fi, try changing the network channel to 1, 6 or 11 – these channels are least susceptible to interference.

3. Step-by-step instruction: how to connect the Xiaomi hub?

The process of connecting the hub takes no more than 5 minutes, if you follow the algorithm:

  1. Connect the hub to the outlet. Wait for the indicator to flash yellow (waiting mode).
  2. Open Xiaomi Home, click + β†’ Add the device β†’ Hub.
  3. Select the hub model from the list. If your model is not available, update the app.
  4. Connect to the temporary Wi-Fi hub network (the name begins with lumi-gateway-).
  5. Return to the app and select your 2.4GHz main network. Enter your password.
  6. Wait for the setup to be completed (the hub will deliver a voice message in Chinese – that’s fine).

⚠️ Warning: If the hub is silent or does not respond to commands after connecting, check:

  • πŸ”Œ Does it power the socket (some models are sensitive to voltage surges).
  • πŸ“± Application version - in older versions (<6.0) There may be connection bugs.
  • 🌐 Account Region – if China is selected and the hub is European, it will not work correctly.

πŸ’‘

The hub's voice alert in Chinese is not a mistake, but to change the language, you need to change your account region to Europe or Russia and reconnect the hub.

4. Addition of devices: light bulbs, sensors, sockets

Once you connect the hub, you can add other devices, and the algorithm is universal for most gadgets:

  1. Make sure the device is discharged/on (for example, open the battery compartment cover for sensors).
  2. In Xiaomi Home, click + β†’ Add the device and select a category (e.g. Lighting for a light bulb).
  3. Follow the instructions on the screen. For most devices, press and hold the reset button (usually 5 seconds) until the indicator starts flashing.

Typical problems and solutions:

Problem.Reason.Decision
The device is not in place.Too far from the hubBring the device to a distance of <1 meters from the hub
The indicator doesn't blink.Battery discharged.Replace the battery (e.g., sensors use CR2032)
"Can't Add" errorThe device is already tied to another hubReset the device (hold the 10+ second button)

How to reset a device without a button?
Some devices (e.g. Xiaomi Mi Door/Window Sensor) don’t have a physical reset button. To reset them, do this: 1. Remove the battery for 30 seconds. 2. Put the battery back in and immediately close/open the sensor 5 times in a row. 3. The indicator should start blinking quickly – the device is ready to connect.

5. Setting up scenarios and automation

The main advantage of a smart home is the automation of routine activities. Xiaomi Home has two types of scenarios:

  • ⏱️ Time - for example, turn on the light at 18:00.
  • πŸ”„ For example, turn on the fan if the temperature sensor shows >25Β°C.

To create a script:

  1. Go to Profile. β†’ Automation β†’ Create.
  2. Select a condition (e.g. Motion Sensor β†’ Motion Detected).
  3. Add an action (for example, the light bulb β†’ Enable).
  4. Save the script and test it out.

⚠️ Note: Scenarios are triggered with a delay of 1-3 seconds if devices are connected through the Xiaomi cloud:

  • πŸ“Ά Use local commands (if the device supports LAN control).
  • πŸ”„ Configure scripts with Home Assistant – there are minimal delays.

πŸ’‘

To speed up the scripting, disable the Cloud Sync option (if any) in the hub settings, which will force devices to communicate directly, rather than through Xiaomi servers.

6.Integration with voice assistants and other systems

Xiaomi Smart Home can be controlled by voice via Alice (Yandex), Google Assistant or Siri (HomeKit).

  1. In Xiaomi Home, go to Profile β†’ Settings β†’ Voice Assistants.
  2. Select a service (e.g. Yandex) and log in.
  3. Tell the voice assistant, β€œFind my devices,” it synchronizes the data.

For advanced users, integration is available through Home Assistant:

  • πŸ› οΈ Install the Xiaomi Miio component through HACS.
  • πŸ”‘ Get Mi Home Token for your hub (you can use the Mi Home Token Extractor app).
  • πŸ“ Add the hub to the configuration.yaml file:
miio:


devices:




- host: 192.168.1.100 #IP- Hub address




token: YOUR_TOKEN_HERE

How to get a token for Home Assistant?
1. Install the Packet Capture app on Android and start capturing traffic. 2. Open Mi Home and wait for the login request to appear. 3. In the Packet Capture logs, find the string with "token" - this is your token. ⚠️ Do not transfer the token to third parties – it can be used to manage your devices!

7. Solving common problems

Even after successful setup, failures can occur, and here are the most common ways to fix them:

Problem 1: The hub is connected, but does not control the devices.

  • πŸ”Œ Check if the hub is on blue light (if flashing yellow, no connection to the cloud).
  • πŸ“‘ Restart your router – sometimes DHCP-The server does not give the right hub IP.
  • 🌐 Check if the firewall or antivirus is blocking the connection to Xiaomi servers (api.io.mi.com).

Problem 2: Sensors are constantly shut down.

  • πŸ”‹ Replace batteries – even if they are β€œnear new,” sensors are sensitive to voltage.
  • πŸ“Ά Check the signal level of Zigbee in Xiaomi Home (Hub Settings) β†’ If the signal is weak, add a repeater (e.g. Xiaomi Zigbee Repeater).

Problem 3: The scripts are not stable.

  • ⏳ Increase the delay between commands in the script (in Home Assistant add delay: '00:00:02').
  • πŸ”„ Break a complex scenario into a few simple ones (for example, instead of one scenario with 5 actions, do 5 separate ones).

πŸ’‘

If the hub has stopped responding to commands, try resetting it to factory settings. To do this, hold the button on the hub for 10 seconds until the indicator starts flashing quickly.

FAQ: Answers to Frequent Questions

Can you use Xiaomi without the internet?
Yes, but with limitations. Locally: scripts created in Xiaomi Home (if devices support LAN-control); Home Assistant (directly connected to the hub); Voice commands (cloud requires); Phone notifications; firmware updates.
How to connect third-party devices (e.g. IKEA or Philips Hue)?
There are two ways: through Home Assistant: Add Integration Zigbee2MQTT Or deCONZ, then connect the devices to them. Through Aqara Hub: Some Aqara hubs support devices from other brands out of the box". ⚠️ Philips Hue devices require a Hue Bridge and do not connect directly to Xiaomi.
Why do motion sensors work falsely?
Causes and solutions: πŸ• Pets: Install the sensor above (at height 2)+ Meters) or use models with sensitivity settings (e.g. Xiaomi Motion Sensor 2). 🌬️ Sleeve: Secure the sensor away from windows and vents. β˜€οΈ Direct sunlight: Infrared sensor can respond to heat from the sun - use dimming.
How to transfer devices to a new hub?
Algorithm: Reset all devices (hold the reset button or remove the batteries). Connect the new hub to the same Xiaomi Home account. Add the devices again via Add the device. ⚠️ The scripts will have to be reconfigured – they don’t automatically transfer.
Can you use a Xiaomi smart home in a country house with poor internet?
Yeah, but: πŸ“‘ Use local scripts (via Home Assistant). πŸ”‹ For sensors, choose low-power models (e.g., Xiaomi Aqara lasts up to 2 years on a single battery). πŸ“Ά If the internet is shut down often, set up backup control via LAN (If the router supports offline modes).