How to connect Xiaomi to Alice: full instruction with error solutions

Voice assistant Alice from Yandex has long ceased to be just a function of a smartphone β€” now it manages smart homes, runs scripts and interacts with Xiaomi devices through the Mi Home ecosystem. if the device does not appear in the list of Alice, the application requires you to update the firmware to version 3.6.7+ In order to work correctly with Russian servers, voice commands are executed with a delay. In this article, we will analyze all the current ways of connecting, from basic synchronization to configuring complex automations, and also solve typical errors that are not described in the official documentation.

It’s important to understand that Xiaomi and Alice integration works over the Yandex IoT cloud bridge, not directly.This means that the stability of communication depends on the servers of both companies, and some devices (for example, Mi Robot Vacuum-Mop 2 Pro or Mi Air Purifier 4 Pro) may require additional steps to work correctly. If you previously tried to connect and received an error β€œDevice not supported”, do not rush to abandon the idea – most likely, the problem is solved by changing the account region or updating the firmware.

1.Preparation: What it takes to connect Xiaomi to Alice

Before you start synchronizing, make sure that all the preconditions are met, without which the connection will either end in error or the devices will not work correctly.

Basic requirements:

  • πŸ“± Smartphone with Mi Home apps installed (version 6.5.400)+) Yandex (version 23.12)+). Alice application is not necessary to install separately - it is built into the main client of Yandex.
  • 🌐 Xiaomi account with a linked phone number (must be Russian for stable operation).If the account is registered on mi.com via mail, you may have problems with authorization.
  • πŸ”„ Cloud sync in Mi Home should be enabled (check Profile) β†’ Settings β†’ Without it, Alice won't see the device.
  • πŸ“‘ Stable Internet connection on the device and smartphone. When connecting via mobile Internet, there may be failures - it is better to use Wi-Fi.

Pay special attention to the region of the Xiaomi account. If the Mi Home is China, many devices will not be displayed in Alice. The best option is Russia or Global.

  1. Open Mi Home and go to Profile β†’ Settings β†’ Country/Region.
  2. Choose Russia and confirm the change.
  3. Restart the application and wait for the devices to sync (can take up to 10 minutes).

⚠️ Note: If you change region, all devices in the Mi Home will be dropped from the current network. They will have to be reconnected! Pre-save screenshots of settings or export configurations if supported by the model.

πŸ“Š What Xiaomi devices you plan to connect to Alice?
Smart Lamps (Yeelight, Mi LED)
Robot vacuum cleaner (Mi Robot)
The sensors are Mi Motion Sensor and Mi Door/Window)
Smart sockets (Mi Smart Plug)
Air conditioner or air purifier
Other

2.How to connect Xiaomi to Alice

There are three official integration methods, each suitable for different situations, depending on the device model, the firmware version, and your goals (e.g., whether you need voice commands or only automation).

The simplest and most reliable method, which works for most Xiaomi devices with Mi Home support, is suitable for lamps, sockets, sensors and some robot vacuum cleaners.

Instructions:

  1. Open the Yandex application and go to the Devices section β†’ Add the device.
  2. Choose Xiaomi from the list of brands.
  3. Sign in to your Mi Home account (use the same data as in the app).
  4. Allow access to devices by clicking Connect.
  5. Wait for sync (may take up to 5 minutes).

If the devices do not appear:

  • πŸ”„ Restart the Yandex application and update the list of devices.
  • πŸ“΅ Make sure that your Xiaomi device is connected to the same Wi-Fi network as your smartphone.
  • πŸ”§ Check if your model is supported. A full list of compatible devices can be found here.

Connection via Yandex IoT (for advanced users)

This method requires manual addition of devices via the Yandex IoT Platform and is suitable for devices that do not appear in the standard list (such as some Aqara or Mi Air Purifier models).

Algorithm:

  1. Go to the Yandex IoT website and log in.
  2. Click Add Add the device β†’ Xiaomi.
  3. Enter Token from the Mi Home app (how to get it – see the next section).
  4. Select the devices for synchronization and save the settings.

This is a way of doing more control, but it requires technical knowledge, for example, for a robot vacuum cleaner, Mi Robot Vacuum-Mop 2 Lite, you have to manually specify the did and token parameters that you can get from Mi Home. API.

Get access token in Mi Home|

Download a token parsing utility (e.g. Mi Home Token Extractor)|

Check the firmware version of the device (must be at least 1.4.5)|

Disable VPN or proxy on your smartphone |

Save a backup copy of device settings-->

Connection through third-party services (Home Assistant, Node-RED)

If your Xiaomi device is not directly supported by Alice, you can use intermediate systems like Home Assistant or Node-RED. This is a complex but versatile method that allows you to integrate even unofficially supported gadgets.

Example of settings through Home Assistant:

# Configuration fragment configuration.yaml for Xiaomi


miio:




devices:




- host: 192.168.1.100 # IP- Device address




token: YOUR_DEVICE_TOKEN




model: miio:vacuum # Model (e.g. for vacuum cleaner)

Once set up in Home Assistant, the device can be connected to Alice via Yandex IoT as a smart home, which requires knowledge of networking and working with the Internet. YAML-configuration.

Which Xiaomi devices are not supported directly by Alice?
The list of incompatible devices includes: - Old models of robot vacuum cleaners (Mi Robot) 1S, Mi Robot Vacuum 1. - Some Aqara series sensors (e.g. Aqara Cube) T1 Pro. - Devices with Chinese firmware without the ability to change the region. - Gadgets that require connection through the Zigbee gateway (for example, Mi Smart Home Gateway 3). MQTT.

3. Obtaining Mi Home token for manual connection

If you choose to connect via Yandex IoT or Home Assistant, you will need a device token, a unique identifier that allows third-party services to manage Xiaomi gadgets, which can be obtained in several ways.

Method 1: Mi Home Token Extractor (Android)

The easiest method for Android users: You will need a smartphone with root rights or the ability to install ADB-debugging.

Steps:

  1. Download and install Mi Home Token Extractor (APK-file).
  2. Sign in to Mi Home and make sure the device is connected.
  3. Launch Token Extractor and follow the instructions on the screen.
  4. Copy the resulting token and did (device ID).

If you do not have root rights, use ADB:

adb shell pm grant com.xiaomi_mihome_extractor android.permission.READ_LOGS


adb shell am start -n com.xiaomi_mihome_extractor/.MainActivity

Method 2: Through HTTP-interception (for iOS and Android)

This method works without root, but requires skills in working with network tools.

Instructions:

  1. Install Fiddler or Charles Proxy on your computer to intercept traffic.
  2. Set up a proxy on your smartphone (IP port of your PC).
  3. Open Mi Home and update your device data.
  4. In the proxy logs, search for a request to api.io.mi.com with the token option.

⚠️ Note: Transferring a token through unsecured channels (e.g., email) may lead to leakage of access to your devices.

πŸ’‘

If the token stopped working after the Mi Home update, try to get it back. Xiaomi periodically resets tokens for devices with outdated firmware.

4. Set up voice commands and scripts

Once Xiaomi devices are successfully connected to Alice, you can set up voice control and automation, and it’s important to understand the difference between direct commands (like β€œAlice, turn on the lights”) and scripts (like β€œAlice, Mode of the Movie”).

Basic voice commands

Alice supports standard commands for most devices:

  • πŸ’‘ For lamps: "Switch on/off [name of lamp]", "Set brightness to 50%", "Make the light warm".
  • πŸ€– For robot vacuum cleaner: "Start cleaning", "Go back to base", "Clean the living room".
  • 🌬️ For air purifier: "Set the purifier on maximum power", "Set a sleep mode".

To help Alice recognize the devices correctly, give them unique and simple names in Mi Home. Avoid complex combinations like "Lamp living room ceiling 1" - better use "Chandelier in the hall."

Creating scenarios in Yandex Alice

Scenarios allow multiple actions to be run by a single team, such as "Alice, I'm going to bed" and "I'm going to bed" can:

  • πŸŒ™ Turn off all Yeelight lamps.
  • πŸ”Œ Turn off the smart sockets.
  • 🌬️ Turn on the air purifier at night.
  • πŸ”’ Activate the security mode on the motion sensors.

How to create a script:

  1. Open the Yandex app and go to Devices β†’ Scripts.
  2. Click Create a script β†’ Add a condition.
  3. Select devices and actions (e.g., β€œIf it’s 23:00, turn off the lamp”).
  4. Save the script and assign him a voice command.

For complex automations (such as those with delays or conditions), use Yandex IoT or Home Assistant, for example, you can set the rule: "If the motion sensor is triggered and the time between 8:00 and 22:00, turn on the lights for 5 minutes."

πŸ’‘

Alice's voice commands are only in Russian. If you use the English version of Xiaomi's firmware, some features may not be available.

5. Solving typical problems

Even when you set it up properly, users often encounter errors, and let's look at the most common cases and how to fix them.

Problem.Possible causeDecision
The devices are not displayed in Alice.Incompatible firmware or regionUpdate the firmware through Mi Home or change the region to "Russia"
Commands are executed with a delayProblems with the cloud Xiaomi or YandexReconnect your device or use local control through Home Assistant
The "failed to connect" errorwrong token or IP-addressGet a new token and check your network settings
Alice says, "The device is not responding."Offline device in Mi HomeRestart your device and router, check your Wi-Fi connection
Scripts don't work.Device name conflict or error in the conditionsRename the devices and recreate the script

If the problem is not solved, try the following steps:

  1. Untie and reconnect your Xiaomi account in the Yandex app.
  2. Update your device firmware to the latest version (check for updates in Mi Home).
  3. Reset the device to factory settings and connect it again.
  4. Contact Yandex or Xiaomi with error logs (you can export them to Mi Home via Settings) β†’ Reviews).

⚠️ Warning: If after a firmware update, the device stopped working with Alice, check if its token has changed. Xiaomi sometimes resets tokens after major updates.

Local management without cloud (for power users)

Cloud integration via Yandex IoT is not always stable: delays or failures may occur due to server problems. LAN or MQTT. This requires additional customization, but gives you full control over the devices.

6.1.Configure via Mi Home LAN Protocol

Some Xiaomi devices support local area network management without cloud.

  1. Find out. IP-the device address in the router (for example, 192.168.1.105).
  2. Get a token (as described in Section 3).
  3. Use a Python script or Home Assistant to send commands directly to:
# Example of command to turn on the Yeelight lamp via LAN


import miio




lamp = miio.Chromecast(ip="192.168.1.105", token="YOUR_TOKEN")




lamp.on()

6.2 Integration through MQTT-broker

MQTT β€” It's a lightweight protocol for messaging between devices, and it's a protocol that you can use with Xiaomi:

  1. Install. MQTT-broker (e.g. Mosquitto) to a home server or Raspberry Pi.
  2. Set up Mi Home MQTT Bridge to transfer data between Mi Home and MQTT.
  3. Connecting Yandex IoT to MQTT Node-RED or Home Assistant.

Advantages of Local Management:

  • ⚑ Instant execution of commands (without cloud delays).
  • πŸ”’ Greater security (data is not transferred to external servers).
  • πŸ› οΈ Possibility of customization (for example, voice commands).

Disadvantages:

  • ⚠️ Requires constant operation of the home server.
  • πŸ”§ Difficulty setting up for beginners.

7. Compatibility of Xiaomi devices with Alice

Not all Xiaomi gadgets are officially supported by Alice, here is the current list of compatible devices (as of 2026):

CategorySupported modelsNotes
Smart lampsYeelight LED Ceiling Light, Mi LED Desk Lamp, Yeelight ColorSupports the adjustment of brightness and color
Robot vacuum cleanersMi Robot Vacuum-Mop 2 Pro, Mi Robot Vacuum-Mop P, Dreame D9Cleaning, return to base, choice of modes
Air purifiersMi Air Purifier 4 Pro, Mi Air Purifier 3HAdjusting speed, on/off
Smart socketsMi Smart Plug, Mi Smart Power StripEnergy consumption control, remote switching on
Sensors.Mi Motion Sensor, Mi Door/Window Sensor, Aqara Temperature SensorWork only in scripts, voice control is not available

If your model is not listed, check its compatibility on Yandex’s official page. For unofficially supported devices, use Home Assistant or Node-RED, as described in Section 6.

Special attention should be paid to robot vacuum cleaners, for example, Mi Robot Vacuum-Mop 2 Lite requires manual addition via token, and Dreame D10 Plus is supported by Alice only in basic control mode (no maps and cleaning areas).

8.Alternative ways to manage Xiaomi through Alice

If standard methods don't work, you can use workarounds, which require extra effort, but often solve problems with incompatible devices.

8.1 Use. IFTTT

IFTTT (If This Then That is a service for creating chains of action between different platforms, and it can link Mi Home and Alice via intermediate applets.

Example of settings:

  1. Create an account on IFTTT.
  2. Connect to Mi Home and Yandex Alice.
  3. Create an applet according to the template: β€œIf Alice received a command, then perform the action in Mi Home”.

The disadvantage of the method is the delay of execution (up to 10 seconds) and the restriction on the number of free applets (3 pieces per month).

8.2 Integration through Google Assistant

If your Xiaomi device supports Google Home, you can use it as a bridge:

  1. Connect the device to Google Home.
  2. Connect Google Assistant to Alice via Yandex IoT.
  3. Alice’s commands will now be transmitted via Google.

This method does not work for all devices and adds an additional layer of delay, but sometimes it turns out to be the only working solution.

8.3 Self-Development in Python

For advanced users, you can write your own bridge between Mi Home API And Yandex Dialogs, an example of a code for controlling a lamp:

from miio import ChuangmiPlug


plug = ChuangmiPlug(ip="192.168.1.100", token="YOUR_TOKEN")




plug.on() # Inclusion




plug.off() #Switch off

Integration with Alice requires you to build a skill in Yandex Dialogs and set up a webhook that will take commands and send them to the device, a method that is flexible but requires programming knowledge.

πŸ’‘

Alternative management methods are usually slower than cloud integration, but allow incompatible devices to be connected, and only choose them if standard methods fail.

FAQ: Frequent questions about Xiaomi's connection to Alice

❓ Why Alice Can't See My Xiaomi Devices After Connecting?
This may be due to several reasons: πŸ”„ Account Region: Mi Home selects China or another region". πŸ“΅ No Internet: The device must be online in Mi Home. πŸ”§ Outdated firmware: Update your device via Mi Home. 🚫 Incompatible model: Check the list of supported devices on the Yandex website. If nothing helps, try unplug and reconnect your Xiaomi account in the Yandex app.
❓ Can you run Xiaomi through Alice without the Internet?
No, Alice needs to use the cloud connection via Yandex IoT and Mi Home servers to work with Xiaomi devices. However, you can configure local management via Home Assistant or MQTT, In this case, Alice will send commands to your home server, and he will manage the devices over the local network.
❓ How to connect Xiaomi robot vacuum cleaner to Alice if it is not on the list?
For unofficially supported models (e.g. Mi Robot Vacuum) 1S or dreame Z10 Pro) there are two options: Manual add via token: Get the token and did devices (section 3) and add it to Yandex IoT manually.Use Home Assistant: Set up Miio integration in Home Assistant, and then link it to Alice via Yandex IoT. For some models (for example, Viomi) V3) You will need a firmware with Mi Home support LAN Protocol.
❓ Why Alice's teams are running late?
Delays related to cloud integration architecture: 🌐 Team rout: Alice β†’ Yandex servers β†’ Xiaomi servers β†’ Every transition adds a delay. πŸ“‘ Internet quality: If you have a slow or unstable internet, commands will take longer to execute. πŸ”„ Server congestion: During peak hours (evening), cloud services may slow down. Solutions: Use local management via Home Assistant or MQTT (Reconnect the device to another Wi-Fi network (e.g. 5 GHz).