How to connect Xiaomi hub to a smart home: full instructions with photos and tips

Xiaomi’s smart home starts with a hub, a central device that links all sensors, lamps and outlets into a single system. Without the right hub connection, even the most advanced gadgets will remain β€œstupid” accessories. In this article, we’ll look at all the stages of setting up, from unpacking the box to creating the first automations, and also explain how to avoid the typical mistakes that cause the hub to refuse to work.

It doesn’t matter if you bought the first version of the Mi Home Hub, the Aqara Hub. M2 Or the new Xiaomi Smart Home Hub 2 β€” the connection principles are similar, but there are nuances that the manufacturer does not say, such as why the hub does not see sensors at a distance of more than 10 meters or how to make it work consistently with Home Assistant. We have collected up-to-date data for 2026, including bypassing restrictions for Russian users after changes in the Mi Home ecosystem.

1. What Xiaomi hubs are and which one to choose

Before connecting, it is important to understand what device you are holding. Xiaomi hubs are divided into three main lines, and each has its own characteristics:

  • πŸ”Ή Mi Home Hub (1st version) is the simplest and cheapest option, works only with the ZigBee protocol, does not support Thread or Matter. Suitable for basic scenarios (lighting, motion sensors).
  • πŸ”Ή Aqara Hub (M1S, M2, E1) β€” Advanced models with ZigBee 3.0 support, built-in speaker (for sirens) and Ethernet port. M2 It can work as a router for other hubs.
  • πŸ”Ή Xiaomi Smart Home Hub 2 is the flagship of 2023 with support for ZigBee, Thread, Matter and Bluetooth Mesh. Perfect for complex systems with devices of different brands.

If you are just planning to buy, focus on the following tasks:

Hub modelProtocolsMax. Devices.FeaturesPrice (2026)
Mi Home HubZigBee32Budget, no Ethernet~1 500 β‚½
Aqara Hub M2ZigBee 3.0128Ethernet, siren, backup power~3 500 β‚½
Xiaomi Smart Home Hub 2ZigBee/Thread/Matter200Support for Apple HomeKit, Bluetooth Mesh~5 000 β‚½

⚠️ Note: Mi Home hubs older than 2020 may not support new Xiaomi devices due to outdated firmware.

πŸ“Š What Xiaomi Hub Are You Using?
Mi Home Hub (Version 1)
Aqara Hub (M1S/M2/E1)
Xiaomi Smart Home Hub 2
Another brand
I haven't bought it yet.

2.Preparation for connection: what to do before the hub is turned on

Many users include a hub in the socket and immediately try to set it up β€” this is a gross mistake. Without prior preparation, you risk endless connection errors or unstable system operation.

  • πŸ“± Install the Mi Home app (or Aqara Home) and Aqara hubs are better served by a proprietary app, which is more stable with automation.
  • 🌍 Select the right region. When registering for an account, please specify Russia or Mainland China (if you plan to use Chinese servers for greater stability).
  • πŸ“Ά Check the Wi-Fi network. the hub does not support networks with: πŸ”’ Password from WPA3 (only WPA2-PSK) πŸ“‘ 5 GHz frequency (2.4 GHz only) πŸ”„ Hidden. SSID (The name of the network should be visible)
  • πŸ”Œ Prepare the hub for the optimal location: πŸ“ At an altitude of 1-1.5 meters from the floor 🚫 Away from metal objects and thick walls πŸ“Ά In the center of the house (for uniform coverage with the ZigBee signal)

Install Mi. Home/Aqara Home|Register an account (Russia/China region)|Connect to Wi-Fi 2.4 GHz (WPA2)|Unpack the hub and check the completeness|Select a place to install (center of the house, without interference)-->

⚠️ Note: If your router supports only WPA3, Create a separate network for a smart home WPA2. Xiaomi hubs are not able to work with modern encryption standards.

3. Step-by-step instructions: how to connect the Xiaomi hub to Wi-Fi

Now, the connection process itself, and the instructions are universal for all hub models, but we'll be highlighting the nuances for specific devices.

Step 1. Connect the hub to the power supply

  • πŸ”Œ Put the plug in the socket. The hub should flash a blue LED (Aqara Hub) M2 β€” yellow).
  • ⏳ Wait 30 seconds – the device should issue a voice greeting (if there is a speaker) or blink at intervals of 1 time per second.

Step 2: Start the appendix process

  1. Open Mi Home β†’ press + β†’ Add the device.
  2. Select the Hub/Gateway category.
  3. Find your model in the list (e.g. Xiaomi Smart Home Hub 2).

Step 3: Connect to Wi-Fi

  • πŸ“Ά The application will offer to connect to the temporary network of the hub (type name) Xiaomi_XXXX). Do it.
  • πŸ”‘ Enter a password from your main 2.4 GHz network.
  • ⏳ The device is added. At this stage, the hub can restart (the LED blink will stop for 10-15 seconds).

Step 4: Update the firmware

Once connected, the hub will automatically check for updates.Don't interrupt the process! for Aqara Hub M2 Xiaomi Smart Home Hub 2 update can take up to 10 minutes:

  1. Turn off the power for 30 seconds.
  2. Reconnect and try again.

What to do if the hub does not connect to Wi-Fi?
1. Check that the network is running at 2.4 GHz (turn off 5 GHz in the router settings). 2. Make sure the network name is in the network name (SSID) No Cyrillic or special characters (Latin and numbers only). 3. Reboot the router and hub (turn both off power for 1 minute). 4. If you use Aqara Hub, try the Aqara Home app instead of Mi Home - it often does a better job of connecting.

Set up the region and servers: why it matters

One of the most common questions is, "What region to choose in Mi Home?" Not only does it affect the stability of the work, but also the availability of certain features, for example, when you choose China (Mainland China), you will get:

  • βœ… More supported devices (including Chinese versions of sensors).
  • βœ… Faster firmware updates.
  • ❌ English Interface (no Russian language).
  • ❌ Possible problems with geolocation (if you use location-based automation).

When choosing Russia (Russia):

  • βœ… Russian language in annex.
  • βœ… Local servers (less delays).
  • ❌ Limited list of supported devices (some Chinese gadgets won't be added).

How to change the region after setting up:

  1. Open Mi Home β†’ Profile β†’ Settings β†’ Region.
  2. Select the right country and confirm the change.
  3. ⚠️ All the devices will shut down! You'll have to add them again.

πŸ’‘

If you have chosen China, but you want Russian in the app, set Mi Home in English, and then add Russian as the main language in your phone settings. The app will automatically translate part of the interface.

5. Adding devices to the hub: sensors, lamps, sockets

Now that the hub is connected, it's time to add other devices to it, and it's a simple process, but that's where most of the mistakes are, and we'll take the step-by-step instructions and the typical problems.

Step 1: Preparation of the device

  • πŸ”‹ Make sure the device is charged/on (e.g., there is a battery in the motion sensor).
  • πŸ“¦ Take it out of the box and don’t press the buttons before the addition process begins.

Step 2: Launch of the appendix in the annex

  1. At Mi Home, press + β†’ Select the category of the device (for example, Sensors). β†’ Motion sensor).
  2. Follow the instructions on the screen: πŸ”„ Press and hold the button on the device (3-5 seconds) until the LED blinks. πŸ“± Bring the phone closer to the device (for Bluetooth devices).

Step 3: Checking the connection

Following the successful addition:

  • πŸ” The device will appear in the list on the main screen of Mi Home.
  • πŸ“Š Check his status: if the name is burning green tick – all right.
  • βš™οΈ Go to the device settings and update the firmware (if available).

⚠️ Note: If the device is not added, try: Reboot the hub (turn off power for 20 seconds). Make sure the distance between the hub and the device is no more than 5 meters (for the first connection).

πŸ’‘

To ensure a stable ZigBee network, avoid chains of more than 3-4 devices, and it is better to distribute the sensors evenly throughout the house, rather than connecting them sequentially.

6.Creating Automations: How to Make Devices Work Together

The great thing about a smart home is automation, where devices interact without you, like the lights go on when you're moving, and the power outlet goes off when you leave the house, and we'll figure out how to set that up.

Step 1. Go to Automation section

  • In Mi Home, click Automation (or Automation) β†’ Create automation.
  • Select the type: If... then... (conditional) or Schedule.

Step 2: Set the condition (trigger)

Examples of triggers:

  • 🚢 Motion sensor β†’ Traffic detected.
  • πŸšͺ Door opening sensor β†’ Door open.
  • πŸ•’ Time. β†’ Every day at 22:00.
  • πŸ“ Geolocation β†’ Everyone left home (requires switching on) GPS phone-on).

Step 3. Set the action.

What should happen when the trigger is triggered:

  • πŸ’‘ Turn on the lamp (select a specific lamp from the list).
  • πŸ”Œ Turn off the socket.
  • πŸ”” Enable the siren on the hub (available for Aqara Hub) M2).
  • πŸ“± Send notification to the phone.

Example of automation:

  1. If β†’ Traffic sensor in the corridor β†’ Traffic detected.
  2. And β†’ Time between 18:00 and 23:00.
  3. To β†’ Turn on the lamp in the corridor for 5 minutes.

πŸ’‘

To make automation work consistently, avoid challenging conditions with more than 3-4 triggers. Break them down into a few simple rules.

7. Common Problems and Solutions

Even after a successful setup, the hub can behave unstable. TOP-5 problems and ways of solving them.

Problem.Possible causeDecision
Hub does not connect to Wi-FiIncorrect router settings (WPA3, 5 GHz, hidden SSID)Switch the router to the router. WPA2, 2.4 GHz, make the network visible
Devices are disconnected from the hubWeak signal ZigBee (many walls, interference)Move the hub to the center of the house, add a repeater (e.g. Xiaomi ZigBee Repeater)
Automation doesn't work.Disparity between hub region and devicesReconfigure all devices to one region (China or Russia)
Hub constantly rebootingUnstable nutrition or overheatingConnect through the network filter, provide ventilation
No firmware updates.Blocking Xiaomi serversUse it. VPN (China region or wait 1-2 days

⚠️ Attention: If the Aqara Hub M2 After the update, the sensors stopped seeing, reset to factory settings (hold the button on the hub for 10 seconds until the sound signal.

8 Advanced Settings: Integration with Home Assistant and Matter

For power users, basic Mi Home features may not be enough. Let's take a smart home to the next level.

Integration with Home Assistant

Home Assistant is an open smart home management platform that supports Xiaomi hubs through a plugin. Zigbee2MQTT or Xiaomi Miio.

Steps for connection:

  1. Install Home Assistant on a Raspberry Pi or other server.
  2. Add Xiaomi Miio integration through HACS (Home Assistant Community Store).
  3. Enter. IP-Hub address and token (you can get it through the Mi Home application and the miio-cli tool).
  4. Example of a command to receive a token: miio --discover miio --ip 192.168.1.100 --token YOUR_TOKEN info

Support for Matter

The new hubs (Xiaomi Smart Home Hub 2) support the Matter protocol, which allows you to manage devices via Google Home, Apple HomeKit or Amazon Alexa without additional bridges.

How to connect to Matter:

  1. Update the hub firmware to the latest version.
  2. In Mi Home, go to the Hub settings β†’ Matter β†’ Add to another system.
  3. Scan it. QR-code from the hub in the Google Home or Apple Home app.

πŸ’‘

Integration with Home Assistant gives access to advanced automation (for example, communication with the Internet).-Xiaomi It requires technical skills, but for beginners it is better to start with the basic features of Mi Home.

FAQ: Answers to Frequent Questions

Can I connect the Xiaomi hub without the Mi Home app?
Technically yes, but this requires the use of alternative firmware (e.g. Tasmota or ESPHome) and soldering works to firmware through the UART. For most users, this method is not suitable due to the complexity and risk of "bricking" the device.
Why does Xiaomi Hub not see some devices?
There are several reasons: The device and the hub are tied to different regions (for example, the hub on servers in China, and the sensor is in Russia), the device is incompatible with your model of the hub (check on the official website), the firmware of the hub is outdated (renew it manually).
How to reset the Xiaomi hub to factory settings?
Method depends on model: Mi Home Hub: Hold the button on the body for 5-10 seconds until flashing with a yellow LED. Aqara Hub M2: Hold the button 10 seconds to the beep (voice message "Reset successful"). Xiaomi Smart Home Hub 2: Press the button for 15 seconds until it flashes red. After resetting the hub will have to add again to the application.
Can you use Xiaomi without the internet?
Yes, but with reservations: Local automation (for example, if the motion sensor is used) β†’ Control via the Mi Home app and notifications will not work without the Internet. For full autonomy, configure control via Home Assistant or local scenarios in Aqara Home.
How to increase the range of the ZigBee signal?
If the sensors are turned off at a long distance: Add a ZigBee repeater (such as Xiaomi ZigBee Repeater or a Yeelight lamp with ZigBee support). Place the hub higher (at 1.5-2 meters from the floor). Remove the sources of interference: microwaves, wireless phones, other Wi-Fi devices at 2.4 GHz. Use ZigBee-mesh: add intermediate devices (such as sockets) that will relay the signal.