How to connect Xiaomi devices to Marus: full instructions with nuances

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.

πŸ“Š What Xiaomi devices do you want to connect to Marus?
Smart lamps
Robot vacuum cleaner
Temperature sensors
Rosettes
Other

⚠️ 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:

  1. Install Home Assistant on your device (instructions on the official website)
  2. In the configuration file configuration.yaml add integration with Xiaomi: xiaomi_aqara: gateways: - key: YOUR_GATEWAY_KEY
  3. Get access token to access API Xiaomi via Mi Home Token Extractor (GitHub Instructions)
  4. 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

Done: 0 / 4

⚠️ 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.

ServiceSupported devicesCostDifficulty setting up
Yandex Smart HomeLamps, sockets, sensorsFree of charge.⭐
IoT LinkXiaomi + Tuya99.β‚½/moss⭐⭐
HomeyAll devices Xiaomi299.β‚½/moss⭐⭐⭐
Node-REDAny with APIFree of charge.⭐⭐⭐⭐

For example, IoT Link allows you to link Xiaomi and Marousi accounts through your cloud hub.

  1. Register at iotlink.me
  2. Add Xiaomi account in your personal account
  3. Connect Marusya through the skill "IoT Link" in VKontakte
  4. 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:

  1. Open the lamp settings in Mi Home
  2. Click on the model name 5 times in a row
  3. 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
1. Install Packet Capture on Android 2. Run traffic capture when Mi Home 3 is open. Find a request to api.io.mi.com with a token in headings 4. Copy the value of the "ssecurity" parameter - this is your token

Fitness bracelets Mi Band

With Mi Band bracelets (including Mi Band) 7/8) There are two problems:

  1. They don't have a straight line. API steer
  2. 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.RiskHow to protect yourself
Leakage of Xiaomi tokenExtraneous people will have access to the devicesUse temporary tokens, change once every 3 months
Hacking the cloud serviceLeaking data about your homeChoose encryption services (such as Home Assistant)
Loss of access to the accountLocking all devicesSave 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:

  1. Create an applet with a trigger "Marusya said..."
  2. Add the action "Send the team to Mi Home"
  3. 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).

FAQ: Answers to Frequent Questions

Can I connect a Xiaomi camera to Marusa to watch a video?
Direct viewing via Marusya is impossible, but there are workarounds: Connect the camera to Yandex Alice (if the model is supported) Use the skill "Show the camera [name]" in the VKontakte app For older models (for example, Xiaomi Mi Home Security Camera 360) you will need Home Assistant with the FFmpeg module for streaming Important: Marusya does not know how to show videos directly in the chat - only sends a link to view in the browser.
Why does Marusya turn on the lamp but can't change its color?
This is a restriction of integration through Yandex Alice. Use direct commands in Mi Home (e.g., β€œAlice, turn on the lamp at 50% brightness in blue” will not work) Set up Home Assistant with support for color profiles Use separate scripts for each color (e.g., β€œMarusya, activate the β€œEvening” mode”) in Yandex Smart Home for Lamps Yeelight is available only basic commands: turn on/off, brightness, color temperature (without a full palette). RGB).
How to connect to Marus smart lock Xiaomi?
Smart locks (such as the Xiaomi Mi Smart Door Lock) do not have official integration with voice assistants for security reasons. Use Home Assistant with Xiaomi Miio module (token required) Set up lock status notifications (open/closed) via Telegram bot Create a geolocation opening scenario (for example, when you approach the door) ⚠️ Warning: Voice-controlled locks are extremely unsafe! it's better to use physical keys or fingerprints.
How many Xiaomi devices can be connected to Marus?
Limitations depend on the integration method: Through Yandex Alice: up to 100 Devices (Smart Home Yandex Limitation) Through Home Assistant: unlimited (depends on server power) Through IoT Link: up to 50 In practice, the problems begin after 20-30 Devices – network load increases and command delays increase.
Can you control Xiaomi air conditioner through Marusya?
Yes, but with reservations: Mi Air Conditioner models (2019 and later) are supported by Yandex β†’ Older air conditioners require Home Assistant with IR-a blaster (e.g. BroadLink) RM4 Pro Available commands: turn on/off, set temperature, operating mode (cooling/heating) For fine tuning (e.g. airflow direction), it is better to use the original Mi Home application.