How to tie Alice to the robot vacuum cleaner Xiaomi: full instruction with expert advice

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 cleanerDirect integration with AliceHome Assistant RequiredNotes
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.

πŸ“Š What kind of vacuum cleaner Xiaomi you have?
Mi Robot Vacuum-Mop 2 Pro
Mi Robot Vacuum-Mop P
Viomi V3
Dreame D9
Another model
I don't know.

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.

  1. 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.
  2. 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).
  3. 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.

  1. The Mi Token Extractor (Android) app is available.
  2. 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?
1. Check that IP-The address of the vacuum cleaner is static (fix it in the router). 2. Make sure the token is up-to-date (access rights are sometimes reset in Mi Home). 3. Update the component xiaomi_miio Home Assistant through HACS (Home Assistant Community Store). 4. If the vacuum cleaner is connected to the Chinese Mi Home server, try changing the region to Russia or Singapore".

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:

  1. Install Node-RED and node-red-contrib-mi-home plugin.
  2. Create a stream that listens to commands from Alice and sends them to Mi Home.
  3. 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 HomeReboot 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 HomeChange the region to "Russia" in the Mi Home settings (Profile) β†’ Region)
Alice sees vacuum cleaner, but doesn't manage cleaningNo management rights at Mi HomeIn Mi Home, go to Device Settings β†’ Permits and enable β€œManage from Third Party ApplicationsΒ»
The "offline device" errorVacuum cleaner not online or router lockCheck Wi-Fi connection (2.4 GHz only!) and turn off firewall on router

If the error does not disappear, try:

  1. Remove the vacuum cleaner from Yandex.Smart Home and add again.
  2. Reset the network settings on the vacuum cleaner (press the Reset button for 10 seconds).
  3. 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:

  1. Open the Yandex app. β†’ Smart House. β†’ Scripts β†’ Create a script.
  2. Select a condition (time, geolocation, sensor).
  3. Add Action: Device Management β†’ Xiaomi β†’ Start cleaning.
  4. 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.

FAQ: Frequent questions about Alice and Xiaomi integration

Can I tie Alice to a Xiaomi vacuum cleaner without a Home Assistant?
Yes, but only if your model is officially supported by Yandex.Smart Home (see compatibility table above). IFTTT).
Why doesn't Alice understand the vacuum cleaner commands?
Possible reasons: The vacuum cleaner is not tied to the room in Yandex.Smart House (set the layout) The command is incorrect. Try: "Alice, turn on the vacuum in the living room" instead of "Alice, vacuum cleaner." The voice assistant language does not match the Mi Home region (install "Russia" in both applications).
How to reset the vacuum cleaner settings if it does not connect?
Perform hard reset: Turn off the vacuum cleaner (press the power button for 5 seconds). Press and hold the Home and Power buttons simultaneously for 10 seconds. After the beep release the buttons - the vacuum cleaner will be dumped to the factory settings. ⚠️ After reset, you will have to re-tether the device in Mi Home and Yandex.Smart Home.
Can I drive a vacuum cleaner through Alice outside the house?
Yes, but for that: The vacuum cleaner must be connected to white Wi-Fi. IP Or through Mi Home Cloud. Remote access should be enabled in Yandex.Smart Home (Settings) β†’ If you use Home Assistant, set up Nabu Casa or DuckDNS for external access. πŸ” Important: Remote management increases the risk of hacking. Use VPN securely.
What commands does Alice understand for Xiaomi vacuum cleaner?
The standard command set is, "Alice, turn on the vacuum cleaner" -- start cleaning. "Alice, stop the vacuum cleaner" -- pause. "Alice, return the vacuum cleaner to base" -- return to the dock. "Alice, kitchen vacuum" -- clean a particular room (if the layout is set up); "Alice, how is the vacuum cleaner status?" -- charge level and status request. Extended commands (e.g., "set the suction power to 70%") will require a Home Assistant.