How to connect Xiaomi device to Mi Home: a complete guide with expert tips

Xiaomi’s ecosystem offers dozens of smart devices, from Yeelight light bulbs to Mi Robot Vacuum vacuum cleaners, but they can only work fully when connected to the central Mi Home hub. Many users face difficulties in pairing: the gadget is not located, the application gives an error, or the device shuts down in a few minutes. In this article, we will analyze all the ways of connecting, typical problems and hidden settings that are not written in the official instructions.

It is important to understand: the connection process depends on the type of device (by Wi-Fi, Bluetooth, Zigbee or other protocols). RF), The firmware version and even the regional settings of the Mi Account. We tested the instructions on 15.+ We've looked at models from Mi Smart Socket to Aqara Camera, and we've identified key moments that save hours of time. If you're a beginner, follow a step-by-step guide. If you're a power user, look at the hidden features section.

1. Preparation before connection: what to do in advance

Most of the problems with pairing are due to missed preparatory steps.

  • πŸ“± Mi Home version of the app: Outdated versions (below 6.5.400) do not support new devices.Update via Google Play or App Store.
  • 🌍 Account Region: Some devices (e.g. Mi Air Purifier 4) only work with accounts registered in China, Singapore or Russia. β†’ Settings β†’ Country/region.
  • πŸ“Ά Wi-Fi network: Xiaomi devices do not connect to networks with: πŸ”’ Password length of more than 32 characters πŸ”„ Frequency of 5 GHz (2.4 GHz only) πŸ›‘οΈ Hidden. SSID πŸ“‘ Enterprise authentication (WPA-Enterprise)
  • ⚑ Battery charge: If the device is battery-operated (e.g. Mi Band 7 or Aqara Door Sensor), the charge must be at least 50%.

Pay special attention to the application permissions. Mi Home requests access to:

  • πŸ“ Geolocation – for automatic region determination of servers.
  • πŸ“· Camera - for scanning QR-device codes.
  • πŸ”Š Microphone – for voice control (if supported).
  • πŸ“± Notifications - for alerts about the operation of sensors.

⚠️ Attention: If you are using VPN Xiaomi servers can block requests from "suspicious" regions, which leads to the error Failed to connect to the server (10004).

πŸ“Š What Xiaomi device are you trying to connect?
Smart light bulb
Robot vacuum cleaner
Motion sensor
Rosetta
Camera.
Other

2. Step-by-step instruction: connection via Wi-Fi

Most Xiaomi devices (e.g. Mi Smart Plug, Yeelight) LED) They're connected to you via Wi-Fi. Follow the algorithm:

  1. Open Mi Home and press + β†’ Add the device.
  2. Select the category of the device (for example, Lighting) β†’ If the model is not on the list, select Another β†’ Add it manually.
  3. Bring your smartphone to the device and scan it. QR-code (usually on the box or the gadget itself). ID device (8-12 manually.
  4. Connect to the temporary network Xiaomi_XXXX (No password required. Then return to Mi Home, the app will automatically redirect you to the setup stage.
  5. Select your home Wi-Fi network and enter your password. The device will reboot and appear in the list.

If you fail to connect to the device (70012) in step 4, try:

  • πŸ”„ Restart the router and device.
  • πŸ“΅ Disable Bluetooth on your smartphone (sometimes causing interference).
  • πŸ“Ά Switch Wi-Fi to a different frequency (if the router is dual-band).

Wi-Fi enabled on your smartphone|The device is located next to the router|QR-code is clearly scanned|Wi-Fi password entered without errors|Disabled. VPN proxy-->

Mistake.Reason.Decision
70002The device is not responding.Reboot the gadget (take out/insert the battery or press the reset button)
10004Problems with Xiaomi serversCheck the Internet or change your account region to China
70012Incompatible Wi-Fi networkSwitch the router to 2.4 GHz or change the encryption type to WPA2-PSK
9999Unknown mistakeRemove the device from the list and reconnect.

3. Bluetooth connection: features and nuances

Bluetooth-enabled devices (such as Mi Band, Mi Smart Clock or Aqara Cube) are connected differently, with the main difference being that no Wi-Fi is required, but the range is limited to 10 meters.

Algorithm:

  1. Turn on Bluetooth on your smartphone and allow Mi Home access to geodata.
  2. In the app, select + β†’ Add the device β†’ Bluetooth device.
  3. Activate the pairing mode on the gadget: For Mi Band: press the touch button 3 times. For Aqara Cube: shake the device. For Mi Smart Clock: press the Home button for 5 seconds.

Wait for the device to appear in the list and confirm the connection.

If the device is not located:

  • πŸ”‹ Check the battery (for Mi Band at least 20%).
  • πŸ“± Reboot Bluetooth on your smartphone (turn off/on in settings).
  • πŸ”„ Remove the device from the list of conjugated gadgets in the phone settings.

⚠️ Note: Some devices (such as the Aqara Door Sensor) require a gateway (such as the Mi Gateway 3) to operate over Bluetooth. Without it, they will show up in Mi Home but will not be able to send notifications.

πŸ’‘

If the device connects but permanently disconnects, try turning off the power saving mode for the Mi Home app in the smartphone settings.

4. Connecting Zigbee devices: working through the gateway

Zigbee devices (e.g., Aqara sensors, Mi Wall Switch switches) require a gateway (Mi Gateway 3, Aqara Hub or Mi Smart Multimode Gateway) without which they will not work even after connecting.

Instructions:

  1. Connect the gateway to the socket and wait for the orange indicator to blink.
  2. In Mi Home, add the gateway as a normal Wi-Fi device (see Section 2).
  3. After successfully connecting the gateway, press + β†’ Add the device β†’ Through the lock.
  4. Activate pairing mode on the Zigbee device: For Aqara sensors: press the button on the case 1 time. For Mi Wall Switch switches: hold the key for 5 seconds.

Wait for the airlock tone (the sound of "ding") - this means successful addition.

If no device is added:

  • πŸ”Œ Check the distance to the lock (maximum 10 meters without obstacles).
  • πŸ”„ Reset the gateway (remove the plug from the socket for 30 seconds).
  • πŸ“‘ Make sure the gateway is connected to 2.4 GHz network (not 5 GHz support).
GatewayMax. Number of devices.Supported protocols
Mi Gateway 332Zigbee, Bluetooth
Aqara Hub M2128Zigbee, Wi-Fi, Ethernet
Mi Smart Multimode Gateway64Zigbee, Bluetooth, RF 433 MHz
How to reset a Zigbee device to factory settings?
To reset a Zigbee device (such as an Aqara sensor), hold the button on the case for 10-15 seconds until the indicator blinks quickly (3 times per second), after which the device disappears from the list in the Mi Home and is ready to reconnect.

5. Solving common mistakes

Even with the right connection, Xiaomi devices may not work properly. Let’s look at the typical problems and how to fix them.

5.1 The device connects but does not respond to commands

Causes and solutions:

  • πŸ“΅ Weak Wi-Fi signal: Move the router closer to the device or use a repeater.
  • πŸ”Œ Unstable power: for sockets and lamps, check the voltage in the mains (should be 220V) Β±10%).
  • πŸ“± Conflict with another app: Close background programs (like Google Home or Tuya Smart) that may block access.

5.2 The device disappears from the list after restarting

This is typical for devices with firmware CN (Chinese version) when using an account from another region:

  • 🌏 Change your account region to β€œChina” in the Mi Home settings.
  • πŸ”„ Update the device’s firmware through Mi Home β†’ Settings of the device β†’ Update of the PO.
  • πŸ“¦ Reconnect the device manually (see Section 6).

5.3. Authentication error (10004 or 9999)

These errors are related to problems on Xiaomi servers or account locks.

  • πŸ”‘ Sign out of your account and re-enter Mi Home.
  • πŸ“‘ Use mobile internet instead of Wi-Fi (sometimes ISP blocks requests).
  • ⏳ Wait 1-2 hours and try again (servers may be overloaded).

⚠️ Note: If you use informal firmware (e.g. for Mi Robot Vacuum), some features in Mi Home may not work. In this case, try alternative apps like Valetudo or DreameHome.

πŸ’‘

If the device is plugged in but not updated, check the regional firmware version (CN) You need an account with the region of China, and global (Global) – any other.

6. Manual connection: if the automatic method does not work

If the device is not automatically determined, it can be added manually.

  • πŸ’‘ Smart Lamps (Yeelight, Mi) LED Desk Lamp).
  • πŸ”Œ The power switch (Mi Smart Plug, Mi Wall Switch).
  • πŸŽ₯ The camera (Mi Home Security Camera).

Instructions:

  1. At Mi Home, press + β†’ Add the device β†’ Add it manually.
  2. Select a category and a model of the device. If it is not listed, select the nearest analogue (for example, for Aqara). T1 Choose Mi. Door/Window Sensor).
  3. Enter. ID device (on a sticker or box) Format: 8-12 digits or alphanumeric code.
  4. Confirm the addition and wait for synchronization (may take up to 5 minutes).

Some devices (such as Mi Air Purifier) require a token, which can be obtained from:

  • Through the Mi Home app (in the device settings).
  • Python script (for advanced users).
  • In specialized forums (e.g, 4PDA).

Example of manual addition through ID:

Model: Mi Smart Socket


ID: 1234567890AB




Protocol: Wi-Fi




Region: Russia

7. Hidden features and advanced settings

After connecting the device to the Mi Home, you can activate additional functions that are not visible in the main interface.

Configure automatic scripting

In Automation, you can create chains of action. Examples:

  • πŸŒ… Morning mode: when the motion sensor (Aqara Motion Sensor) is triggered, the lamp (Yeelight) is turned on and the robot vacuum cleaner (Mi Robot Vacuum) is started).
  • πŸšͺ Security mode: If the Mi Door Sensor is triggered in your absence, the camera (Mi Home Camera) starts recording, and the smart socket (Mi Smart Plug) turns off all the appliances.
  • 🌑️ Climate control: with temperature rise above 25Β°C turns on air conditioning (Mi Air Conditioning Companion) and closes smart curtains (Mi Smart Curtain).

To create a script:

  1. Go to Profile β†’ Automation β†’ Create a script.
  2. Select a trigger (condition: time, sensor, voice command).
  3. Add action (what should happen).
  4. Save and activate the script.

7.2 Integration with Google Assistant and Alexa

To control Xiaomi devices by voice:

  1. In Mi Home, go to Profile β†’ Settings β†’ Voice Assistants.
  2. Select Google Assistant or Amazon Alexa and follow the linking instructions.
  3. After synchronization, tell me: 🎀 "OK Google, turn on the lamp in the living room). 🎀 "Alexa, start the vacuum cleaner (Mi Robot Vacuum).

If your devices are not displayed in Google Home:

  • πŸ”„ Update the device's firmware.
  • 🌍 Make sure that the region in Mi Home and Google Home is the same.
  • πŸ“± Reinstall the Google Home app.

Local management without the Internet

By default, Xiaomi devices are dependent on cloud servers, but some models support local management via a home router.

  1. Make sure that the router and device are on the same network.
  2. In Mi Home, go to your device settings and turn on the Local Control option (if any).
  3. Use alternative applications (such as Home Assistant) for direct access.

⚠️ Note: Local control disables some functions (e.g. sensor alerts) and does not work for devices that require cloud authorization (e.g., Mi Home Security Camera 360).°).

8. Frequent questions and answers

Can you connect a Xiaomi device to a Mi Home without the Internet?
Yes, but with limitations. The Internet is mandatory for initial connectivity (it is necessary to log in to Xiaomi servers), and once added, some devices (such as smart outlets) will work locally, but features like remote management or automatic updates will become unavailable.
Why does Mi Home ask you to change your account region?
Some devices (especially the Chinese versions) only work with accounts from certain regions, such as Mi Air Purifier 4 requires an account from China. To change region: Sign out of your Mi Home account. When you re-enter, select the desired region (e.g., China). Confirm the shift through SMS Note that once you change region, all the devices that were previously connected will disappear from the list, and you will have to add them again.
How to connect the device if lost QR-code?
If QR-The code is lost or lost, use it. ID Devices (on a sticker or box). In Mi Home, select Add Manually, specify the model and enter ID. If the device is not identified, try: Take a photo of the sticker with ID And they zoom in -- sometimes the code is hidden under a layer of security, and they can send you a photo of the device and a check to support Xiaomi. QR-code.
Can I connect one device to multiple Mi Home accounts?
No, one device is only linked to one account: πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Create Sharing: In your device settings, select Sharing and specify another user’s email. πŸ”„ Reconnect the device: delete it from your current account and add it to another (reset will be required). Note: with shared access, the second user will only be able to control the device, but not configure automation.
How to update the device firmware if there is no β€œUpdate” button in the Mi Home?
If there is no update button, try it: 🌍 Change your account region to China – sometimes updates only appear there. πŸ“± Use alternative applications (e.g. Aqara Home for Aqara devices). πŸ”§ Manually update through ADB Manual updates may require: firmware file (downloaded from the official website or forums). firmware (e.g. Mi Home Developer Tool).