What is Xiaomi Hub and why is it needed in the smart home ecosystem?
Xiaomiβs smart hub (or Mi Smart Home gateway) is the central device that connects all components of the Mi Home ecosystem. Without it, most sensors (movements, door openings, water leaks) and some actuators (such as wireless switches) simply wonβt work. The hub performs two key functions: it integrates devices using the Zigbee protocol and connects them to the Xiaomi cloud via Wi-Fi.
Why does that matter? Because Zigbee is a low-energy protocol that's optimized for battery-powered sensors, and it doesn't require a constant connection to a router like Wi-Fi, but it needs a central hub that will relay signals. Without a hub, you can't:
- πΉ Receive notifications about the operation of sensors on the smartphone
- πΉ Configure automation between devices (for example, turning on lights when moving)
- πΉ Manage a smart home remotely through the Mi Home app
There are several hub models on the market: the classic Xiaomi Mi Smart Home Gateway (round, with a speaker), Xiaomi Mi Smart Home Gateway 3 (rectangular, without a speaker) and Aqara Hub (compatible with the Xiaomi ecosystem, but with advanced features). In this article, we will look at the setup using the example of the original Xiaomi hubs, but most of the steps will be suitable for Aqara.
Preparation for setup: what to do before connecting the hub
Before you start setting up, make sure you have everything you need. The Xiaomi hub does not require any complicated preparation, but a few nuances are worth considering:
β οΈ Note: Xiaomi Hub only works with 2.4 GHz networks. If your router broadcasts two networks (2.4 and 5 GHz) under the same name, the hub will not be able to connect. Disable 5 GHz or split the networks in the router settings before setting up.
What will be required for successful installation:
- π± Smartphone with Mi Home app installed (available for Android and iOS)
- π Power supply (the hub connects to the 220V outlet)
- πΆ 2.4 GHz stable Wi-Fi network (password from the network must be in Latin!)
- π§ Screwdriver (if you plan to attach the hub to the wall)
Also check the region of your Mi Home account. The hub is linked to the region specified when you register with the app. If you choose China, some devices (e.g. European versions of sensors) may not connect. The recommended region is Russia or Europe.
How to change the region in Mi Home if it is chosen incorrectly?
Step-by-step: connecting the Xiaomi hub to Wi-Fi
Now, let's get to the setup process itself. Follow the instructions in stages to avoid errors:
- Connect the hub to power. Place it in the middle of the apartment (for better coverage with Zigbee network) and insert the plug into the socket. The indicator on the hub should light up orange (means ready to set up).
- Open the Mi Home app and click + β Add the device.
- Select the Gateway category and find your hub model (e.g. Xiaomi Mi Smart Home Gateway 3).
- Follow the setup wizard: πΉ Confirm the indicator flashing (click "Next") πΉ Select your 2.4GHz Wi-Fi network and enter your password πΉ Wait for the connection (the hub will issue a voice alert in Chinese or a melody)
If the hub is not connected:
- π Check that the indicator is on orange (if flashing blue, the hub is already linked to another account).
- πΆ Make sure your smartphone is connected to the same 2.4GHz network as the hub.
- π Reboot router and hub (take out the plug for 10 seconds).
βοΈ Checklist before re-attempting to connect
Setting up a room and adding devices to the hub
Once the hub is successfully connected to Wi-Fi, it needs to be tied to a room in the Mi Home app, which will help structure devices and simplify management:
- In the main menu of the application, find your hub (it will appear as a Gateway).
- Click on the three dots in the upper right corner β Settings β Room.
- Choose an existing room or create a new one (e.g., Corridor, Bedroom).
Now you can add devices.
- Press + β Add the device.
- Select a category (such as Sensors or Smart Lamps).
- Follow the instructions on the screen (usually you need to press the button on the device to pair).
An important nuance: some devices (such as Aqara sensors) require a hub firmware update before connecting. If the device is not located, check for updates in the gateway settings.
π‘
If the sensor does not connect, try to bring it as close as possible to the hub (at a distance of 10-20 cm) and repeat the pairing procedure.
Advanced settings: automation and scenarios
The main advantage of the Xiaomi hub is the ability to create automation (or βscenariosβ), for example, you can set the lights on when the motion sensor is triggered or send a notification when the door is opened.
Creating a Simple Automation
- In the Mi Home app, go to Automation (Icon) βοΈ bottom-screen).
- Press Add Add Add. β Create automation.
- Select a condition (e.g. Motion Sensor β Motion Detected).
- Select an action (e.g., Smart Lamp β Enable).
- Save the script.
Advanced scripting settings
For more complex automation, use:
- π Multiple conditions (e.g. if movement and time after 18:00").
- β±οΈ Delays (e.g., turning off lights 5 minutes after the sensor is triggered).
- π΅ Notifications (sending push or SMS sensor-activation).
An example of an advanced scenario:
Condition 1: Door Open Sensor β "Open" Condition 2: Time β 22:00 to 06:00 Action: Enable Hub siren + send a notification to the phone.
π‘
To be able to run the automation, the hub has to be constantly connected to power and the Internet, and if you cut the power, the scenarios won't work.
Integration with other services: Google Home, Home Assistant, Yandex Alice
Xiaomi Hub can be integrated with third-party platforms to expand the functionality.
| Platform | What integration does | How to connect |
|---|---|---|
| Google Home | Voice control via Google Assistant | In Mi Home β Hub Settings β Smart Home β Google Home |
| Home Assistant | Local management without cloud, advanced automation | Through the Xiaomi Miio component (device token required) |
| Yandex Alice | Voice management in Russian | In the application Yandex β Devices β Add Xiaomi β |
Integration with Home Assistant requires the device token, which can be done through apps like Mi Home Token Extractor (Android-only), and attention: transferring the token to third parties could compromise the security of your ecosystem!
Solving common problems with the Xiaomi hub
Even after you've set it up properly, you can have a failure, and let's look at the typical problems and the ways that you can solve them.
Hub does not connect to Wi-Fi
- π Check that the indicator is on orange (if flashing blue, the hub is already linked to another account).
- πΆ Make sure the 2.4GHz network is not hidden (SSID broadcast).
- π Restart router and hub (pull out the plug for 30 seconds).
Devices are disconnected from the hub
- π‘ Check the distance between the hub and sensors (maximum) 10-15 footprint).
- π Replace the batteries in the sensors (once in a week) 1-2 year-end).
- π Update the hub firmware in the Mi Home settings.
Hub does not make sounds (for models with a speaker)
- π Check the volume in the hub settings (Settings) β Sound).
- π΅ Make sure the alert melody is selected (not "No sound").
- π§ Reset the hub to factory settings (reset button for 5 seconds).