Introduction: Why link Alice to Xiaomi vacuum cleaner?
Voice control of the Xiaomi robot vacuum cleaner through Alice from Yandex turns cleaning into a fully automated process. Imagine you lie on the couch and say, "Alice, run the vacuum cleaner in the living room" - and after 5 minutes the floors are already clean. But how do you achieve this synchronization when the manufacturers of the devices are different?
The problem is that Xiaomi uses its own Mi Home ecosystem, and Yandex uses the Smart Home platform. Linking requires a bridge between these systems. In this article, we will discuss 3 workable integration methods (including workarounds for older vacuum cleaners), typical errors and a unique life hack using Home Assistant for advanced management.
Not all Xiaomi models support direct integration with Alice, below is the compatibility table and step-by-step instructions for each variant.
Which Xiaomi models are compatible with Alice?
Before setting up, check whether your vacuum cleaner supports work with Yandex.Smart Home.
| Model vacuum cleaner | Direct integration with Alice | Home Assistant Required | Notes |
|---|---|---|---|
| Xiaomi Mi Robot Vacuum-Mop 2 Pro | β Yes. | β No. | Supports zoning and schedules |
| Xiaomi Mi Robot Vacuum-Mop P | β Yes. | β No. | Requires firmware update to version 3.5.8+ |
| Xiaomi Mi Robot Vacuum-Mop 2 Lite | β No. | β Yes. | It only works with Home Assistant or Node-RED. |
| Xiaomi Viomi V3 | β Yes. | β No. | Supports wet cleaning management |
| Xiaomi Dreame D9 | β No. | β Yes. | Requires manual token setup in Mi Home |
If your model isn't on the list, it doesn't mean integration isn't possible. for older devices (e.g. Xiaomi Mi Robot Vacuum) 1S) You'll need an intermediate server like Home Assistant or ioBroker.
Method 1: Direct binding via Yandex.Smart Home (official method)
This is the easiest option, but it only works for certified models (see table above).+ Yandex with firmware not lower than 23.04.
- Sign in to Mi Home Make sure the vacuum cleaner is already added to the Mi Home app and is tied to your Xiaomi account. If not, perform the initial setup via Add Device β Vacuum cleaners.
- Connect Mi Home to Yandex Open the Yandex app with Alice, go to the Smart Home β Add the device β Xiaomi. Enter the username/password from your Mi Account (you must allow access to data). π‘If you have an error βI failed to connectβ during authorization, try changing the region in Mi Home to βRussiaβ or βChinaβ (in the profile settings).
- Set up rooms and scripts After sync, the vacuum will appear in the list of devices. Click on it, select Settings. β Rooms and tie to the layout in Yandex.Smart House. Now you can use commands like "Alice, vacuum in the kitchenΒ».
β οΈ Note: If Alice does not see a vacuum cleaner after the tie, check:
- π Update the vacuum cleaner firmware in Mi Home (Settings section) β Update of the PO).
- π Make sure that both applications (Mi Home and Yandex) are connected to the same Wi-Fi network.
- π In the Mi Home settings, allow access to data for third parties (Profile) β Privacy settings).
Vacuum added to Mi Home|
Xiaomi account tied to Yandex|
The vacuum cleaner firmware is updated|
Wi-Fi stable (2.4 GHz)|
Data access permissions included-->
Method 2: Integration with Home Assistant (for uncertified models)
If your vacuum cleaner does not support direct binding (e.g. Dreame) D9 Mi Robot Vacuum 1S), You'll need an intermediate server. Home Assistant is a free, open source software that connects devices across ecosystems.
π§ What's needed:
- π₯οΈ Computer or Raspberry Pi (for round-the-clock Home Assistant).
- π± Home Assistant app on your smartphone.
- π Access token from Mi Home (instruction below).
Step 1: Install the Home Assistant
Download the image for your platform from the official website and install it on the Raspberry Pi or virtual machine. http://[yours_IP]:8123.
Step 2: Get the Mi Home Token
You need a unique token to communicate with a vacuum cleaner.
- The Mi Token Extractor (Android) app is available.
- Or by hand through ADB (power-user).
π Warning: Don't share the token with third parties! it gives full access to your Xiaomi devices.
Step 3: Set up integration with Home Assistant
Add the following code to the configuration.yaml file (replace) YOUR_TOKEN and YOUR_IP data):
vacuum:
- platform: xiaomi_miio
host: YOUR_IP
token: YOUR_TOKEN
name: "Xiaomi Vacuum"Step 4: Connect Home Assistant to Yandex.Smart Home
In Home Assistant settings, go to Settings β Voice assistants β Yandex.Smart Home and log in. After synchronization, the vacuum cleaner will appear in the list of Alice devices.
What if the Home Assistant canβt see the vacuum cleaner?
Method 3: Alternative methods (for advanced users)
If the first two methods didnβt work, consider these options:
1.Use of Node-RED for Automation
Node-RED is a visual tool for creating IoT scenarios, and you can send commands to a vacuum cleaner via Mi Home. API And link them to Alice.
π Scheme of work:
- Install Node-RED and node-red-contrib-mi-home plugin.
- Create a stream that listens to commands from Alice and sends them to Mi Home.
- Set up webhooks to communicate with Yandex.Smart Home.
2. Cloud service IFTTT (conditionally)
IFTTT It allows you to create chains of action between services:
- π€ Trigger: Alice's voice command "Start cleaning upΒ».
- βοΈ Action: Send a request to Mi Home via Webhooks.
β οΈ Attention: Free fare IFTTT limit the number of applets (3 For full management, you will need a paid subscription ($3.99/moss).
3. Firmware alternative software (for enthusiasts)
Some models (e.g. Xiaomi Mi Robot Vacuum 1) support custom firmware like Valetudo.
- π Full control of the vacuum cleaner without the cloud Xiaomi.
- π€ Integration with Home Assistant via Local Area Network.
- π οΈ Advanced settings (for example, suction rate control).
β οΈ Warning: Flashing over the warranty will void the warranty and may cause the device to break!
π‘
For most users, method 1 (official integration) or method 2 (Home Assistant) are sufficient. Method 3 is only suitable for experiments or outdated models.
Typical errors and their solutions
Even if you set it up properly, you can get into a crash, and here are the most common problems and solutions.
| Mistake. | Reason. | Decision |
|---|---|---|
| Alice says, "I can't find the device." | Vacuum cleaner is not synchronized with Yandex.Smart Home | Reboot the Yandex application and check authorization in Mi Home |
| Commands are executed with a delay (10)+ seconds) | The vacuum cleaner is connected to the Chinese server Mi Home | Change the region to "Russia" in the Mi Home settings (Profile) β Region) |
| Alice sees vacuum cleaner, but doesn't manage cleaning | No management rights at Mi Home | In Mi Home, go to Device Settings β Permits and enable βManage from Third Party ApplicationsΒ» |
| The "offline device" error | Vacuum cleaner not online or router lock | Check Wi-Fi connection (2.4 GHz only!) and turn off firewall on router |
If the error does not disappear, try:
- Remove the vacuum cleaner from Yandex.Smart Home and add again.
- Reset the network settings on the vacuum cleaner (press the Reset button for 10 seconds).
- Contact Xiaomi with error logs (you can export them to Mi Home).
Advanced Opportunities: Scenarios and Automation
A simple voice command, "Alice, turn on the vacuum cleaner," is just the tip of the iceberg, and scripts can automate cleaning on schedule, events, or sensors.
Examples of useful scenarios:
- β° Scheduled cleaning: Alice, run the vacuum every day at 10:00, except on weekendsΒ».
- πͺ Cleaning when leaving the house: βIf everyone left (by geolocation), all the rooms were vacuumed upΒ».
- π‘οΈ Cleaning at high humidity: "If the humidity in the bathroom >70%, vacuum there (requires Xiaomi Temperature & Humidity Sensor).
- π Cleaning after animals: "If the motion sensor in the corridor went off 5+ once an hour, run the vacuum cleanerΒ».
π§ How to create a script in Yandex.Smart Home:
- Open the Yandex app. β Smart House. β Scripts β Create a script.
- Select a condition (time, geolocation, sensor).
- Add Action: Device Management β Xiaomi β Start cleaning.
- Save and name the script (e.g., βGet Home Cleaningβ).
For complex automations (e.g., cleaning only in certain areas), use Home Assistant with a component. xiaomi_miio_vacuum. Example of code for cleaning a particular room:
service: vacuum.send_command
target:
entity_id: vacuum.xiaomi_vacuum
data:
command: app_segment_clean
params: [16] # zone ID (you can find out in Mi Home)Security and confidentiality
Integration of smart devices always comes with risks, and here's how to minimize them:
1.Securing Xiaomi account
- π Enable two-factor authentication in Mi Home (Profile) β Security).
- π Change your password regularly (every 3 months).
- π« Do not use the same password for Mi Home and other services.
2. Wi-Fi network setup
- π‘οΈ Create a guest network for smart devices (separate from the main one).
- π Disable UPnP in router settings (vulnerability for DDoS attacks).
- π‘ Use it. WPA3 instead WPA2 cryptographic.
3. Access control of Home Assistant
If you are using Home Assistant:
- π Set up. HTTPS Letsencrypt-certified.
- πͺ Restrict access to IP (Allow only your addresses).
- π Enable logging (configuration.yaml) β logger:).
β οΈ Note: If you transfer the Mi Home token to third-party services (such as Home Assistant in the cloud), use limited tokens with minimal rights. β Security β Token management.