How to Add Xiaomi Vacuum Cleaner to Apple HomeKit on iPhone: A Complete Guide to Error Solutions

Why Xiaomi vacuum cleaner doesn’t work directly with HomeKit and what to do about it

Apple’s HomeKit ecosystem is notorious for being closed: it only supports certified devices with a HomeKit Secure Video chip or MFi (Made for iPhone) protocol. Xiaomi vacuum cleaners β€” even flagship models like the Mi Robot Vacuum-Mop 2 Pro or DreameBot X30 Ultra β€” do not have such a certificate. This does not mean that integration is impossible: there are workarounds through hub bridges and third-party applications.

The main problem lies in the communication protocols: Xiaomi uses Mi Home/Xiaomi Home with cloud-based Mi Account binding, while HomeKit requires local Wi-Fi or Bluetooth connectivity LE. Solutions are divided into two types:

  • πŸ”Œ Hardware bridges: devices like Home Assistant (on the Raspberry Pi) or Athom Homey Pro that translate Xiaomi commands into the HomeKit protocol.
  • πŸ“± Software solutions: intermediary applications (HomeBridge, HOOBS), HomeKit-based emulating devices API Xiaomi.

It's important to understand that no solution is 100% functional, for example, you can use HomeBridge to start cleaning with your voice ("Hey Siri, turn on the vacuum cleaner"), but you lose access to cleaning maps or setting up areas in Apple Home. In this article, we'll discuss both methods with a focus on free and low-cost options.

πŸ“Š What kind of vacuum cleaner Xiaomi you have?
Mi Robot Vacuum-Mop 2 Pro
DreameBot (any model)
Viomi V3
Another Xiaomi
Not Xiaomi.

Method 1: Connect via HomeBridge (without an additional hub)

If you already have a Mac, iPad or Apple TV as a home hub, HomeBridge is the cheapest solution, open source software that emulates HomeKit devices by pulling data from other ecosystems (including Xiaomi).

  • πŸ’» Computer on the computer macOS/Windows/Linux (or Raspberry Pi for round-the-clock work).
  • πŸ”‘ Mi Account with a tied vacuum cleaner in the Mi Home app.
  • πŸ“² Installed Apple Home app on iPhone.

Adjustment steps:

  1. Install HomeBridge: npm install -g homebridge homebridge-xiaomi-miio For Windows, use the official instructions.
  2. Configure the config: edit the file config.json, adding the Xiaomi Miio plugin: "platforms": [{"platform": "XiaomiMiio", "devices": [{"ip": "192.168.1.100", // IP your vacuum cleaner token": "YOUR_XIAOMI_TOKEN", // The token of the device "model": "miio.vacuum" } ] ] Token can be obtained through the Miio Token Extractor (requires Android-smartphone).
  3. Launch HomeBridge and add the device to Apple Home via scan QR-code (will appear in the console logs).

Get a vacuum cleaner token through Miio Token Extractor|

Install Node.js (version 16)+)|Check it out. IP-router|

Disable the firewall/antivirus at the time of setting-->

Limitations of the method:

  • ⚠️ No cleaning card support – only basic commands (Start/Stop/Pause).
  • ⚠️ Delayed execution of commands up to 2-5 seconds (depends on the cloud Xiaomi).
  • ⚠️ Requires a constant HomeBridge (on a Raspberry Pi or always on PC).

πŸ’‘

If HomeBridge doesn’t see the vacuum cleaner, check that the Mi Home has a Mainland China regional zone, and in other regions, the API can block third-party connections.

Method 2: Home Assistant + HomeKit Integration (Extended Features)

Home Assistant is a more powerful alternative to HomeBridge, which allows you not only to integrate a vacuum cleaner into HomeKit, but also to create complex automation, such as running cleaning on a schedule or in the absence of people at home (via geofences).

ComponentRequirementsCost
Home AssistantRaspberry Pi 4 (2GB of RAM) or Docker on PCFrom 3,500 β‚½ (for RPi 4)
Xiaomi Miio pluginToken of the device and IP-vacuum-dressFree of charge.
Integration of HomeKitIncluded by default in Home AssistantFree of charge.

Step-by-step:

  1. Install Home Assistant on Raspberry Pi or via Docker: docker run -d --name="home-assistant" -e TZ=Europe/Moscow -v /path/to/config:/config --net=host homeassistant/home-assistant:stable
  2. In the web interface (http://[IP_yours]:8123) Go to Settings. β†’ Devices and services β†’ Add integration and choose Xiaomi Miio.
  3. Enter. IP-vacuum cleaner address and token (previously received). Once the device is detected, add it to HomeKit via the Settings menu β†’ Integration β†’ HomeKit.

Advantages of HomeBridge:

  • πŸ“Š Support for cleaning cards (through custom components like Xiaomi Miio Map).
  • πŸ”„ Ability to create automation (e.g., cleaning on schedule or at low charge level).
  • πŸ›‘οΈ Local management (without depending on the cloud).

⚠️ Note: If Xiaomi vacuum cleaner updated the firmware after connecting to Home Assistant, the token may reset, in which case you will have to get a new token and reconfigure the integration.

Comparison of Integration Methods: What to Choose

The choice of method depends on your tasks and technical capabilities. Below is a comparative table of key parameters:

ParameterHomeBridgeHome AssistantAthom Homey Pro
CostFree (there's a PC)From 3,500 β‚½ (RPi 4)From 25,000. β‚½
Support for cleaning cards❌ No.βœ… Yes (with custom components)βœ… Yes.
Local control❌ No (Xiaomi cloud)βœ… Yes.βœ… Yes.
Automation⚠️ Limitedly.βœ… Full supportβœ… Full support

A critical nuance: Xiaomi vacuum cleaners with firmware newer than 2023 can block third-party connections through APIs. In this case, only a hardware hub like Homey Pro or a firmware rollback (risky!) will help.

πŸ’‘

For most users, the Home Assistant is optimal – it is cheaper than Homey Pro and more functional than HomeBridge, but requires customization skills.

Common mistakes and their solutions

Even if you set up the integration correctly, it might not work, and here are the typical problems and ways to fix them:

  • πŸ”΄ "Device not responding" in HomeKit: Check that the vacuum cleaner and device with HomeBridge/Home The Assistant is on the same Wi-Fi network. VPN Or Pi-hole, they can block local requests. Reset the vacuum cleaner (hold the power button). 10 seconds).
  • πŸ”΄ "Wrong token": Get a new token through Miio Token Extractor (the old one could have reset after the firmware update). Make sure the China zone is selected in Mi Home.
  • πŸ”΄ Vacuum is not displayed in HomeKit: Check Logs HomeBridge/Home Assistant to Errors (homebridge team) -D or the Logs section in HA). Remove the device from Apple Home and add it again.

⚠️ Note: If Xiaomi vacuum cleaner was previously linked to another Mi Account, it must be reset to factory settings (Settings) β†’ Reset in the Mi Home app, otherwise the new token will not be available.

How to reset the Xiaomi vacuum cleaner to factory settings?
1. Hold the power button on the case for 10-15 seconds until the beep. 2. In the Mi Home app, go to Device Settings β†’ Delete the device. 3. Reconnect the vacuum cleaner as a new device. Important: after resetting, all stored cleaning cards and settings will be lost!

Alternative ways to control the vacuum cleaner through the iPhone

If integration with HomeKit seems too complicated, consider alternative options for managing Xiaomi’s vacuum cleaner with iPhone:

  • πŸ“± Mi Home: Official solution with full functionality (maps, zones, schedule) minus: no integration with Siri or Apple Home.
  • πŸ€– Google Assistant + Shortcuts: Connect the vacuum cleaner to Google Home, then create a Shortcut on your iPhone with a command for Google Assistant. Example: voice command "Hey Siri, start cleaning up" β†’ Calling Google Assistant with Shortcuts.
  • 🌐 IFTTT (If supported: Some Xiaomi models are compatible with IFTTT β€” You can create an applet to control through Apple Shortcuts.

Pros of alternatives:

  • βœ… No additional hardware is required (except for Google Home for the second option).
  • βœ… Keep all the functionality of the vacuum cleaner (maps, zones, cleaning intensity).

Cons:

  • ❌ No native integration with HomeKit (will not appear in the Home app).
  • ❌ Dependence on Third-Party Services (Google, IFTTT), changeable API.

FAQ: Frequent questions about Xiaomi’s integration with HomeKit

Can you connect Xiaomi vacuum cleaner to HomeKit without a computer or Raspberry Pi?
No, integration via HomeBridge or Home Assistant requires a constantly running device (PC, Raspberry Pi, NAS). Alternatively, buy a ready-made hub like Athom Homey Pro (about 25,000). β‚½), Which supports Xiaomi and HomeKit out of the box".
Why does the vacuum cleaner disconnect from HomeKit after updating the firmware?
Xiaomi regularly updates security protocols that can dump API tokens. Solution: Get a new token through Miio Token Extractor. Update HomeBridge/Home Assistant config. If you can't get the token, roll back the vacuum cleaner firmware (risky, may violate the warranty).
Can I manage cleaning areas through HomeKit?
HomeBridge is not. Home Assistant has custom components like Xiaomi Miio Map that allow you to: View the cleaning map in the Home Assistant interface. Run cleaning in specific areas through automation. However, Apple Home will only show these functions as base commands (Start/Stop).
Will voice control work through Siri?
Yes, but with limitations: HomeBridge/Home Assistant can say, "Hey Siri, turn on the vacuum cleaner" or "Hey Siri, pause cleaning." Complex commands (like "Clean the kitchen") are not supported - this requires scripts in Home Assistant.
Which Xiaomi models are best integrated with HomeKit?
The best compatibility is shown by models on the Dreame platform (for example, DreameBot X30 Ultra or DreameBot Z10 Pro), since their API is more stable. Vacuum-Mop vacuum cleaners (for example, Mi Robot Vacuum-Mop 2 Pro) are also supported, but may require a firmware rollback for stable operation with the Home Assistant.