How to connect Xiaomi vacuum cleaner with Alice: a step-by-step guide

Integrating smart home devices into a single network is not just a fashion nod, but a real way to improve the comfort of life. When your robot vacuum cleaner begins to understand voice commands, the cleaning process ceases to be a routine duty and turns into a simple interaction with a gadget. However, users often find it difficult to “friend” the Xiaomi Mi Home ecosystem with voice assistant Yandex Alice, since there is no direct official integration between these brands.

However, there is a solution, and it does not require a deep knowledge of programming or buying expensive server hardware. In this article, we will discuss the proven methods for managing Xiaomi cleaning equipment through a smart speaker. You will learn how to configure scenarios, what nuances to consider when choosing a server region, and why the standard path through the application may not work without additional actions.

The biggest challenge lies in the architecture of cloud services: Xiaomi uses its own cloud gateways, while Yandex relies on the Smart Home protocol. Connecting them requires an intermediary or the right account region. If you want to just turn your device on and off with your voice, you’re more fortunate than those who want to fine-tune their cleaning modes through voice.

Testing of model compatibility and preparation

Before you start setting up, make sure your particular device supports remote management and has the appropriate certificates. Not all Roborock, Viomi or Dreame models work equally well with third-party services. For example, older S50 or S5 Max models have excellent support, while some budget options may be limited in functionality when integrated.

It's also important to check the firmware version of the vacuum cleaner itself. Manufacturers regularly release updates that can both add new features and close vulnerabilities used for third-party integration. Go to the Mi Home app, select the device and check for updates in the settings.

💡

Always update your vacuum cleaner firmware to the latest version before integration starts – this reduces the risk of connection errors and scripting bugs.

Also, make sure your Wi-Fi router is running at 2.4GHz. Most Xiaomi smart home devices don't support 5GHz, and trying to connect them to this frequency will lead to an error.If you have a dual-band router, temporarily split the networks or use guest access to set up.

  • 🤖 Make sure the vacuum cleaner model supports cloud management (S, T, G series from Roborock or similar from Viomi).
  • 📡 Check that the smartphone and vacuum cleaner are on the same Wi-Fi network (2.4 GHz) during the setup.
  • 🆔 Remember or write down the username and password from the Mi Account account, they will be required for authorization.
  • 📲 Install the latest versions of Mi Home and Yandex apps on your smartphone.

⚠️ Note: If you have purchased a device designed for the Chinese market (CN The integration process may require changing the region in the Mi Home application to China, which will complicate management through Russian servers of Yandex.

The official method through the skill “Mi Home” in Yandex

The easiest, but not always the most effective, way is to use the official skill. Yandex periodically updates the list of partners, and sometimes Xiaomi appears directly there. To start, open the Yandex app or House with Alice on your smartphone.

Go to Devices and click Add Device. From the manufacturer list, find Xiaomi or Mi Home. If there is one, the system will prompt you to log in to your Xiaomi account. Enter data and allow access to the devices.

Once you've logged in, Alice will try to find the connected gadgets, and if you've been successful, you'll see your vacuum cleaner on the list, and now you can say commands like "Alice, turn on the vacuum cleaner" or "Alice, send the vacuum cleaner to base." But the functionality is often limited to basic start/stop commands.

📊 Did you manage to find the official Xiaomi skill in Yandex?
Found it right away, it works: Yes, but vacuum cleaner didn’t appear: No, Xiaomi skill is not on the list: Use another method

It is worth noting that this method works unstable due to periodic changes in the API of cloud services. If a skill is found but the devices are not synchronized, try changing the region of Xiaomi account in the Mi Home app. Often it helps to change the region to Russia or Singapore, depending on where the device is registered.

Use the Home Assistant Platform for Advanced

For those who are not afraid of the word “integrator” and want full control over cleaning, the ideal solution is the Home Assistant platform, which is a local smart home server that acts as a bridge between any device, regardless of their brand, you will need a computer, a Raspberry Pi or even a virtual machine to install it.

Once you have installed the Home Assistant, you need to add Xiaomi Miio integration, which allows the system to see your vacuum cleaner locally, without cloud delays. The key here is getting the device token. The token is a unique security key that you need to directly control your gadget.

python -m miio token --ip 192.168.1.X --token YOUR_TOKEN

You can get the token through Android debugging (if you have root rights) or using special scripts in Python that intercept traffic between the Mi Home application and the server. This is the most difficult step, but it is worth it.

Where exactly to look for a token in the logs?
A token is a 32-character hexadecimal string, and in logs it often goes right after the IP-Device addresses or data packet headers that an application sends to a mio-server server. Look for strings that contain a "token" or a long set of a-f numbers and letters.

When the vacuum cleaner is added to Home Assistant, it becomes available for export. You can use the Yandex Smart Home plugin for Home Assistant, which will throw the device into the Yandex ecosystem, which gives you access not only to turn on, but also to run specific modes, return to base and even get cleaning status.

  • 💻 Install Home Assistant OS on a separate device (for example, Raspberry Pi 4).
  • 🔑 Get the device token through a miio script or traffic sniffer.
  • 🔌 Set up Xiaomi Miio integration in Home Assistant by entering IP token.
  • ☁️ Install the Yandex Smart Home component to transfer devices to the Yandex cloud.

The advantage of this approach is that it's responsive and independent of the Internet, and the command from the speaker goes to your local server, which instantly sends a signal to the vacuum cleaner, and even if the Internet goes down, local scenarios will continue to work.

Alternative solutions: IFTTT and third-party services

If installing your own server seems too complicated and the official skill doesn’t work, you can use IFTTT (If This Then That) automation service or its analogues, such as Stringify (although support for the latter is declining), the principle of working is based on creating chains of action: “If event A, do B.”

In the case of Xiaomi and Yandex, the scheme may look more complicated, since a straight link is often missing. However, some users successfully use Redmond Sky service or other hubs that aggregate devices of different brands. You add a vacuum cleaner to such a hub, and the hub, in turn, is friends with Alice.

Another option is to use virtual buttons, where you create a script in the Mi Home app (like Start Cleaning), and then try to emulate the voice pressing of that button through third-party tools, which often requires an Android smartphone to act as a gateway.

MethodDifficultyFunctionalStability
Official skillLow.Basic (Start/Stop)Low/Mediocre
Home AssistantTall.Full (Modes, Zones)Tall.
IFTTT/HubsMediumLimited.Medium
Scripts (Python)Very high.Complete.Depends on the code.

It is important to understand that any third-party service can change the terms of access or close the API at any time, so the method with Home Assistant remains the only truly reliable solution in the long run.

Set up scripts and voice commands

Once you've successfully connected the device, it's time for magic to customize the scripts. In the Alice House app, you can create complex chains of action. For example, the Alice I'm leaving team can turn off the lights, close the smart curtains, and run the vacuum cleaner.

To create a script, go to Scripts and select Add Script. Select Voice Phrase as a condition and type in the text that will start cleaning. In actions, select your vacuum cleaner and the command to start or start cleaning.

☑️ Checklist for script settings

Done: 0 / 1

You can also set up notifications. Have Alice tell you when the vacuum cleaner will finish cleaning or if it gets stuck under the sofa_push_ notification of status.

Remember, voice commands need to be clear. Phrases like "turn on," "start," "send home" work best. Experiment with wording to find the one that the assistant responds to the most quickly.

⚠️ Attention: Don't create too long and complicated voice phrases. Alice may misrecognize a command if it's full of words. Optimal: Alice, turn on the robot vacuum cleaner».

Solving synchronization problems and errors

Despite the careful setup, there can be errors. The most common problem is “Device is not available.” This means that the connection between the Yandex cloud and the Xiaomi server is lost. Try reauthorizing in the skill: remove the device from the Yandex application and add it again.

Another problem is the delay in the execution of the command. You say "turn on," and the vacuum cleaner reacts after a minute, which is a sign of problems with the Internet connection or congestion of servers. Check the Wi-Fi signal at the vault base.

If the vacuum cleaner is displayed but does not follow commands, check the status of the device itself in the Mi Home app.It may have run out of water in the tank (if it is a washing robot), a dust container is overflowing, or it is stuck.Alice can't always count these technical statuses and report them.

💡

90% of synchronization problems are solved by simply reassigning an account in the Yandex skill or changing the server region in the Mi Home application.

If your Xiaomi account is registered in China and you are trying to connect it to Russian Yandex, there may be conflicts of encryption protocols.

FAQ: Frequently Asked Questions

Can you control a Xiaomi vacuum cleaner without the Internet, only through a local network?
Yes, but only if you use the Home Assistant platform. The official Mi Home and Yandex apps require Internet access to transfer commands over cloud servers. Local management is possible only through third-party solutions that scatter commands directly to the Internet. IP-address.
Why doesn't Alice see my vacuum cleaner when it works at Mi Home?
You are likely to be using different regions of your accounts. Make sure that the Yandex app selects the same region as the Mi Home, or try changing the region in Mi Home to Russia/Europe. Also check that the vacuum cleaner model is officially supported in your region.
Is it safe to give access to Xiaomi account to third-party services?
Using Yandex’s official skills is relatively secure, as it uses the OAuth protocol without transferring your password. However, using scripts to receive a token or third-party cloud platforms carries certain risks.
Does voice control work if the vacuum cleaner is in Do Not Disturb mode?
Normally, Do Not Disturb only blocks the engine sound and lights, but does not prohibit commands. However, if the vacuum cleaner itself has a schedule or lock, the command may be ignored. Check the schedule settings in the app.
Which Xiaomi models are best friends with Alice?
The best interoperability is demonstrated by the Roborock lineup (S5, S6, S7, S8) and Viomi (SE, V2), which are open-source and actively supported by the Home Assistant development community, which ensures stable operation even in the absence of official support.