Xiaomiβs Mi Robot Vacuum, Viomi, Dreame series of robot vacuum cleaners are equipped with virtual wall features that allow you to limit cleaning areas without physical barriers. This option is indispensable if you need to protect childrenβs toys, animal feed or fragile items from accidental contact with the device. However, many users face difficulties when setting up β the Mi Home app (or Xiaomi Home in new versions) is not always intuitive, and the algorithms for creating zones differ depending on the vacuum cleaner model and the firmware version.
In this article, we will explore all the ways to install virtual walls, from basic drawing lines in the map to advanced settings through Zones & Barriers. You will learn how to properly place barriers, what errors lead to their ignoring by the robot, and how to circumvent the limitations of standard functionality.
1.Preparation: What to do before setting up virtual walls
Before you start building barriers, make sure your vacuum cleaner is fully prepared to work with the map of the room. Without a properly constructed map, virtual walls simply won't work - the robot won't see them.
Here are the prerequisites:
- πΉ The vacuum cleaner must be connected to Wi-Fi and synced with the Mi Account (check Profile). β Devices).
- πΉ The map of the room must be fully built at least once (the robot must drive through all rooms in cleaning mode).
- πΉ Version of the vacuum cleaner firmware - not lower than the minimum, supporting virtual walls (relevant versions see the table below).
- πΉ The right region is selected in the Mi Home settings (for example, China or Europe β the availability of features depends on this).
If the map is not built or is not built correctly (rooms are not recognized, contours are blurred), reset the card:
- Open Mi Home β pick a vacuum cleaner β Map.
- Click on three dots in the upper right corner β Clear the map.
- Start cleaning again in Full Cleaning (not zone!) mode.
2.How to create virtual walls in Mi Home
There are three methods for installing virtual barriers in the Mi Home app, and their effectiveness depends on the vacuum cleaner model and the firmware version. Let's take a closer look at each.
Method 1: Manual drawing of lines (for all models)
The most versatile method, which works even on older devices without LiDAR, is suitable for time constraints (for example, during repairs).
- Open the map at Mi Home β Click Edit (pencil in the lower right corner).
- Select the Virtual Wall tool (icon with fence).
- Swipe your finger across the map to draw a barrier line, and the thickness of the line is regulated by the scale of the map.
- Save the changes (check at the top).
Limitations of the method:
- β οΈ A robot can ignore a wall if it is too close to real obstacles (less than 15 cm).
- β οΈ On curved lines, gaps are possible - the vacuum cleaner will circumnavigate the barrier not in the contour, but in a straight line.
Method 2: Zones & Barriers for LiDAR models
More accurate method available for vacuum cleaners with laser scanner (Mi Robot Vacuum-Mop 2 Pro, Dreame) D10 Plus et al. Allows polygonal zones and point barriers to be created.
Instructions:
- In the map, click Add Add β Zones and barriers.
- Choose a type: π Barrier β a straight line (analogue of a virtual wall). πΊ Zone β Polygon (robot will not enter the room).
Draw a contour on a map. Two dots are enough for a barrier, at least three for a zone.
- π Action: Ban cleaning or Allow only wet cleaning.
- β° Schedule: Specify the days and times of the barrier.
βοΈ Preparing for barriers
Method 3: Use of magnetic tapes (alternative to virtual walls)
If the software barriers are unstable, you can use physical magnetic tapes (sold separately), and the robot recognizes them as real obstacles.
Pros:
- β It works on all models, including budgets.
- β It doesn't depend on the firmware or the map.
Cons:
- β You need to buy separately (~500β1000 β½ complete).
- β Less flexible: tape will have to be glued when changing zones.
Compatibility table: which models support virtual walls
Not all Xiaomi robot vacuum cleaners work equally well with virtual barriers. Below is the compatibility table for models and firmware versions.
| Model vacuum cleaner | Support for virtual walls | Method of setting up | Minimum firmware version |
|---|---|---|---|
| Mi Robot Vacuum 1S | β Yes (limitedly) | Drawing lines | 3.5.8_003021 |
| Mi Robot Vacuum-Mop 2 | β Yes (full) | Zones & Barriers | 3.6.6_004123 |
| Viomi V2 Pro | β Yes. | Drawing + zone | 2.7.1_002011 |
| Dreame D9 | β Yes, only lines) | Drawing lines | 1.5.0_001005 |
| Mi Robot Vacuum X10+ | β Yes (extended) | Zones & Barriers + 3D-map | 4.0.1_005001 |
Important: If your model is not in the table, check for virtual wall support in the official manual or through the Settings menu. β Map. β Additional in the annex.
4 Common mistakes and how to fix them
Even if you set it up properly, virtual walls might not work.-5 causes and ways of eliminating them:
4.1 Robot ignores virtual wall
Possible causes:
- π΄ Map is irrelevant (the robot doesn't recognize its location) Solution: Update the map by starting cleaning in Full Mode.
- π΄ The barrier is drawn too close to the real wall (less than 20 cm).Solution: push the line 25-30 cm.
- π΄ Solution: Update the software through Settings. β Firmware update.
4.2 Virtual wall disappears after vacuum cleaner reboot
This is a typical problem for models without LiDAR.
- Save the map to the cloud: Map β Three points. β Save the map.
- Before turning off the vacuum cleaner, fix its position on the base - so the map will be restored more accurately.
Why does the robot forget virtual walls?
The barrier operates in one direction only.
If the robot is only going around the wall on one side, check:
- πΉ Line direction: the barrier must be closed (e.g., P-shaped circuit).
- πΉ Line thickness: on the map scale, it should be visually thicker than 1 pixel.
π‘
For LiDAR models (e.g. Xiaomi Mi Robot Vacuum-Mop 2 Pro), use the Card Calibration feature in settings, which will improve virtual barrier recognition accuracy by 30-40%.
5. Advanced settings: schedule and multi-level maps
Virtual walls are really useful when they're tied to a schedule or to a specific map (for example, for different floors).
Scheduling for barriers
If you only need the wall to work at a certain time (e.g. at night), do the following:
- Create a barrier (by any of the methods above).
- Click on it on the map. β Schedule.
- Specify the days of the week and time intervals.
- Save it.
Example: the barrier around the baby cot is active from 20:00 to 07:00.
5.2 Virtual walls on multi-level maps
For multi-storey houses (multi-level maps), the barrier setting has nuances:
- π Barriers are not automatically transferred between floors β they must be created separately for each map.
- π If the vacuum cleaner confuses floors, use manual binding in the card settings.
To add a barrier to the second floor:
- Switch to the second floor map at Mi Home.
- Repeat the process of creating a wall (as in Section 2).
- Assign a unique name to the barrier (for example, Barrier 2 floor β balcony).
π‘
For supported models 3D-Mapping (e.g. Xiaomi Mi Robot Vacuum) X10+) virtual walls can be tied to specific objects (for example, "do not drive to the sofa closer than 30 cm").
6. Alternative methods: third-party applications and firmware
If you don't like the standard Mi Home features, you can use alternative solutions, which give you more flexibility, but require additional actions.
Valetudo App (for advanced users)
Valetudo is an advanced open source firmware for robot vacuum cleaners.
- π§ Create an unlimited number of virtual walls.
- π§ Adjust dynamic zones (for example, a wall only appears when motion is detected).
- π§ Export/import cards.
How to determine:
- Get root-access to the vacuum cleaner (instructions are on the official website).
- Install Valetudo through SSH Telnet.
- Configure virtual walls through the web interface.
β οΈ Note: Valetudo resets warranty and can lead to unstable vacuum cleaner operation.We recommend using only on devices older than 2 years.
6.2 Integration with Home Assistant
If you have a Home Assistant smart home system, you can control virtual walls through automation.
- π Create a barrier when opening a window (according to the sensor).
- π Remove the wall when no one is home (by geolocation).
For this:
- Connect the vacuum cleaner to the Home Assistant through the Xiaomi Miio component.
- Use the service vacuum.set_restricted_zone Dynamic Barrier Management.
Example of code for automations.yaml:
Alias: "Block the window area when opened"
trigger:
- platform: state
entity_id: binary_sensor.window_contact
to: "on"
action:
- service: vacuum.set_restricted_zone
target:
entity_id: vacuum.xiaomi_vacuum
data:
zone: [[20000, 20000, 25000, 25000]] # Zone coordinates in mm
restricted: true7.Optimization: How to Make Virtual Walls More Effective
To ensure that the barriers work as accurately as possible, follow these tips:
7.1. Correct placement of barriers
- π Step back at least 20cm from real walls and furniture.
- π For areas with animals, use U-shaped contours (the robot will not attempt to drive inside).
- π Avoid sharp corners - it is better to use smooth curves.
Regular update of the map
The map of the room becomes obsolete over time (furniture is rearranged, new items are added) to keep the barriers relevant:
- π Once a month, start a complete reassembly of the map (remove the old one and let the robot build a new one).
- π After repositioning the furniture, adjust the position of the barriers.
Testing before cleaning
Before the start of the general cleaning:
- Check the visibility of barriers on the map in Mi Home.
- Start a test cleaning of one room with the walls turned on.
- Make sure the robot doesnβt cross borders.
β οΈ Warning: If the vacuum cleaner gets stuck next to the virtual wall (spinning in place for more than 30 seconds), this is a sign of incorrect calibration of the card. β Additionally. β Gyroscope reset.