How to connect Xiaomi Hub: full instructions for setting up the gateway

Integrating smart home devices into a single ecosystem is impossible without a central control element, which is often a gateway or hub. Many users face difficulties at the initial stage when it is necessary to connect disparate sensors, lamps and switches into one network. Proper installation of Xiaomi Gateway or universal hub from the Aqara brand allows not only to automate scenarios, but also to ensure stable operation of all components of the system even in the absence of the Internet.

In this guide, we will discuss the process of physical connection, configuration through the Mi Home application and integration with voice assistants. You will learn how communication protocols differ, how to avoid typical pairing errors and why some devices do not see your gateway. For a stable Zigbee network, it is critical to have a hub no more than 5-7 meters from the router in direct sight.

The setup process may seem complicated at first glance, but following the steps consistently ensures a successful launch. We’ll look at the nuances of working with different versions of applications and server regions, which often becomes a stumbling block for beginners.

Preparation of equipment and selection of installation site

Before you start the software settings, you need to properly prepare the physical environment. Xiaomi gateways, working on the Zigbee or Bluetooth Mesh protocols, are sensitive to interference and the distance to the control device. The optimal place to place will be the central point of the apartment or the zone with the maximum number of connected peripherals.

Make sure you have the gateway on hand (it could be a Xiaomi Smart Home Hub, Aqara Hub M2 or older models like Gateway 2), a power supply and a USB cable if it’s not built in. You’ll also need a smartphone with a Mi Home app installed (or Aqara Home for the Aqara ecosystem) and an active account. It’s important that the phone is connected to a 2.4GHz Wi-Fi network, as most smart home devices don’t support the 5GHz band.

⚠️ Note: Do not place the hub in close proximity to microwave ovens, high-power radios, or behind thick metal structures, as this can significantly degrade the quality of the Zigbee signal.

Check the hardware. The box usually contains a manual in Chinese and English, the gateway module itself, and in some cases, plug adapters. If you purchased a device without a power supply (such as a USB version), make sure your adapter produces sufficient current, usually 5V/1A or 5V/2A.

πŸ’‘

Use the original cable from the kit or a quality analogue no more than 1 meter in length to avoid voltage drop and unstable operation of the gateway.

Physical connection and initial activation

The activation process starts with power to the device, connect the gateway to the socket or USB-router/adapter port: The indicator on the case should light up, usually yellow or orange, to signal the standby mode (conjugation). If the indicator does not light up, check the integrity of the cable and the presence of voltage in the network.

For devices that require LAN cable connectivity (such as Xiaomi Multimode Gateway or Aqara Hub M1S), connect the gateway to an Ethernet router. This will provide the most stable connection, eliminating possible loss of data packets over Wi-Fi. Once the cable is connected, the indicator should change the color or blink mode, indicating the presence of a network connection.

  • πŸ”Œ Connect the power supply to the gateway and insert the plug into the socket.
  • πŸ“‘ If necessary, connect the hub to the router. LAN-cable.
  • πŸ’‘ Wait until the indicator lights up in orange or yellow.
  • πŸ“± Make sure Bluetooth on your smartphone is enabled for a quick device search.

If you're using a wireless gateway that connects directly to Wi-Fi, move on to the next step. For wired models, it's important that the router is activated. DHCP-server that will automatically provide IP-Address to a new device on the network. In most home networks, this feature is enabled by default.

β˜‘οΈ Hub's primary launch

Done: 0 / 1

Setup via Mi Home and Aqara Home

The main configuration is via the mobile app. Open Mi Home, make sure the profile selects the correct region (often for Xiaomi devices it is China or Europe, depending on the version of the hub). Press the + button in the upper right corner to add a new device. The app will automatically scan the environment and prompt you to add the found gateway.

If the automatic search failed, select the device manually from the directory. Type the Xiaomi or Aqara brand name into the search box. Follow the instructions on the screen: you will be asked to confirm the reset of the hub settings if it has been previously used. To reset, you must press the button on the device body for 5-10 seconds before the beep or change the color of the indicator.

In the process of setting up, you'll be asked to choose a Wi-Fi network. As mentioned earlier, it should be a 2.4 GHz network. Enter a password from your wireless network. The application will transmit this data to the gateway, at which time the phone may temporarily lose its Wi-Fi connection, which is normal behavior when transferring configuration.

Hub modelProtocol of communicationSupport for HomeKitNutrition
Xiaomi Gateway 2ZigbeeNo.USB/Socket
Aqara Hub M2Zigbee 3.0 / Wi-FiYes.USB-C
Xiaomi MultimodeZigbee / Bluetooth / Wi-FiNo (depending on version)USB-C
Aqara Camera HubZigbee 3.0 / Wi-FiYes.USB-C

Once successfully connected, the gateway will update its firmware, a process that can take several minutes for the device to restart, and do not turn off power at this point so as not to damage the software.

πŸ“Š What application you use to manage?
Mi Home (China): Mi Home (Europe): Aqara Home: Other

Interconnection of peripheral devices and sensors

Once the hub has been successfully added to the app and connected to the Internet, you can start adding endpoints: motion sensors, door openings, smart sockets and switches. Put the hub into add mode. In the Mi Home app, this is done by clicking on the hub icon and selecting "Add device" or "Pair mode."

Most Xiaomi and Aqara sensors have a small button. To activate the mode, you need to quickly press this button 3-5 times until the indicator on the sensor flashes blue. If the sensor is new and sealed, often just remove the insulating tape from the battery compartment, and it automatically goes to network search mode.

⚠️ Attention: Bring the sensor to the hub at a distance of no more 1-2 Once the device is successfully attached, it can be moved to the desired location in the room.

The app should recognize the type of device and give it a name. You can rename the sensor by specifying its location (for example, "Motion Sensor in the corridor"). This will make it easier to create automatic scenarios in the future. If the device is not located, try repeating the procedure, first making sure that the battery in the sensor is charged and installed correctly.

Problems finding devices
If the hub doesn’t see the sensor for a long time, try holding the phone running the Mi Home app close to the sensor. Sometimes the smartphone acts as a Bluetooth repeater for initial settings of Zigbee devices. Also make sure that the hub does not set a limit on the number of connected devices (usually the limit is 32 or 128 devices depending on the model).

Creating automation and work scenarios

The main value of a smart home is automation. Once you've connected all your devices, go to the Scripts or Automation tab in the app, and here you can create chains of action that are like, "If you want to do it, you can do it." β†’ For example, "If the door opener is activated and the time after 23:00 is over." β†’ Turn on the lights in the hallwayΒ».

To create a complex scenario, select a trigger (start condition) that can be a temperature sensor reading, movement, pressing a button, or time of day. Then add the action that a hub or other device on the network must perform. You can combine several conditions using the logical operators "And" or "OR".

  • πŸŒ… Morning: The alarm clock opens the curtains and turns on the kettle.
  • 🏠 Leaving the house: Turning off all the lights and turning on the security mode.
  • πŸŒ™ Night: When driving in the corridor, only the night light is turned on at 5% brightness.
  • πŸ’§ Safety: When water leaks, the tap is blocked and a notification is sent.

Remember to test the scripts you create. Sometimes the logic of the work may be different from what you would expect due to network delays or specific device performance, and use manual start mode to check if you're doing the work correctly.

πŸ’‘

Local scripts run directly on the hub work faster and more reliable than cloud scripts, as they do not depend on the speed of the Internet and Xiaomi servers.

Integration with voice assistants and third-party systems

For full comfort, the Xiaomi hub needs to be linked to voice assistants. If you have devices that support Apple HomeKit (the logo of the house on the box), the process of integrating into the Home app on the iPhone is done by scanning the device. QR-This allows you to manage devices through Siri without using Chinese servers.

For users of the Yandex or Google Home ecosystem, you need to link your Mi Home account with the appropriate skill. In the Yandex app, go to Devices β†’ + β†’ Smart Home β†’ Xiaomi Mi Home. After authorization and selection of a room, all compatible devices will appear in the list of available voice control devices.

It is important to note that not all Xiaomi devices support direct integration with Alice or Google Assistant. Often, the device or hub itself is required to have the appropriate certificate. In complex cases, you may need to use an intermediate gateway, such as Home Assistant, running on a separate server or Raspberry Pi.

⚠️ Note: When integrated with voice assistants, device names should be simple and unambiguous. Avoid complex names that the assistant may misrecognize by ear.

Frequently Asked Questions (FAQ)

Why does the hub not see the device when added?
Most often, the problem lies in the distance (the sensor is too far from the hub during settings) or the battery is discharged. Also make sure that the hub is in pairing mode (blind light flashes). Try to bring the sensor close to the hub and repeat the procedure.
Can you connect the Xiaomi hub to the router via 5 GHz Wi-Fi?
No, most Xiaomi smart home devices only work in the 2.4GHz band. If your router is broadcasting a single network with a common name (Smart Connect), try temporarily splitting networks in the router settings or creating a guest network only for 2.4GHz.
What to do if the hub lost connection to the Internet?
Check the cable. LAN (If you're using a wired connection, or you're using a Wi-Fi signal stability, make sure the router is giving you a handout. IP-In the Mi Home app, the device status will change to "Offline." Try rebooting the hub by turning off and on the power.
How many devices can be connected to a single hub?
The limit depends on the model. Older gateways (Gateway 2) support up to 32 devices. Newer models such as the Aqara Hub M2 or Xiaomi Multimode Gateway can serve up to 128 devices on the Zigbee network.