Connecting to Xiaomi Mijia: from pairing to setting up a smart home

Xiaomi Mijia’s ecosystem includes dozens of smart devices, from light bulbs and sensors to robot vacuum cleaners and cameras. But first exposure to the brand’s technology often begins with a question: how to connect and manage a gadget correctly? This article will help you understand the nuances of pairing, choosing communication protocols and solving typical errors that occur when setting up Xiaomi smart devices.

We’ll look at all the current ways of connecting, from standard pairing through the Mi Home app to alternative methods for devices without Wi-Fi. Particular attention will be paid to the compatibility of devices with different regional Xiaomi servers, as this point often causes setup failures. If you are just starting to build a smart home or faced with the problem of connecting a particular gadget, here you will find step-by-step instructions and practical tips.

1.What is Xiaomi Mijia and what devices are included in the ecosystem

Mijia is a Xiaomi smart device brand that brings together more than 2,000 products from the company’s own development and partners.

  • πŸ’‘ Lighting: smart lamps (Yeelight), LED tapes, table lamps with color adjustment.
  • 🏠 Sensors: thermometers, hygrometers, motion sensors, gas/water leaks, door/window openings.
  • πŸ€– Robots: vacuum cleaners (Mi Robot Vacuum), poloters, window washers.
  • πŸ“· Cameras: IP-Home Security Camera (Mi Home Security Camera) and video intercoms.
  • πŸ”Œ Sockets and switches: smart sockets with control by Wi-Fi/Zigbee, switch-off.
  • 🌑️ Climate engineering: air purifiers, humidifiers, heaters, fans.

All Mijia devices work through a single Mi Home app (or Xiaomi Home in newer versions), but some models support alternative platforms β€” Apple HomeKit, Google Home or Amazon Alexa. The main difference from other smart ecosystems is the use of Zigbee, Bluetooth Mesh and Wi-Fi protocols for communication between gadgets.

⚠️ Note: Not all Mijia devices are compatible, such as Zigbee-based sensors requiring a Mi Smart Home Gateway, and Yeelight lamps can run directly over Wi-Fi. Check the infrastructure requirements in the specifications of the model before buying.

πŸ“Š What Xiaomi Mijia devices you already have?
Smart lamps
Robot vacuum cleaner
Sensors (movement, temperature)
Surveillance cameras
Sockets/switches
Nothing, just planning.
Other

2.Preparation for connection: what to do before pairing

Before you connect your Xiaomi Mijia device, follow a few mandatory steps:

  1. Install the app: πŸ“± For Android: Download Mi Home from Google Play. 🍎 For iOS: install Xiaomi Home from the App Store.

⚠️ Note: In 2026, Xiaomi is gradually replacing the Mi Home with the Xiaomi Home.If your device isn't in the old app, try a new one.

Register an account

Without a Xiaomi account, you can’t manage your devices remotely. Use a valid email or phone number. When registering, select Russia (or Mainland China if you bought the device in China).

Check the Wi-Fi network

Mijia devices only work with networks 2.4 If your router is broadcasting on 5 GHz, create a separate network for your smart home or enable compatibility mode (b/g/n).

Also prepare the device itself:

  • πŸ”‹ Charge it (if it's a battery model) or plug it into the power supply.
  • πŸ“¦ Remove protective films (especially from sensors and contacts).
  • πŸ”„ Put into pairing mode (usually holding the button for 5-10 seconds before flashing the indicator).

β˜‘οΈ Preparation for the connection of Xiaomi Mijia

Done: 0 / 5

3. Step-by-step instructions: how to connect the device to the Mi Home

Consider a universal connection algorithm using the example of a smart light bulb Yeelight (similar to most Mijia devices):

  1. Open the application and log in.
  2. Click + β†’ Add the device in the upper right corner.
  3. Select the category of the device (for example, Lighting) β†’ Smart lamp).
  4. Follow the instructions on the screen: πŸ” The application will offer to enable Bluetooth and Wi-Fi. πŸ”„ Transfer the lamp to pairing mode (on / off 3 times in a row). πŸ“Ά Select your 2.4GHz network and enter your password.

Wait for the setting to be completed (the indicator on the device will stop flashing).

If the device is not located:

  • πŸ”„ Reboot it (remove/insert batteries or turn off power for 10 seconds).
  • πŸ“‘ Move closer to the router (distance should not exceed 5 meters).
  • πŸ”§ In the router settings, turn off filtering MAC-addresses and firewall.
What if the Mi Home can’t see the device?
1. Check that your device is supported by your region in Mi Home (in account settings).2. Make sure the Wi-Fi network is running at 2.4 GHz (even if the router is dual-band, sometimes you need to create a separate network).3. Try connecting via mobile Internet (enable the hotspot on your phone and connect the device to it).4. Update the Mi Home app to the latest version.5. For Zigbee devices, check if the hub (gateway) is on and if it is on the same network.

⚠️ Warning: Some devices (such as Mi Robot Vacuum) require additional configuration after connection - firmware updates or room binding in the home plan.

4. Alternative ways of connecting (without Wi-Fi)

Not all Mijia devices connect to Wi-Fi. Consider other protocols:

ProtocolExamples of devicesRequirementsAdvantages
ZigbeeMotion sensors, buttons, Mi Smart Home GatewayRequires a Xiaomi hub (gateway) or compatible (e.g. Home Assistant)Low power consumption, high reliability, support for Mesh-network
Bluetooth MeshYeelight lamps M2, switchesBluetooth 5.0 support on your smartphone, Mi Home appNo dependence on Wi-Fi, fast connection
RF 433 MHzMi Remote remotes, some sensorsNeeds a hub with support RF (For example, Mi Smart Home Gateway 3)Working long distances (up to 100 m)

To connect Zigbee devices:

  1. Connect the Mi Smart Home Gateway hub to the outlet and wait for the blue blink.
  2. Add a hub to Mi Home through + β†’ Gateway.
  3. After successfully adding a hub, click Add Device and follow the instructions.

⚠️ Note: Zigbee devices from different manufacturers (e.g. Xiaomi and Aqara) may conflict on the same network. If sensors are unstable, try resetting the hub to factory settings and adding the devices again, starting with the most important ones (e.g. security sensors).

πŸ’‘

If you have many Zigbee devices, place a hub in the center of your home – this will improve the stability of communication due to the Mesh network (the devices transmit signals through each other).

5. Smart home setup: scenarios and automation

Once connected, they can be combined into automation scenarios, such as:

  • πŸŒ… "Morning: at 7:00 the lights turn on, curtains open, coffee maker starts.
  • πŸšͺ "No one at home: when all family members leave, the lights turn off, the security mode is activated.
  • πŸ’§ "Leakage: Water sensor is activated β†’ The faucet is closed, the notification comes.

To create a script in Mi Home:

  1. Go to the Automation section β†’ Create.
  2. Select a condition (e.g. Time or Motion Sensor).
  3. Add the action (turn on the lamp, send a notification).
  4. Save the script and test it out.

For advanced automation, use Home Assistant or Node-RED. These platforms allow you to:

  • πŸ”— Integrate Xiaomi devices with other brands (e.g. Philips Hue or Sonoff).
  • πŸ“Š Build complex logical chains (e.g., if the temperature is >25Β°C and no one's home, turn on the air conditioner").
  • πŸ›‘οΈ Store data locally (without depending on the Xiaomi cloud).

πŸ’‘

For stable scenarios, use local commands (without the cloud). For example, in Home Assistant, Xiaomi devices can be controlled directly through Zigbee or LAN, which speeds up the system's response.

6. Solving typical connection problems

Even when you follow the instructions, you can make mistakes.

Problem.Possible causeDecision
The device is not in the Mi HomeWrong account region, 5GHz network, weak Wi-Fi signalChange region to Mainland China, switch router to 2.4 GHz, bring the device closer
Connection is interrupted by 99%Blocking by router (MAC-filtration, firewall)Turn off the filtering. MAC In router settings, add the device to exceptions
The device is disconnected from the networkEnergy-saving router mode, network congestionTurn it off. WMM Green Ethernet in the router, reduce the number of connected gadgets
Voice control is not working (Alice, Google)The device is not linked to an account or does not support integrationCheck the compatibility of the model, reconnect the account in the settings of the voice assistant

If the device is connected but is not working correctly:

  • πŸ”„ Reboot it (turn off/turn on the power).
  • πŸ“² Update the firmware through Mi Home (Device Settings section) β†’ Update).
  • πŸ”§ Reset to factory settings (usually holding the button for 10-15 seconds).

⚠️ Note: If after updating the firmware device stopped responding, try rolling back the software version. To do this, go to Settings at Mi Home β†’ About the program and click on the firmware version 10 times - the rollback menu will open (does not work on all models).

7. Compatibility with other ecosystems (HomeKit, Google Home, Alexa)

Many Xiaomi Mijia devices support integration with third-party platforms, but there are nuances:

  • 🍎 Apple HomeKit: Only some models are officially supported (e.g. Yeelight Pro, Mi Air Purifier) 3H). The rest will require a Home Assistant hub or a HomeBridge plugin.
  • πŸ€– Google Home / Alexa: Most devices connect via Mi Home with account binding. In the voice assistant settings, select Xiaomi and log in.
  • 🏠 Home Assistant: Supports all Mijia devices through Xiaomi Miio integrations (for Wi-Fi) and Zigbee2MQTT (You will need to manually configure configuration.yaml.

Example of settings for Home Assistant (for Yeelight lamp):

light:


- platform: xiaomi_miio




name:"Yeelight Ceiling"




host: 192.168.1.100




token: YOUR_TOKEN_HERE

To get a token for the device:

  1. Install the Mi Home (Mod) app.
  2. Log in to your account and find the device in the list.
  3. Copy the token from the information about the gadget.

πŸ’‘

For Zigbee devices in Home Assistant, use firmware Zigbee2MQTT This will give more automation options than the standard Xiaomi hub.

FAQ: Frequent questions about Xiaomi Mijia connectivity

πŸ”Ή Can I connect a Xiaomi Mijia device without the Mi Home app?
Yes, but with limitations: Zigbee devices can be connected via Home Assistant or Zigbee2MQTT Some Yeelight lamps support protocol. LAN β€” They can be controlled through third-party applications (e.g. Yeelight App) and have alternative firmware (Valetudo) but require technical skills to install them. ⚠️ Without Mi Home, you will lose cloud management and firmware updates.
πŸ”Ή Why does the device connect, but shut down every other day?
Most often this is due to: Router settings: turn off AP Isolation, WMM Energy saving: Turn off sleep (if any) in Mi Home settings. Network congestion: reduce the number of connected gadgets or install a second router for a smart home. Check router logs for locking the device by MAC-address.
πŸ”Ή How to reset the Xiaomi Mijia device to factory settings?
The method depends on the type of device: Yeelight lamps: turn on / off 5 times in a row (interval of 1 second). Robot vacuum cleaner Mi Robot: hold the Home buttons + Spot 10 seconds. Mijia sensors: Remove the battery for 30 seconds, then insert back and hold the 5 second button. Mi Gateway: press and hold the reset button for 15 seconds. After the reset, the device will flash yellow or blue, which is a signal for readiness for a new connection.
πŸ”Ή Can you use Xiaomi Mijia devices without the Internet?
Yes, but with limitations: Local control: Devices will work on a local network (for example, through Home Assistant or direct commands on the local network). LAN). Automation: scripts created in Mi Home require the Internet. Use Home Assistant for offline automation. Updates: without the Internet, you can't update your firmware. Zigbee2MQTT or ESPHome (for devices on devices on the device) ESP-chip).
πŸ”Ή How to transfer Xiaomi Mijia devices to another account?
Xiaomi does not officially support transferring devices between accounts.Backs: Reset the device to factory settings and add it to a new account.Use Home Assistant to manage devices without being tied to Mi Home.For robot vacuum cleaners: Get a token via Mi Home (Mod) and control via Valetudo. ⚠️ When reset, some devices (e.g. cameras) may require confirmation via SMS old-numbered.