Why do you want to link Xiaomi and Marusya?
Marusyaβs voice assistant from VK has long since ceased to be just a fun chatbot β itβs now a full-fledged smart home control center. And Xiaomi devices, from Yeelight light bulbs to Mi Robot Vacuum vacuum cleaners, occupy the lionβs share of the smart tech market in Russia.
The problem is that there is no direct integration between the Xiaomi and Marousi ecosystems, but that doesn't mean that synchronization is impossible! There are several workarounds, from official bridges over Yandex Alice to third-party services like Home Assistant, and in this article we'll look at all the current ways of connecting, their pros, cons and pitfalls.
Marusia does not have direct access to Xiaomi servers due to restrictions API, So any integration requires an intermediary, it can be another voice assistant, a cloud service, or a local hub, and it depends on your device, your level of technical expertise, and your willingness to pay for premium features.
Method 1: Connect via Yandex Alice (the easiest option)
The most reliable and officially supported way is to use Yandex Alice as a bridge between Xiaomi and Marusya, because Marusya knows how to manage devices that are already tied to Alice through the smart home skill.
Here's how it works:
- πΉ First connect Xiaomi devices to Yandex Alice through the Yandex Smart Home app
- πΉ Then link Yandex account with Marusya through the skill of "Smart home" in VKontakte
- πΉ Now Marouse's commands will be broadcast through Alice to your gadgets.
This method works for most Xiaomi devices supported by Yandex: Yeelight lamps, Aqara sockets, Mi Air Conditioner air conditioners and even some models of robot vacuum cleaners. A full list of compatible equipment can be found in the Yandex Smart Home catalog.
β οΈ Note: Not all Xiaomi devices are officially supported by Yandex, for example, the Mi Band and some Xiaomi Home Security camera models do not have integration with Alice, and therefore with Marusay through this method.
Method 2: Use Home Assistant (for advanced users)
If you don't want to depend on Yandex or your devices aren't supported by Alice, you can use Home Assistant, an open platform for smart homes, which is more complicated, but gives you complete control over integration.
What will be required:
- π₯οΈ Computer or Raspberry Pi to install Home Assistant
- π± Xiaomi account with tied devices
- π Token from Mi Home (you need to get it through special utilities)
- π Home Assistant Cloud Skills for Marousi
Step-by-step:
- Install Home Assistant on your device (instructions on the official website)
- In the configuration file configuration.yaml add integration with Xiaomi: xiaomi_aqara: gateways: - key: YOUR_GATEWAY_KEY
- Get access token to access API Xiaomi via Mi Home Token Extractor (GitHub Instructions)
- Set up a link between Home Assistant and Marusay through official integration
Advantages of this method:
- π§ Complete control of devices without intermediaries
- π‘οΈ Data does not go to the clouds of Yandex or VKontakte
- β‘ The ability to create complex automation
βοΈ Preparation for setting up Home Assistant
β οΈ Attention: Obtaining token access to API Xiaomi may violate the user agreement. Use this method at your own risk, especially if you have a bank card tied to your Mi Account.
Method 3: Cloud Bridge Services (Home Assistant Alternative)
If Home Assistant seems too complex, you can use cloud services that mediate between ecosystems.
| Service | Supported devices | Cost | Difficulty setting up |
|---|---|---|---|
| Yandex Smart Home | Lamps, sockets, sensors | Free of charge. | β |
| IoT Link | Xiaomi + Tuya | 99.β½/moss | ββ |
| Homey | All devices Xiaomi | 299.β½/moss | βββ |
| Node-RED | Any with API | Free of charge. | ββββ |
For example, IoT Link allows you to link Xiaomi and Marousi accounts through your cloud hub.
- Register at iotlink.me
- Add Xiaomi account in your personal account
- Connect Marusya through the skill "IoT Link" in VKontakte
- Set up device synchronization
The main advantage of such services is that you do not need to understand the code or configure local servers. 2-3 seconds).
π‘
Before paying for a premium subscription, check if the service supports your model of Xiaomi device. Some Chinese versions of gadgets may not work with Russian cloud bridges.
Connecting specific devices: nuances and instructions
Not all Xiaomi gadgets connect the same way. Consider the features for popular categories:
Yeelight smart lamps
Yeelight lamps are some of the most compatible devices.
- π‘ Through Yandex Alice (official support)
- π‘ Home Assistant (requires firmware with support) LAN-control)
- π‘ Through the Yeelight skill directly in Marus (limited functionality)
For LAN-The control needs to be in the Mi Home application to transfer the lamp to the developer mode:
- Open the lamp settings in Mi Home
- Click on the model name 5 times in a row
- Enable the Local Network option
Robot vacuum cleaners Mi Robot Vacuum
With vacuum cleaners, the situation is more complicated:
- π€ Mi Robot Vacuum-Mop 2 and newer models supported by Yandex
- π€ Older versions (e.g. Mi Robot Vacuum) 1S) Require Home Assistant
- π€ Marouse teams will be limited: launch, pause, return to base
For vacuum cleaners older than 2020, you may need to manually add a token to the Home Assistant.
How to get a token for an old Xiaomi vacuum cleaner
Fitness bracelets Mi Band
With Mi Band bracelets (including Mi Band) 7/8) There are two problems:
- They don't have a straight line. API steer
- Marusya can only read data (steps, pulse), but not control the bracelet.
For integration, you will need:
- π± Notify & Fitness for Mi Band (alternative client)
- π Sync with Google Fit settings
- π Google Fit Connects to Marus through Health Skill"
π‘
Xiaomi fitness bracelets can be integrated with Marusay only for reading data (steps, sleep, pulse), but not for control (for example, you can not turn on the alarm with your voice).
Solving common problems
Even with the right setup, you can get errors.
Marusia doesn't see Xiaomi's device
Causes and solutions:
- π The device is not tied to Yandex Alice β Check the list in the Yandex Smart Home app
- π Internet problems β restart the router and device
- π Cash skills. β Turn off and reconnect the Smart Home skill in Marus
- π οΈ Outdated firmware β Update your device through Mi Home
Commands are executed with a delay
Latency is typical for cloud integrations.
- β‘ Use local management (Home Assistant with a Home Assistant) LAN-mode)
- πΆ Check the Internet speed (minimum 10 Mbps)
- π Reduce the distance between the device and the router
- π Reconnect your device to a 5 GHz Wi-Fi network (if supported)
Xiaomi Authentication Error
If there is an error when linking accounts:
- π Reset the access token in Mi Home (Settings) β Account. β Security)
- π± Update the Mi Home app to the latest version
- π Check your account region (should be βRussiaβ or βMainland China")
- π§ Use a different email to register (sometimes it helps)
β οΈ Note: If you are using the Chinese version of Xiaomi device (with suffix) CN In the model, it may not be possible to connect to Russian services due to regional restrictions, in which case only firmware on the global version will help.
Security: How to Avoid Losing Access to Devices
There are always risks when you link accounts across ecosystems.
1.Do not use the main Xiaomi account
Create a separate Mi Account specifically for integrations, which minimizes the risk if the intermediary service is compromised.
2. Limit access rights
In Mi Home settings, disable unnecessary permissions for third-party apps: Settings β Accessible applications β [Name of service]
3. Regularly update tokens
Access tokens API Xiaomi is only available for a limited time. 3-6 months, even if everything works.
4. Set up two-factor authentication
Turn it on. 2FA for all accounts:
- Xiaomi (Settings) β Account. β Security)
- Yandex.
- VKontakte.
| Threat. | Risk | How to protect yourself |
|---|---|---|
| Leakage of Xiaomi token | Extraneous people will have access to the devices | Use temporary tokens, change once every 3 months |
| Hacking the cloud service | Leaking data about your home | Choose encryption services (such as Home Assistant) |
| Loss of access to the account | Locking all devices | Save backup recovery codes |
Alternative management (if nothing works)
If none of these methods work, consider alternatives:
Voice control via Google Assistant
Many Xiaomi devices are officially supported by Google Home.
- π€ Connect devices to Google Assistant
- π Link Google account to Marusya via IFTTT
- π£οΈ Sending commands via Google, and Marusya will duplicate them
Local hubs (for technically savvy)
If you are ready to invest in the equipment:
- π₯οΈ Home Assistant on Raspberry Pi (from 5000)β½)
- π Hubitat Elevation (from 15,000)β½)
- π Athom Homey Pro (from 25,000)β½)
These devices allow you to create a fully local ecosystem without depending on the cloud, and the downside is the high cost and complexity of setting up.
Manual scripts through IFTTT
Service IFTTT (If This Then That allows you to create chains of action:
- Create an applet with a trigger "Marusya said..."
- Add the action "Send the team to Mi Home"
- Set up trigger phrases (for example, βMarusya, turn on the light in the hallβ)
Restriction: Free version IFTTT It only allows you to create 3 applets. Full automation requires a paid subscription (from 299).β½/moss).