Robot vacuum cleaner Xiaomi Vacuum Mop 2 (models) STYJ02YM, STVJ02YM) It has become one of the most popular automated cleaning devices, thanks to its precise navigation and ability to save maps of spaces. After rebooting, resetting, or updating the firmware, the map disappears, and the robot has to re-scan the apartment, which not only wastes time, but also reduces the efficiency of cleaning - especially if you have a complex layout with many rooms and obstacles.
In this article, we will discuss all the current ways to save a map for Xiaomi Vacuum Mop 2, Including official methods through Mi Home, alternative applications like Valetudo or Home Assistant, and manual backup tricks, we will focus on common mistakes (for example, losing a card after upgrading to firmware). 3.5.9_004022) If you want to avoid constant rescanning, read on.
Keeping a map is not just a convenience, it's a key factor in optimal navigation algorithms. Without a map saved, the robot loses the ability to remember cleaning areas, virtual walls and routes, leading to chaotic movement and missed areas, especially critical for owners of large apartments or multi-storey houses, where rescanning can take up to 30-40 minutes.
βββ
1.Official method: save the card through Mi Home
The most obvious and recommended method is to use the proprietary Mi Home app (or Xiaomi Home for European regions), but there are nuances: not all firmware versions support automatic card saving, and in some cases the function can be blocked due to the peculiarities of regional servers.
To save the card through Mi Home, follow the following steps:
- Open the app and select your Xiaomi Vacuum Mop 2 robot vacuum cleaner.
- Go to the Map section (or Map in English).
- Wait until the robot completes the full scan of the room (donβt interrupt the process!).
- Click on the Save icon (usually located in the upper right corner). In some versions of the app, this option may be called Save Map or Save Plan.
- Confirm the action β the card will be linked to the Mi Account.
Important: If there is no save button, check:
- π The Robot Version (Actual to the Robot) 2026 year β 3.5.9_004022 Older versions may not support the function.
- π Account Region: Russia and CIS sometimes require a server change to China (Mainland).
- π± Mi Home version of the app. Use the latest stable build (not beta!).
β οΈ Note: After updating the firmware to the version 3.5.9_004022 Some users report a card reset.If this happens, try rolling back to the previous version via Valetudo or contact Xiaomi support to restore the backup.
βββ
2.Alternative applications: Valetudo and Home Assistant
If the official method doesn't work or you prefer more control over your device, you can use third-party solutions. The two most popular options are Valetudo (open source firmware) and Home Assistant (smart home system), both of which allow you to not only save maps, but also control a robot without Xiaomi's cloud servers.
Method 1: Valetudo Valetudo is an alternative firmware that replaces standard robot software and gives access to advanced features, including manually saving cards in.svg or.png format.
- π§ Unlock root access to the robot (through exploit or soldering work).
- π₯ Install Valetudo through SSH Telnet.
- π₯οΈ Connect to the robot web interface by local IP-address.
Once installed, you can save the map to the Map Management section, and the advantage of this method is that you have full control over the map files and can edit them.
Method 2: Home Assistant Home Assistant integrates with Xiaomi Vacuum Mop 2 component xiaomi_miio. To save the map:
- Add the robot to the Home Assistant configuration.
- Use the Xiaomi Miio Vacuum Map Card plugin for visualization.
- Configure automatic saving of the map in JSON format through scripts.
| Method | Need root? | Format of conservation | Difficulty |
|---|---|---|---|
| Mi Home | β No. | Xiaomi's Cloud | ββ (simple) |
| Valetudo | β Yes. | SVG/PNG/JSON | ββββ (difficult) |
| Home Assistant | β No. | JSON | βββ (middle-of-the-road) |
Download firmware from GitHub|Make a backup of the original software|Connect the robot to Wi-Fi|Install Telnet/SSH client|Getting a Mi Home token-->
βββ
3.Manual card saving via Mi Home token
If you don't want to install third-party firmware, but you need a backup of the card, you can extract it through the Xiaomi API using the device's token, a technique that requires minimal technical skills, but allows you to get a card file in.dat format, which can later be downloaded back.
Instructions:
- Get your robot token through the Mi Home app (use tools like Mi Token Extractor for Android or Packet Capture for iOS).
- Install Python and Python-miio: pip install python-miio
- Run the command to download the map: mirobo --ip ADRESS ROBOT --token Your Token. get_map The map file will be saved as map.dat.
To restore the card, use the command:
mirobo --ip ADRES ROBOT --token YOUR TOKEN upload_map map.datβ οΈ Note: Mi Home tokens may become invalid after changing your account password or updating your application. Always keep your token backup in a safe place.
π‘
If the team get_map returns the error, try to start the robot for cleaning first - the map is updated only during active scanning.
βββ
4. Cloud services: backup via Google Drive or Yandex Drive
If you use Mi Home to save cards, the data is stored on Xiaomi servers and can be lost when you lock your account or change region. To avoid this, you should set up automatic card backup to third-party cloud services.
For this:
- π Export the card manually via Mi Home (if export option is available).
- βοΈ Upload the file to Google Drive or Yandex Drive with a date stamped.
- π Automate the process through IFTTT or Tasker (for Android).
Example of automatic download script (for Home Assistant):
- alias: "Backup Xiaomi Map to Google Drive"
trigger:
- platform: time
at: "03:00:00"
action:
- service: google_drive.upload
data:
file_path: "/config/xiaomi_map_backup/{{ now().strftime('%Y-%m-%d') }}.dat"
drive_file_name: "vacuum_map_{{ now().strftime('%Y-%m-%d') }}.dat"This approach ensures that even if the robotβs settings fail or reset, you can quickly restore the current map.
βββ
5. Typical errors and their solutions
Even if you follow instructions correctly, users often face problems, and let's look at the most common mistakes and how to fix them:
Problem 1: The card is not saved in Mi Home
- π Reason: Robot has not completed a full scan of the room.
- π οΈ Solution: Start a full cleaning (Zonal cleaning is not suitable!) and wait until the end.
Problem 2: After the firmware update, the card reset
- π Reason: New versions of the software (3.5.9_004022 and above) may reset user data.
- π οΈ Solution: Before upgrading, save the card via Valetudo or Mi Home token. If the card is already lost, try rolling back to the previous firmware.
Problem 3: Valetudo can't see the robot
- π Reason: Incorrectly stated IP-address.
- π οΈ Solution: Check the robot's Wi-Fi connection and the token's correctness. Use ping to check the device's availability.
How do you get back on the old firmware?
βββ
6. Additional tips for stable card operation
To minimize the risk of card loss, follow these guidelines:
- π Do not interrupt cleaning until it is finished β this can damage the card file.
- π‘ Use stable Wi-Fi. The robot loses communication with Xiaomi servers at a weak signal, which can lead to data reset.
- π Update your firmware regularly, but check the reviews on forums (for example, check them out first, 4PDA or Reddit) for bugs.
- π± Link the robot to the main account. If you change your Mi Home account, the card may be lost.
If you move frequently or have multiple floors, consider buying a multi-storey docking station (e.g. for the Xiaomi Vacuum Mop 2 Pro model) that will allow the robot to save separate maps for each level.
π‘
Regularly backing up your card via a token or Valetudo is the only reliable way to avoid losing it when you crash or update.
βββ