Xiaomiβs voice-activated smart home via Yandexβs Alice opens up new possibilities for home automation. You can turn on lights, adjust temperature, or run scripts with a simple voice request β without having to pull out a smartphone. But the process of integrating the two ecosystems often raises questions among users.
In this article, we will go into detail all the stages of connection, from account preparation to device configuration, and focus on common errors (such as 40403 error in the connection of accounts) and how to fix them.
1.Preparation: What it takes to connect Alice to Xiaomi
Before you start setting up, make sure you have:
- π± Smartphone with installed Mi Home apps (version 6.0)+) and Yandex (with Alice).
- π Xiaomi smart devices added to Mi Home and running in the same region (e.g. Russia or Mainland China).
- π Xiaomi and Yandex accounts with confirmed phone numbers (required for security!).
- π Sustainable Internet connection (2.4GHz Wi-Fi for most Xiaomi devices).
Important: If your devices are tied to Mainland China, they will have to be moved to Russia or another supported region.
- Open Mi Home, go to Profile β Settings β Region.
- Change region to Russia (when you change all devices will turn off and require re-addition!).
- Add the devices again through Add the device β See also.
Region Warning: Devices purchased in China (e.g. Xiaomi Mi Air Purifier) 3C), They often only work in the China region, and they'll need to connect to Alice:
- π§ Use Mi Home with Mi Home with VPN (server in Hong Kong or Singapore).
- π¦ Or purchase a global version of the device (the model name will be Global).
2. Linkage of accounts Xiaomi and Yandex
The main stage is the linking of Xiaomi account to Yandex.Services.
- Open the Yandex application on your smartphone and go to the Services β Smart home.
- Click Add Add the device β Xiaomi.
- Enter your username and password from your Xiaomi account (use the same account that your devices are linked to!).
- Confirm access by clicking Allow in the Mi Home window.
If you have a 40403 error (βCannot Link Accountsβ) at this point, try:
- π Sign out of Xiaomi account in Mi Home and log in again.
- π± Install the latest version of Mi Home (link to Google Play or App Store).
- π Make sure that the region of Russia is selected in Mi Home (see Section 1).
Xiaomi account confirmed by SMS|All devices in one region Mi Home|Yandex app updated|Wi-Fi is stable and stable.-->
Important: After successful account bundling, it can take up to 10 minutes before devices appear in Yandex.Services.Do not try again during this period, this can cause a synchronization conflict.
3. Set up devices in Yandex.Services
After the account bundle, your Xiaomi devices should automatically appear in the Yandex Smart Home section.
- Go to the Smart Home β Settings β Devices.
- Click Update the list (Icon) π top-right).
- If the device doesnβt show up, check its status in Mi Home β it should be Online.
For each device, you can configure:
- π Room (such as Living Room or Kitchen) β this will help Alice understand the context of the teams.
- π€ A pseudonym (e.g., "Candle" instead of "Yeelight") LED Ceiling Light").
- π Automatic scenarios (e.g. βIf the motion sensor is triggered, turn on the lights").
Example of setting up a pseudonym for the Yeelight lamp:
- Open the device in Yandex.Services.
- Press on. βοΈ Settings β Name of device.
- Enter a convenient name, such as a table lamp.
- Save the changes.
Which Xiaomi devices are not supported by Alice?
4.Voice control: What commands does Alice understand
Once you've set up, you can give Alice commands to control the devices.
| Type of device | Examples of teams | Notes |
|---|---|---|
| Lights (Yeelight) | "Alice, turn on the table lamp 50%." "Alice, make the lights in the living room warm." | Supports brightness and color temperature adjustment (if the device allows it). |
| The sockets (Mi Smart Plug) | "Alice, turn off the socket in the bathroom." "Alice, turn on the kettle in 5 minutes." | You can use timers and delayed inclusion. |
| The Robot Vacuum (Mi Robot Vacuum) | "Alice, start cleaning the room." "Alice, get the vacuum cleaner back to base." | Zone cleaning commands are supported (if the card is saved in Mi Home). |
| Sensors. | "Alice, what's the temperature on the balcony?" "Alice, is the bedroom window open?" | Only for sensors that transmit data to the cloud (not all models are supported). |
Critical feature: Alice does not support local commands (for example, through Mi Home on the local network).All requests go through the Xiaomi cloud, so when you turn off the Internet, voice control will not work.
If Alice doesn't understand the team:
- π€ Make sure that the name of the device in Yandex.Services matches what you say.
- π‘ Check your deviceβs internet connection (Mi Home should have green status Online on the device).
- π Restart the device (turn off power for 10 seconds).
5. Creating scenarios and automation
One of the key benefits of integration is the ability to create automated scripts that work by voice or conditions, such as:
- π "Morning: when the command "Alice, good morning" lights turn on, the coffee maker starts and the robot vacuum cleaner begins cleaning.
- π "Goodnight: Turns off all lights, closes the curtains (if there is a Mi Smart Curtain) and activates Do Not Disturb mode on the phone.
- πͺ "No one at home: when the sensor of no movement turns off all outlets and turns on the security mode.
To create a script:
- Open Yandex.Services β Smart home. β Scripts.
- Click Create a script β Add a condition.
- Select a trigger (voice command, time, event from the sensor).
- Add actions (e.g., turn on the Yeelight lamp by 30%).
- Save the script.
Example of setting up the script "Cinema":
Condition: Voice command "Alice, turn on the cinema"
Action:
1. turn off the main light (Yeelight Ceiling Light)
2. Turn on the lighting at 10% (Yeelight LED Strip)
3. Enable the socket with the projector (Mi Smart Plug)
Set the air conditioning temperature at 22Β°C (Mi Air Conditioning Companion)π‘
If the scenario doesnβt work, check the order of action: some devices (such as a robot vacuum cleaner) may block other commands from being executed if they take a long time to act (such as cleaning).
6. Solving common problems
When integrating Xiaomi and Alice, users often encounter common mistakes.
β οΈ Note: If after the bundle of accounts devices do not appear in Yandex.Services for more than 30 minutes, check whether access to the service is blocked. API Xiaomi for your region. This is true for accounts registered through VPN.
| Problem. | Possible cause | Decision |
|---|---|---|
| 40403 error in the ligament | Mi Home regions mismatch or outdated version of the application. | Change your region to Russia and upgrade your Mi Home. |
| Devices are not displayed | Devices are linked to another Xiaomi account or are not supported. | Check the binding in Mi Home and model compatibility. |
| Alice says, "The device is not responding." | Internet problems or offline device in Mi Home. | Restart the router and device, check the Wi-Fi connection. |
| Commands are executed with a delay | High load on Xiaomi servers or slow Internet. | Try to execute the command later or check the network speed. |
If none of the solutions worked, try untie and re-link accounts:
- In Yandex.Services go to the Smart Home β Settings β Xiaomi.
- Press Turn Off.
- Wait 5 minutes and repeat the procedure.
For devices that never made the list, check their firmware.Some models (e.g. Xiaomi Mi Air Purifier) 2S) Requires updates to the latest version of the software via Mi Home.
7.Security: How to Protect a Smart Home from Hacking
Integration of the two ecosystems increases the surface for potential attacks.
- π Use two-factor authentication (2FA) for Xiaomi and Yandex accounts.
- π΅ Do not connect critical devices (such as door locks) to voice control.
- π Regularly update your device firmware through Mi Home.
- π« Disable access to Mi Home for third parties in account settings.
To turn on 2FA Xiaomi:
- Open Mi Home β Profile β Account settings β Security.
- Select two-step verification and follow the instructions.
- Save your backup codes in a safe place (such as a password manager).
It is also recommended to periodically check active sessions in the Xiaomi account:
- Go to account.xiaomi.com.
- In the Security section, find Device Management.
- Remove all unknown devices from the list.
π‘
Never use the same password for Xiaomi and Yandex accounts. If one account is hacked, an attacker will gain access to the entire smart home.
8. Alternative management practices
If Alice integration is not suitable for some reason, consider the alternatives:
- π€ Google Assistant: Supports Xiaomi via Mi Home (requires a Google Home bundle).
- π Siri: Works with HomeKit (Mi Home Bridge or Home Assistant).
- π Home Assistant: Open automation platform that supports Xiaomi through the Mi Home Integration plugin.
To connect to Google Assistant:
- Open Mi Home β Profile β Settings β Google Assistant.
- Click Link and log in to your Google account.
- Allow access to the devices.
- You can now manage devices through the OK Google commands.
The advantage of Home Assistant is that it is locally managed without depending on the cloud, but it requires technical knowledge:
- Install Home Assistant on the Raspberry Pi or NAS.
- Add Xiaomi Mi Home integration through HACS.
- Set up automation through a visual editor.
If you are choosing between Alice and the alternatives, consider:
- π·πΊ Alice understands Russian better and is integrated with other Yandex services (for example, weather, traffic jams).
- π Google Assistant supports more devices, but requires English skills for complex teams.
- π§ Home Assistant is the most flexible option, but difficult to set up.