Integrating Xiaomiβs robot vacuum cleaner into the Apple HomeKit ecosystem is a non-trivial task, but itβs doable. While officially Mi Robot, Dreame or Viomi devices donβt support the HomeKit protocol, there are workarounds through intermediate hubs, third-party firmware or cloud bridges. This article reveals all the current ways of connecting, their pros/cons, and helps avoid the typical mistakes that plague users when setting up.
It's important to understand that there's no one-size-fits-all solution. The integration method depends on the vacuum cleaner model, the firmware version, the availability of additional equipment (like the Home Assistant or Aqara Hub), and even the region of purchase of the device. We analyzed all the working schemes for 2026 - from the simplest (through the cloud) to the most complex (with firmware) - so you can choose the best option for your tasks.
Before you start, check it out: 1. Your vacuum cleaner supports connection to Mi Home/Xiaomi Home (if not, solve this problem first). 2. You have a device on iOS (iPhone/iPad) latest version of the app Home. 3. Are you ready for possible limitations: for example, with cloud integration, you can only manage a vacuum cleaner via the Internet, not locally.
1.Why is Xiaomi not officially supporting HomeKit?
The root of the problem lies in the difference in ecosystems: Xiaomi uses its own Mi Home protocol (or Mijia for Mijia-branded devices), which is incompatible with Appleβs HomeKit.
- π Prohibited protocols: Apple requires HomeKit certification, which is expensive and time-consuming for manufacturers.
- π Regional restrictions: Chinaβs Mi Home ecosystem dominates, and HomeKit is barely used.
- π± Platform competition: Xiaomi promotes its own ecosystem Xiaomi Smart Home, where vacuum cleaners work with other devices of the brand.
- π Firmware updates: New software versions often βcloseβ lofholes for third-party integration.
But there are workarounds, and you can divide them into 4 categories:
| Method | Difficulty | Equipment required | Pluses | Cons |
|---|---|---|---|---|
| The Cloud Bridge (Home Assistant) + HACS) | Medium | Raspberry Pi/NAS, Home Assistant | Local management, high stability | The setup takes 1-2 hour |
| Aqara Hub (via Mi Home) | Low. | Aqara Hub M2/M3, Mi Home account | Simplicity, no need for a Raspberry Pi | Dependence on the Xiaomi cloud |
| Alternative firmware (Valetudo, OpenMi) | Tall. | USB-OTG cable | Full control, no cloud. | Risk of βbrickingβ, loss of guarantee |
| Cloud services (HomeBridge, Hoobs) | Medium | Hoob Box or Raspberry Pi | Support for many devices | Lags in a bad Internet |
Important: Xiaomi vacuum cleaners with a chip STM32 (Mi Robot Vacuum-Mop 2 Lite is easier to play than the models on the model. MT7688 (Like, Dreame. D9). Clarify your device model before choosing a method!
Method 1: Integration through Home Assistant (recommended method)
Home Assistant is an open-source smart home platform that can translate Xiaomi protocols into HomeKit.
- π₯οΈ Home Assistant (Raspberry Pi 4, NAS, or even an old PC).
- π Access to the local network (vacuum cleaner and Home Assistant must be in the same subnet).
- π± Home Assistant app on iPhone.
Step-by-step:
- Install Home Assistant: Download the image for your device from the official website and infollowing installation instructions. OS.
- Add Xiaomi Miio integration: Go to Settings β Devices and services β Add integration, find Xiaomi Miio and enter data from your Mi Home account (login and password).
- Set up an access token: New devices require a Mi Home Token. Use mihome-bin or online services like miot-spec.org.
- Activate HomeKit Controller: In the same integrations menu, add HomeKit Controller and select a vacuum cleaner from the list of devices.
Advantages of the method:
β Local management (no matter what the Xiaomi cloud is).
β Support for automatic scripting in HomeKit (for example, starting cleaning on the motion sensor).
β Ability to integrate other Xiaomi devices (lamps, sensors, sockets).
Make sure the vacuum cleaner is connected to 2.4 GHz Wi-Fi|
Get access token for Mi Home|
Update Home Assistant to the latest version|
Check that port 51827 is open on the router (for HomeKit)-->
β οΈ Note: If the vacuum cleaner does not appear in the Home app after adding, check: 1. Is the HomeKit Controller enabled in the integration settings. 2. Are there any conflicts IP-Addresses (vacuum cleaner and Home Assistant must be in the same subnet). 3. Is the vacuum cleaner firmware updated (older versions may not support local vacuum cleaner? API).
Method 2: Using the Aqara Hub as a bridge
If you already have an Aqara hub (e.g. Aqara Hub) M2 or M3), You can plug a vacuum cleaner in through it, which is easier than Home Assistant, but has limitations:
- π It only works through the Mi Home cloud (no local management).
- β‘ Requires a Mi Home account with a tied vacuum cleaner.
- πΆ Depends on the stability of Xiaomi servers.
Instructions:
- Open the Aqara Home app and go to Automation β Add the device.
- Choose Xiaomi Mi Home and log in with the same account that the vacuum cleaner is attached to.
- Once synchronized, the device will appear in the list. Now it can be added to HomeKit through the standard Settings menu. β HomeKit and Siri in the Aqara app.
β οΈ Note: This method does not support vacuum cleaner models released after 2023 (e.g. Xiaomi Robot Vacuum-Mop 2 Ultra.
What models of vacuum cleaners work with Aqara Hub?
Pros of the method:
βοΈ Minimum technical skills (no need to be trained in the YAML Docker).
βοΈ Compatible with other Aqara devices (sensors, sockets).
βοΈ Official support (no risk of "breaking" the vacuum cleaner).
Cons:
β Delays of commands up to 2-5 seconds (due to cloud synchronization).
β Limited functionality: for example, you can not configure cleaning areas through HomeKit.
β It doesn't work without the Internet.
4. Method 3: Flashing on Valetudo or OpenMi (for advanced)
If you're willing to take risks, you can replace the standard vacuum cleaner firmware with an alternative, like Valetudo or OpenMi.
- π Full control of the device (without the cloud Xiaomi).
- π οΈ Support MQTT, What makes integration with HomeKit easier.
- π Advanced settings (e.g. manual control of fan speed).
β οΈ Warning: Flashing voids warranty and can cause the device to fail if something is done wrong. USB-OTG (For example, Mi Robot Vacuum 1S, Dreame Z10 Pro).
Step-by-step instructions for Valetudo:
- Preparation: Download Valetudo firmware for your model. USB-OTG cable Linux/macOS (or Windows WSL).
- Connect to the vacuum cleaner: Open the vacuum cleaner cover, find the connector USB and connect the cable to the PC. Turn the vacuum cleaner into firmware mode (usually by pressing the Reset button for 10 seconds).
- Firmware: Start the command in the terminal: sudo./flash.sh /dev/ttyUSB0 firmware.bin (where firmware.bin β firmware).
- HomeKit setup: After installation, Valetudo will open a web interface at the address http://[IP_In it, activate the HomeKit plugin and scan. QR-code.
Warnings:
β οΈ Note: Some models (e.g. Xiaomi Mi Robot Vacuum-Mop 2 Pro) have firmware protection, and require a soldering iron and chip experience.
Pros:
βοΈ Maximum stability (no dependence on the cloud).
βοΈ Full access to API The vacuum cleaner (you can write your own scripts).
βοΈ It works without the internet.
Cons:
β Difficulty (requires terminal skills).
β Risk of damage to the device.
β No support for branded features (such as Xiao voice assistant) AI).
sudo ./dump.sh /dev/ttyUSB0 backup.binThis will help restore the vacuum cleaner if something goes wrong.-->
5. Method 4: Cloud services (HomeBridge/Hoobs)
If the first three methods don't work for you, you can use cloud bridges like HomeBridge or Hoobs, which emulate HomeKit devices by connecting to your home. API Mi Home.
What will be required:
- π₯οΈ HomeBridge (Raspberry Pi, Hoobs Box, or even Docker on PC).
- π Mi Home account access token (can be accessed through the miio plugin).
- π‘ A stable Internet connection (all commands go through the cloud).
Instructions for Hoobs (the easiest option):
- Buy Hoobs Box or install Hoobs on Raspberry Pi (image downloaded from hoobs.org).
- In the Hoobs web interface, go to Plug-ins and install homebridge-mi-robot-vacuum.
- In the plugin settings, specify: {"platform": "MiRobotVacuum", "devices": [{"deviceId": "YOUR_DEVICE_ID", "token": "YOUR_MI_HOME_TOKEN", "name": "Xiaomi Vacuum" } ] }
- Restart Hoobs and add the device to HomeKit via QR-code.
Limitations of the method:
- π’ Delays in execution of commands (up to 3-7 seconds).
- π It doesn't work without the Internet.
- π Possible problems after vacuum cleaner firmware updates.
π‘
HomeBridge/Hoobs β The best choice for those who donβt want to mess with Home Assistant, but are willing to put up with cloud delays.
6. Solving Common Errors in Integration
Even with the exact instructions, there can be problems. TOP-5 errors and ways of correcting them:
| Mistake. | Reason. | Decision |
|---|---|---|
| The vacuum cleaner is not displayed in HomeKit | The wrong token or region in Mi Home | Get a new token through miot-spec.org and check the region (should match the account region). |
| Commands are executed with a delay | Cloud synchronization (method) Aqara/Hoobs) | Go to local management via Home Assistant or Valetudo. |
| Error "Can't add accessory" | Conflict IP-address or closed port 51827 | Restart the router and check the firewall settings. |
| The vacuum cleaner is disconnected from HomeKit | Communication failure with Home Assistant/Hoobs | Set up static. IP router-vacuum. |
| Cleaning areas are not working. | Restriction of HomeKit (not all features are supported) | Use the original Mi Home app to customize zones. |
β οΈ Note: If after integration the vacuum cleaner started to turn on or behaves strangely, check: 1. Are there any conflicting automatic scenarios in HomeKit. 2. Is the vacuum cleaner firmware updated (sometimes bugs are fixed in new versions). 3. Is the vacuum cleaner connected to both Mi Home and HomeKit at the same time (this can cause conflicts).
7. Comparison of methods: which one to choose?
To make the choice easier, we have compiled a comparative table taking into account the complexity of configuration, stability and functionality:
| Criteria | Home Assistant | Aqara Hub | Valetudo | HomeBridge/Hoobs |
|---|---|---|---|---|
| Difficulty setting up | Medium | Low. | Tall. | Low. |
| Local control | β Yes. | β No. | β Yes. | β No. |
| Dependence on the cloud | β No. | β Yes. | β No. | β Yes. |
| Support for new models | β Yes (with updates) | β No, only the old ones) | β οΈ Partially. | β Yes. |
| Risk to guarantee | β No. | β No. | β Yes. | β No. |
Selection recommendations:
- π If you already have a Home Assistant, use it (the best balance of stability and functionality).
- π If you want a simple setup and you have an Aqara Hub, choose this method (minimum body movements).
- π οΈ If you are technically savvy and want complete control, go to Valetudo.
- βοΈ If you do not want to mess with the settings, but are ready to put up with lags β HomeBridge/Hoobs.