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.
- Open Mi Home and go to Profile β Settings β Country/Region.
- Choose Russia and confirm the change.
- 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.
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).
Connection via Yandex application (recommended method)
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:
- Open the Yandex application and go to the Devices section β Add the device.
- Choose Xiaomi from the list of brands.
- Sign in to your Mi Home account (use the same data as in the app).
- Allow access to devices by clicking Connect.
- 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:
- Go to the Yandex IoT website and log in.
- Click Add Add the device β Xiaomi.
- Enter Token from the Mi Home app (how to get it β see the next section).
- 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?
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:
- Download and install Mi Home Token Extractor (APK-file).
- Sign in to Mi Home and make sure the device is connected.
- Launch Token Extractor and follow the instructions on the screen.
- 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/.MainActivityMethod 2: Through HTTP-interception (for iOS and Android)
This method works without root, but requires skills in working with network tools.
Instructions:
- Install Fiddler or Charles Proxy on your computer to intercept traffic.
- Set up a proxy on your smartphone (IP port of your PC).
- Open Mi Home and update your device data.
- 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:
- Open the Yandex app and go to Devices β Scripts.
- Click Create a script β Add a condition.
- Select devices and actions (e.g., βIf itβs 23:00, turn off the lampβ).
- 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 cause | Decision |
|---|---|---|
| The devices are not displayed in Alice. | Incompatible firmware or region | Update the firmware through Mi Home or change the region to "Russia" |
| Commands are executed with a delay | Problems with the cloud Xiaomi or Yandex | Reconnect your device or use local control through Home Assistant |
| The "failed to connect" error | wrong token or IP-address | Get a new token and check your network settings |
| Alice says, "The device is not responding." | Offline device in Mi Home | Restart your device and router, check your Wi-Fi connection |
| Scripts don't work. | Device name conflict or error in the conditions | Rename the devices and recreate the script |
If the problem is not solved, try the following steps:
- Untie and reconnect your Xiaomi account in the Yandex app.
- Update your device firmware to the latest version (check for updates in Mi Home).
- Reset the device to factory settings and connect it again.
- 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.
- Find out. IP-the device address in the router (for example, 192.168.1.105).
- Get a token (as described in Section 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:
- Install. MQTT-broker (e.g. Mosquitto) to a home server or Raspberry Pi.
- Set up Mi Home MQTT Bridge to transfer data between Mi Home and MQTT.
- 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):
| Category | Supported models | Notes |
|---|---|---|
| Smart lamps | Yeelight LED Ceiling Light, Mi LED Desk Lamp, Yeelight Color | Supports the adjustment of brightness and color |
| Robot vacuum cleaners | Mi Robot Vacuum-Mop 2 Pro, Mi Robot Vacuum-Mop P, Dreame D9 | Cleaning, return to base, choice of modes |
| Air purifiers | Mi Air Purifier 4 Pro, Mi Air Purifier 3H | Adjusting speed, on/off |
| Smart sockets | Mi Smart Plug, Mi Smart Power Strip | Energy consumption control, remote switching on |
| Sensors. | Mi Motion Sensor, Mi Door/Window Sensor, Aqara Temperature Sensor | Work 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:
- Create an account on IFTTT.
- Connect to Mi Home and Yandex Alice.
- 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:
- Connect the device to Google Home.
- Connect Google Assistant to Alice via Yandex IoT.
- 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 offIntegration 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.