Marousi Connection to Xiaomi Smart Home: A Complete Guide with Examples

Marusya's voice assistant VK And Xiaomi's smart home ecosystem are two powerful tools that, when integrated properly, turn your home into a futuristic space of science fiction movies. But how do you make them work together when there's no official backing? This article will cover all working methods of connectivity, from basic scenarios to advanced automation using Home Assistant and Node-RED.

We'll take a look at not only the standard Mi Home connection and Alice (who already knows how to manage Xiaomi devices), but also the workarounds for working directly with Marusya, and how to set up voice control for Yeelight lamps, the Mi Robot Vacuum robot vacuum cleaner, or Aqara sensors without any middlemen, and how to avoid mistakes that cause 90% of users to quit halfway.

Important: all instructions are up to date for 2026 and are validated on the latest software versions. If you are using devices older than 2020 (e.g. Xiaomi Gateway) v1), Some functions may not work properly – we will mention this too.

1.Why Marusia doesn't officially support Xiaomi (and what to do about it)

At first glance, it seems strange that VK And Xiaomi, two tech giants with millions of audiences, didn't make their ecosystems compatible:

  • πŸ”Ή Xiaomi is actively promoting its own assistant XiaoAI (in China) and integration with Google Assistant/Alice in Global Markets.
  • πŸ”Ή VK The company focuses on the Russian-speaking segment, where the share of Xiaomi devices is high, but there are no official partnerships.
  • πŸ”Ή Both companies use closed protocols: Mi Home runs through Xiaomi cloud, and Marusya runs through servers. VK.

However, there are three workarounds:

  1. Through Alice (if you have a Yandex Station column or a smartphone with Alice).
  2. Home Assistant is an open platform for smart homes with support for both ecosystems.
  3. Through IFTTT (Free of charge – automation service that can connect Marusya and Mi Home.

Each method has pros and cons, like Alice is limited to a set of supported devices, and Home Assistant requires customization skills, and we'll take all three options with step-by-step instructions.

πŸ“Š What kind of integration method do you prefer?
Through Alice (most simply)
Home Assistant (maximum capacity)
Through IFTTT (free, but limited)
Not yet.

2. Method 1: Connect via Alice (the easiest way)

If you already have a Yandex Station or a smartphone with Alice, it will take no more than 10 minutes. The bottom line is that Alice officially supports Xiaomi devices, and Marusya can control Alice through the skill of β€œSmart Home from Yandex”.

You'll need:

  • πŸ“± Smartphone with Yandex and Mi Home app.
  • πŸ”Š Yandex Station (or smartphone with Alice).
  • 🌐 Stable Internet connection (Wi-Fi 2.4 GHz for Xiaomi devices).

Step 1 Connect Xiaomi Devices to Alice

  1. Open the Yandex app. β†’ Go to the Devices. β†’ Smart home.
  2. Click Add Device β†’ Choose Xiaomi.
  3. Sign in to your Mi Home account (use the same region as the Xiaomi app!).
  4. Select devices for synchronization (e.g. Yeelight) LED or Mi Smart Plug).

Step 2: Set up Marusia to control Alice

  1. In the Marousia app, open Skills β†’ Search and find a smart home from Yandex".
  2. Activate the skill and log in to Yandex account.
  3. Say to Marouse: "Switch on the light through Yandex" or "Alice, turn off the vacuum cleaner."

Importantly, this method only works for devices that Alice officially supports, and the full list is available on Yandex's website.

β˜‘οΈ Check before connecting through Alice

Done: 0 / 4

Method 2: Direct Connection via Home Assistant (for Advanced)

If you want full control of devices without middlemen like Alice, Home Assistant is the best solution. VK Mini Apps), and with Xiaomi (via Mi Home or Xiaomi Miio integration).

Cons of the method:

  • ⚠️ Requires a separate device (Raspberry Pi, NAS or always on PC).
  • ⚠️ It takes 1-2 hours to set up (but the result is worth it).

Step 1 Install the Home Assistant

The easiest way is to use a ready-made image for the Raspberry Pi:

# Download the image from the official website


wget https://github.com/home-assistant/operating-system/releases/download/11.5/haos_rpi4-64-11.5.img.xz




Write it to a microSD (for example, via Balena Etcher)

Step 2. Connect Xiaomi devices

  1. In the Home Assistant web interface, go to Settings β†’ Devices and services β†’ Add integration.
  2. Find Xiaomi Miio and enter your device’s token (how to get one – see spoiler below).
  3. Select the devices you find (e.g., Xiaomi Gateway or Yeelight).
How to get a Miio token for Xiaomi device
1. Install the Mi Home app on Android. 2. download Packet Capture or HTTP Toolkit to intercept traffic. 3. Log in Mi Home and find a request from token in the logs (look for the line "miio.miot-spec.com"). 4. Copy the token - it acts indefinitely if you do not reset the device.

Step 3: Set up integration with Marusay

Use it for that. VK Mini Apps:

  1. In Home Assistant, install the Home Assistant Cloud (for remote access).
  2. Create a Mini App in your office VK developer.
  3. Set up webhooks to receive commands from Marousi (see below for an example of a code for configuration.yaml).
Example of configuration for Home Assistant (fragment)


rest_command:




marusia_turn_on_light:




url:"http://192.168.1.100:8123/api/services/light/turn_on"




method: POST




headers:




authorization:!secret ha_token




content-type: application/json




payload:'{"entity_id":"light.yeelight_color1_0x1234"}'

Step 4: Create scripts for Marousi

In the annex to Marousia:

  1. Go to Skills. β†’ Build your skills.
  2. Choose the Smart Home type.
  3. Add type commands: πŸ’‘ "Turn on the light in the living room" β†’ webhook light.turn_on. 🧹 "Run the vacuum cleaner" β†’ vacuum.start.

1. disable the option "Regional settings" in Mi Home (sometimes interferes with the connection).

2. Update the firmware of the device to the latest version.

3. Check that the token does not contain spaces or extra characters.-->

Method 3: Automation through IFTTT (free, but with limitations)

IFTTT (If This Then That is a service that allows you to connect different platforms through simple rules:

  1. Trigger (This) is the Marouse team.
  2. The action (That) is to control the Xiaomi device.

Step 1. Connect Marusya to IFTTT

  1. Register on IFTTT.com.
  2. Connect the service. VK (In the search, select VKontakte).
  3. Log in to your account. VK, to whom Marousia is attached.

Step 2. Connect Xiaomi Mi Home

  1. V IFTTT Find the Xiaomi Mi Home service.
  2. Sign in to your Mi Home account (use the Russian server!).
  3. Select the devices you want to manage (such as Mi Smart Socket).

Step 3. Create an applet.

Example for socket control:

  1. Trigger (This): Choose VK β†’ New voice command to Marusia.
  2. In the command field, enter: turn on the socket in the kitchen.
  3. Action (That): Choose Xiaomi Mi Home β†’ Turn on plug.
  4. Select your socket from the list.

Now, when you say the phrase, Marusya will send a signal to the IFTTT, And he'll turn on the socket.

⚠️ Attention: Free fare IFTTT limit the number of applets (3 And the speed of the execution, and the full smart home, you have to subscribe. $3.99/month).

MethodDifficultyCostLimitationsSupported devices
Through Alice.⭐ (simple)Free of charge.Only devices compatible with AliceLamps, sockets, vacuum cleaners, sensors
Home Assistant⭐⭐⭐⭐ (difficult)Free (needs iron)Requires customization skillsAll devices Xiaomi + custom integration
IFTTT⭐⭐ (middle-of-the-road)Free (with limits)Limitation on the number of appletsDevices supported by Mi Home

5. Solving Connection Problems

Even when following instructions, errors can occur, and here are the most common ways to correct them:

πŸ”΄ Problem: Marusya doesn't see the device through Alice

Causes and solutions:

  • πŸ”Œ The device is not on the compatible list β†’ Check on the Yandex website.
  • 🌍 Mi Home and Yandex regions do not coincide β†’ In Mi Home, switch to Russia (Russia).
  • πŸ”„ Cash app. β†’ Clean up the Yandex and Mi Home cache, restart the smartphone.

πŸ”΄ Home Assistant is not connected to Xiaomi Gateway

Checklist for diagnosis:

  1. Check that the token is copied correctly (no spaces!).
  2. Make sure that the Xiaomi Gateway is connected to a 2.4 GHz network (not 5 GHz!).
  3. In configuration.yaml, add the line: miio: discovery_retry: 10 # Increase the number of connection attempts

πŸ”΄ Problem: IFTTT fails

What to check:

  • ⏳ Service delays β†’ Check the status at status.iftt.com.
  • πŸ”— Accounts linking β†’ Reconnect. VK and Mi Home in the settings IFTTT.
  • πŸ“± Updating the annex β†’ Update Marusya and Mi Home to the latest versions.

⚠️ Note: If you are using Xiaomi Gateway v1 (It's a circular white gateway, and it may not support the new Mi Home protocols, so you'll have to buy the Gateway. v3 Use the Mi Home Custom Component for Home Assistant.

Advanced Scenarios: Voice Control of Groups of Devices

The basic lighting is just the tip of the iceberg, and the real magic starts when you link multiple devices in a script and control them with a single command.

  • πŸŒ™ "Marusia, movie mode" β†’ Turns off the lights, turns on Yeelight backlight, closes the Aqara curtains and launches Xiaomi TV.
  • β˜€οΈ "Marusya, morning" β†’ Opens the curtains, turns on the Mi Smart Kettle coffee maker and launches a playlist on the Xiaomi Mi Box.
  • πŸšͺ "Marusya, I'm leaving" β†’ Turns off all sockets, activates the security mode of Aqara sensors.

How to set it up in Home Assistant:

  1. Create a script in configuration.yaml: script: cinema_mode: Alias: "Cinema Mode" sequence: - service: light.turn_off target: entity_id: light.living_room - service: light.turn_on target: entity_id: light.yeelight_backlight data: brightness: 50 color_name:"blue" - service: cover.close_cover target: entity_id: cover.curtains - service: media_player.turn_on target: entity_id: media_player.xiaomi_tv
  2. In Marousi settings, create a command β€œmode movie” that calls this script through webhook.

How to set it up through Alice:

In the Yandex appendix:

  1. Go to the Smart Home β†’ Scenarios β†’ Create a script.
  2. Add conditions (such as time or voice command).
  3. Select actions for Xiaomi devices (e.g. Turn off lights) β†’ Turn on the Yeelight lamp).
  4. Save the script and activate it with the Maruse team through the skill of β€œSmart Home from Yandex”.

πŸ’‘

Grouping devices in a scenario saves time and makes control intuitive: Start with 2-3 simple automatic rules (e.g., β€œturn everything off overnight”), and then complicate the logic.

7.Security: How to Protect a Smart Home from Hacking

By connecting Marusya to Xiaomi devices, you create potential vulnerabilities for hackers.

πŸ”’ Basic protection

  • πŸ”‘ Complex passwords for accounts VK, Mi Home and Yandex (use password manager).
  • πŸ”„ Two-factor authentication across all services.
  • πŸ“‘ Separate network for IoT: set up a 2.4 GHz guest network on the router for smart devices only.

πŸ›‘οΈ Advanced Protection (for Home Assistant)

  • πŸ” SSL-Certificate for Home Assistant (configure via Let's Encrypt).
  • 🚫 Blocking External Access: Use Cloudflare Tunnel instead of direct port port port port drop.
  • πŸ“œ Log: Enable log entry in configuration.yaml: logger: default: warning logs: homeassistant.components.miio: debug # Logs for Xiaomi devices

What NOT to do:

  • ❌ Use it. admin/admin How to use a login/password for Home Assistant.
  • ❌ Connect Xiaomi devices to public Wi-Fi networks.
  • ❌ Store Mi Home tokens in open repositories (e.g. on GitHub).

⚠️ Note: If you use Xiaomi Gateway with Aqara sensors, disable the option β€œCloud Management” in the gateway settings (if you do not need remote work.

8.Alternative methods: Telegram bot + marusia

If none of the above methods work, there is another workaround, which is using a Telegram bot as an intermediary, and this works even for devices that are not supported by Alice or the other. IFTTT.

How it works:

  1. You tell Marusa, "Turn the lights on through the telegram."
  2. Marusya sends a message to a private chat with a bot.
  3. The bot executes the command and manages the Xiaomi device via Mi Home API.

Step 1 Build a Telegram bot

  1. Write to Telegram @BotFather team /newbot.
  2. Follow the instructions and save the API-token bot.

Step 2: Set up a mediator server

You can use free hosting like PythonAnywhere or your Raspberry Pi. Example of Python code:

from telegram.ext import Updater, CommandHandler


import requests




Replace your token with a bot and Mi Home Token



TELEGRAM_TOKEN ="your_telegram_token"




MI_TOKEN ="your_mi_home_token"




DEVICE_ID ="12345678" # ID of your Yeelight lamp





def turn_on_light(update, context):




url = f"http://192.168.1.100:8123/api/services/light/turn_on"




headers = {"Authorization":"Bearer YOUR_HA_TOKEN","content-type":"application/json"}




data = {"entity_id":"light.yeelight"}




requests.post(url, headers=headers, json=data)




update.message.reply_text (Lights on!)





updater = Updater(TELEGRAM_TOKEN, use_context=True)




updater.dispatcher.add_handler(CommandHandler("turn_on", turn_on_light))




updater.start_polling

Step 3. Set up Marusya.

In the annex to Marousia:

  1. Create a skill like β€œSend a message.”
  2. As a recipient, specify your Telegram bot (for example, @MyXiaomiBot).
  3. In the message, write a team: /turn_on.

Now, when the phrase "turn on the light through telegrams" Marusya will send a message to the bot, and he will turn on the lamp.

πŸ’‘

For reliability, add a check to the bot. IP-sender address (so that commands are executed only from your phone).

FAQ: Frequent questions about connecting Marusi to Xiaomi

❓ Can you connect Marusya to Xiaomi without Alice?
Use a Home Assistant for this purpose or IFTTT. In the first case, you'll need a separate device (like a Raspberry Pi), in the second case, you'll need enough accounts on the services.
❓ Why Marusia doesn't understand the Xiaomi team?
Possible causes: πŸ”Š Incorrect command formulation (check how it is spelled out in the skill). 🌐 Internet problems (Marusia and the IFTTT/Home Assistant should be online). πŸ”„ Xiaomi device is not synced to the cloud (reboot it). For diagnostics, check the logs in Home Assistant or the status of applets in the cloud. IFTTT.
❓ What Xiaomi devices work exactly with Marusia?
Through Alice, supported: πŸ’‘ Yeelight lamps (all models). πŸ”Œ Mi Smart Plug outlets. 🧹 Robot vacuum cleaners Mi Robot Vacuum (series) S5–S7). πŸ“Ί Mi TVs TV (All Xiaomi devices are running through the Home Assistant, including Aqara sensors and Xiaomi Camera cameras.
❓ Do you have to pay for connecting Marusi to Xiaomi?
All of the methods described (except for the IFTTT Pro) free. However, Home Assistant may require a Raspberry Pi (~5 000 β‚½) or some other mini-PC.
❓ Can you manage Xiaomi devices through Marusia outside the home?
Yeah, but it's got to be: 🌍 For Alice: nothing extra (works through the cloud Yandex). 🌍 For Home Assistant: Set up remote access (e.g. via Cloudflare Tunnel or Nabu Casa). 🌍 For IFTTT: Pro subscription (free rate does not support remote commands). Note that remote management increases the risk of hacking - use VPN or two-factor authentication.