How to find out the token of the vacuum cleaner Xiaomi on iOS: 5 working ways (2026)

Why is Xiaomi’s vacuum cleaner token so important to iOS users?

If you own a Xiaomi robot vacuum cleaner (or brands Dreame, Viomi, Mijia) and use an iPhone or iPad, sooner or later you may need a device token – a unique digital key that allows access to advanced features. Without it, you can not connect the vacuum cleaner to third-party smart home systems (Home Assistant, Node-RED), create automation through Shortcuts or even restore control after resetting.

The problem is that Mi Home (the official Xiaomi app) on iOS does not explicitly provide the token β€” unlike the Android version, where it can be extracted from logs β€” creates a barrier for advanced users who want to go beyond the standard features. In this article, we will discuss all the current ways to get a token on iOS in 2026, including workarounds, risks and solutions to typical errors.

We warn you right away that some methods require technical training or temporary access to an Android device, but don’t worry, we’ll explain each step in detail, even if you’re a beginner.

Method 1: Official method via Mi Home (limited functionality)

To start with, the simplest, but also the most limited, option: the official Mi Home app for iOS doesn’t show the token directly, but in some cases it can be requested through Xiaomi support, which is only suitable for devices linked to your Mi Account.

Here's how it works:

  • πŸ“± Open the Mi Home app and go to your vacuum cleaner profile (click on its icon on the home screen).
  • βš™οΈ Select Settings β†’ About the device β†’ Send feedback.
  • πŸ’¬ In the message box, write, "Please provide a token for the device [vacuum model] to integrate with third-party systems." Specify the serial number (you can find it on the case or in the settings).
  • ⏳ Expect a response from support (usually 1-3 days) The token will arrive by email linked to the account.

⚠️ Note: Xiaomi does not always meet such requests. If the device is purchased not in an official store or is tied to another region (for example, Chinese firmware), the provision of the token may be refused.

This is the safest method, but it's also the most unreliable, and if support ignores your request or refuses, then you can go to alternative methods.

πŸ“Š What kind of vacuum cleaner Xiaomi you have?
Mi Robot Vacuum-Mop 2 Pro
Dreame D9
Viomi V3
Another Xiaomi
Not Xiaomi.

Method 2: Using an Android emulator on a Mac (for power users)

If you have a Mac (or Windows with an emulator installed), you can temporarily run Mi Home for Android and extract the token through logs, which takes more effort, but gives 100% results.

You'll need:

  • πŸ’» Mac with BlueStacks or Genymotion installed.
  • πŸ“± APK-Mi Home file (download from APKPure).
  • πŸ”§ Log viewing software (Logcat is part of Android Studio).

Step-by-step:

  1. Install and run the Android emulator.
  2. Download Mi Home and log in to your account.
  3. Connect the vacuum cleaner to the emulator (use the same Wi-Fi network as you would on your iPhone).
  4. Open Logcat and start the filter for the keyword token.
  5. Reboot the vacuum cleaner through the application - a string with a token will appear in the logs.

Install BlueStacks or Genymotion | Download APK Mi Home (version no older than 2026) | Connect the vacuum cleaner to the same Wi-Fi network | Run Logcat with a filter on "token" | Reboot the vacuum cleaner through the application-->

The token will look like a set of 32 characters, for example: a1b2c3d4e5f6...1234567890abcdef. Copy it and save it in a safe place.

⚠️ Warning: Do not use emulators on suspicious sites, only official versions of BlueStacks or Genymotion. Otherwise, you risk getting a virus that will steal your Xiaomi account details.

Method 3: Temporary connection to Android device (most reliable)

If you have access to an Android smartphone (even for an hour), it’s the easiest solution. You don’t need emulators or complex manipulations – just an official app and a couple of clicks.

Algorithm of action:

  1. Install Mi Home on your Android device and log in.
  2. Connect the vacuum cleaner to the app (it should be on the same Wi-Fi network).
  3. Open the MiHome2MQTT app (or similar, such as Packet Capture).
  4. Run traffic capture and find a token request (usually in URLs or headers).

The token will be displayed in the format:

https://api.io.mi.com/app/...&token=VASH TOKEN HERE&...

This method works for all Xiaomi models, including the Mi Robot Vacuum-Mop 2 Pro, Dreame D10 Plus and Viomi V3.

πŸ’‘

If you don’t have your own Android device, ask a friend or use the services of smartphone rental services (for example, Rent-a-Phone). 30 minutes of work will cost 100-200 rubles, but save hours of time.

Method 4: Retrieving a token through Home Assistant (for advanced)

If your vacuum cleaner is already connected to Home Assistant, you can try to extract the token through Xiaomi Miio integration, which is only suitable for those who have already set up a smart home system.

Instructions:

  1. Open the configuration file configuration.yaml in Home Assistant.
  2. Find the Xiaomi Miio integration section (usually this): vacuum: - platform: xiaomi_miio host: 192.168.1.100 token:!secret xiaomi_vacuum_token
  3. If the token is stored in secrets.yaml, open this file and find the line with xiaomi_vacuum_token.

If the token is encrypted or missing, try reconnecting the device via the Home Assistant web interface:

  • 🏠 Go to Settings. β†’ Devices and services.
  • πŸ”„ Click Add Integration and select Xiaomi Miio.
  • πŸ” During the setup process, the system can show the token (or request its input – then use other methods).

⚠️ Note: Do not store the token in plaintext in configuration files if your Home Assistant is accessed from the internet.Use!secret or environment variables.

Method 5: Alternative iOS Apps (with Risks)

There are several apps in the App Store that promise to show the Xiaomi device token directly to the iPhone, including Mi Token Extractor, IoT Token Finder, and Mi Home Token, but they have serious drawbacks:

AnnexPrinciple of workRisks.Efficiency
Mi Token ExtractorScanning Mi Home trafficDemands. VPN-connection, can intercept personal data50% (often not working with newer versions of Mi Home)
IoT Token FinderUses vulnerabilities in the Miio protocolCan I block Xiaomi account?30% (depending on the model of the vacuum cleaner)
Mi Home TokenParsite cache of the appPrisonbreak or third-party certificates required70% (only works on older iOS)

We do not recommend these applications for two reasons:

  1. Security: Most of them require access to your traffic or Xiaomi account, which can lead to data leakage.
  2. Reliability: Xiaomi regularly updates its security protocols, and the apps quickly stop working.

If you decide to try it, you should definitely:

  • πŸ”’ Create a backup of Mi Home data.
  • 🚫 Disable two-factor authorization for the duration of the application.
  • πŸ“± Use a test device (not the main iPhone).
What happens if you use unofficial applications?
Xiaomi can block your Mi Account for suspicious activity, especially if the app sends too many requests to servers, restore access only through support, providing documents about the purchase of the device, and some β€œtoken extractors” contain hidden miners or spyware that will consume the resources of your iPhone in the background.

Problem Solving: What to Do If the Token Doesn't Work?

You received a token, but the vacuum cleaner doesn't connect to Home Assistant or another service? Here are the typical reasons and ways to fix them:

Problem.Possible causeDecision
The token is rejected (Invalid token)The device is linked to another accountReset the vacuum cleaner to factory settings and tie it to your Mi Account
Connection Error (Connection Rejected)Vacuum and server in different networksSet up a static IP for a vacuum cleaner in the router
The token works, but not all functions are availableRestrictions of Chinese firmwareUpdate to the global version via Mi Home

If nothing helps, check:

  • πŸ”„ Relevance of the token: it can change after updating the vacuum cleaner firmware.
  • 🌍 Device region: Chinese models require token with cn suffix.
  • ⚑ Protocol version: New vacuum cleaners (2023-2026) may use Miio 2.0, which is not compatible with older integrations.

For diagnosis, use the command in the terminal (if you have access to the computer):

miio --ip 192.168.1.100 --token your Token info

If the command returns the device information (model, charge, status), the token is operational. If not, repeat the process of obtaining it.

πŸ’‘

Xiaomi token is valid indefinitely, but can reset after updating the vacuum cleaner firmware or changing the region in Mi Home.Always check its relevance before setting up new automations.

FAQ: Frequent questions about Xiaomi vacuum cleaner tokens

Can I get a token without an Android device?
Yes, but with limitations. The most reliable ways without Android are to request a token through Xiaomi support (mode 1). Use an emulator on a Mac (mode 2). If the vacuum cleaner is already connected to the Home Assistant, extract the token from the configuration files (mode 4). Alternative iOS applications (mode 5) are unstable and pose security risks.
Why is my token made up of 64 characters instead of 32?
This is OK! New format tokens (Miio 2.0) can be 64 characters long. They are compatible with all modern integrations, including Home Assistant and Node-RED. If your smart home system does not accept such a token, upgrade the plugins to the latest versions.
Can I use one token for several vacuum cleaners?
No. Each Xiaomi device (vacuum cleaner, lamp, socket) has a unique token tied to its serial number and Mi Account. If you have two vacuum cleaners, each needs a separate token.
What happens if someone recognizes my token?
The token gives you complete control over the device: you can start/stop cleaning, change settings, and in some cases even update the firmware. If the token falls into the wrong hands: Immediately dump the vacuum cleaner to the factory settings (RESET button on the case). Change the password in Mi Account. Cancel all sessions in the Xiaomi account settings. After the reset, the device will receive a new token.
How to check if my Xiaomi account is blocked after using third-party methods?
Signs of blocking: 🚫 Impossible to log in to Mi Home (account locked error). πŸ”„ Devices are disconnected from the account spontaneously. ⚠️ Xiaomi sends an email warning of suspicious activity. If your account is blocked, contact support with a photo of a check on any Xiaomi device (even a vacuum cleaner.