How to install a virtual wall for a robot vacuum cleaner Xiaomi: 3 working ways

Xiaomiโ€™s robot vacuum cleaners are smart assistants, but without the right restrictions, they can go where they shouldnโ€™t: into a nursery while sleeping, to a pet food bowl, or to a carpet with a long pile that the device canโ€™t clean properly. Virtual walls solve this problem by creating invisible barriers on the cleaning map. However, many users have difficulty setting them up โ€” especially if itโ€™s a model without a physical beacon (for example, Xiaomi Mi Robot Vacuum-Mop 2 Lite or DreameBot D9).

In this article, weโ€™ll look at all the current ways to install virtual walls, from standard features in the Mi Home app to workarounds for budget models. Youโ€™ll learn how to create no-cleaning zones, set up schedules for different rooms, and even use third-party devices (such as the Xiaomi Smart Door/Window Sensor) as an alternative. Importantly, instructions are adapted for firmware in 2026 โ€“ the old methods of manually editing maps through JSON no longer work!

What is a Virtual Wall and Why You Need It

A virtual wall is a software barrier that a robot vacuum cleaner doesn't cross during cleaning, and unlike physical beacons (like the Xiaomi Mi Virtual Wall Barrier), it's customized right in the app and tied to a map of the room.

  • ๐Ÿšซ No-go zones: blocking access to baby cots, aquariums or places where wires lie.
  • ๐Ÿ›๏ธ Night cleaning: eliminating bedrooms from the route if the vacuum cleaner is running on schedule.
  • ๐Ÿถ Pets: Stress prevention in pets (e.g. cats who are afraid of a robot).
  • ๐Ÿงน Selective cleaning: cleaning only certain rooms (e.g., kitchen and corridor).

In the models with LDS-Scanner (laser sensor, like Xiaomi) S7 or DreameBot. Z10 Pro) virtual walls work more accurately than budget vacuum cleaners with a gyroscope (for example, Mi Robot Vacuum-Mop Essential.

โš ๏ธ Note: Virtual walls do not replace physical barriers if there are stairs without fences in the house. The robot can ignore the software barrier due to a navigation failure (for example, when the Wi-Fi signal is weak).

Method 1: Configure via the Mi Home app (official method)

This is the easiest way that works on all Xiaomi models with card support (starting with firmware). 3.5.8_004025 Instructions are relevant for Mi Home (global version) and Xiaomi Home (Chinese version with advanced features).

Step 1: Open the app and select your vacuum cleaner. Go to Map (or Map in English localization). If you don't have a map, start cleaning in Full Cleaning mode first, so that the robot can make a plan for the room.

Step 2. Click on the icon. โ‹ฎ (three dots) in the top right corner of the map and select Add Virtual Wall (or Add Virtual Wall). โ†’ No-go zones.

Step 3. Swipe your finger across the map to draw a wall line. Minimum length is 30 cm, maximum 10 meters. After drawing, confirm the action with the Save button.

Make sure the robot is on base | Check that the map is fully loaded | Turn off Cleanup Zone mode if it is active |Save changes before leaving the application-->

Step 4: Test the wall: start cleaning and watch the robot bypass the restricted area. If the wall doesn't work, restart the vacuum cleaner (hold the power button for 5 seconds) and reset the setting.

๐Ÿ’ก

If the virtual wall disappears after restarting the vacuum cleaner, update the firmware through Settings โ†’ Software Update. In older versions, there was an error with saving user zones.

Method 2: Use cleaning zones (alternative to models without virtual walls)

Some budget models (such as the Mi Robot Vacuum-Mop 2 Lite or Viomi V2) do not support virtual walls, but allow you to create cleaning areas.

Algorithm of action:

  1. In the Mi Home app, open the map and click Add Zone.
  2. Circle the area you want to remove (such as a corridor and kitchen).
  3. In the zone settings, select Only this area.
  4. Start cleaning โ€“ the robot will clean only the allowed areas, ignoring the rest.

The downside of this is that if you forget to start cleaning through the area, the vacuum cleaner will clean the entire room. To automate the process, set the schedule for each zone separately (for example, the kitchen is daily at 10:00, the corridor is at 14:00).

Virtual Walls | Cleaning Zones | Physical beacons | Not using restrictions-->

MethodPlusesConsSuitable models
Virtual wallsExact limitation, working with scheduleRequires stable Wi-Fi, can get lostS7, S7 Pro, DreameBot Z10 Pro
Cleaning areasIt works on budget models.Does not block access completelyMi Robot Vacuum-Mop 2 Lite, Viomi V2
Physical beacons100% reliability, does not depend on the softwareAdditional expenses (from 1,500) โ‚ฝ)All models.

Method 3: Virtual Walls through Third-Party Devices (for Advanced)

If your vacuum cleaner doesnโ€™t support software walls, but you have other Xiaomi devices (like door opening sensors or smart sockets), you can create automation through the Mi Home Automation app.

Examples of Xiaomi Smart Door/Window Sensor:

  1. Install a sensor on the door of the room that needs to be protected.
  2. In the Mi Home app, create a script: IF the door sensor = "Closed" then send a command to the vacuum cleaner: "Return to base"
  3. Activate the script before cleaning.

Alternatively, use the Xiaomi Smart Plug to simulate a physical beacon:

  1. Connect to the socket any infrared transmitter (for example, from an old remote).
  2. Set up automation that turns on the transmitter when cleaning starts.
  3. The robot will perceive the IR signal as a physical wall.

โš ๏ธ Warning: Automation through third-party devices only works when you are connected to Xiaomi Mi Home Server (Chinese or European).If the server is not available, scripts will not work.

How to check the server region in Mi Home?
Open the app โ†’ go to profile โ†’ click on the gear icon โ†’ select Region. If China (Mainland) is listed, some features will require a VPN.

Frequent mistakes and how to fix them

Even when you set up the walls properly, they can be incorrect, and here are the most common problems and solutions.

  • ๐Ÿ”„ Wall disappears after reboot: Update vacuum cleaner firmware and Mi Home app. There was a bug in older versions with saving user zones.
  • ๐Ÿ“ก Robot ignores wall: Check Wi-Fi signal level at cleaning site (should be) โ‰ฅ -65 A weak signal disrupts navigation.
  • ๐Ÿ—บ๏ธ Wall moved on map: Recreate the room map (remove the current one in the vacuum cleaner settings and start a full cleaning).
  • โณ Delayed response to the wall: Increase the speed of rotation LDS-scanner in settings (if available).

If the problem persists, try resetting the vacuum cleaner settings to factory:

  1. Hold the Home button and power for 5 seconds.
  2. After the beep, release the buttons.
  3. Connect the vacuum cleaner to the application again.

On DreameBot models (e.g, D9 or L10s Ultra: Virtual walls may conflict with function "3D-Disable it in the settings if the walls are not working.

Comparison of virtual walls and physical beacons

Many users question whether it is better: software walls or physical limiters (for example, Xiaomi Mi Virtual Wall Barrier).

CriteriaVirtual wallsPhysical beacons
CostFree (embedded in software)From 1,500. โ‚ฝ hood
precisionDepends on the model (LDS more precisely gyroscope)100% reliability
FlexibilityYou can change the location of the applicationYou have to physically move it.
Dependence on Wi-FiYes (with a weak signal may not work)No.
CompatibilityNot all models.Works with all the robot vacuum cleaners.

The best solution is to combine both methods.

  • Use virtual walls for time constraints (e.g., sleep time).
  • Install physical beacons in critical areas (stairs, swimming pool).

Additional chips: schedule and multicards

Virtual walls are even more useful when integrated with other vacuuming functions, such as configuring different maps for different scenarios.

  • ๐Ÿ  Home map: walls around the nursery and bedroom.
  • ๐ŸŽ‰ Party: ban on cleaning the living room where the glasses are.
  • ๐Ÿ• Pets mode: blocking access to food bowls.

How to create a multi-map:

  1. In the Mi Home app, open the map and click Save as (or Save As).
  2. Give the name of the new card (e.g., "Party").
  3. Set up virtual walls for this scenario.
  4. Before cleaning, choose the desired card manually or through a schedule.

To automate, use a schedule with conditions.

IF TIME = 22:00 and Bedroom Motion Sensor = "Active"


Then start cleaning with the map "Night mode"

๐Ÿ’ก

Multicards are available only on models with LDS-scanner (e.g. Xiaomi) S7 Pro or DreameBot. Z10 This function is not available on budget vacuum cleaners.

FAQ: Answers to Frequent Questions

My Xiaomi Mi Robot Vacuum-Mop Essential vacuum cleaner doesn't support virtual walls.
Use the cleaning areas (see Method 2) or buy a Xiaomi Mi Virtual Wall Barrier physical beacon. Alternative firmware like Valetudo can also be tried, but this voids the warranty.
After the firmware update, the virtual walls are gone.
Update the Mi Home app to the latest version, then: Remove the current map in the vacuum cleaner settings. Start a full cleanup to create a new map. Reconfigure the walls. If it doesn't work, reset the vacuum cleaner settings (hold Home + Power for 10 seconds).
Can you use virtual walls without the internet?
Yes, but with the caveats: Map and walls are stored in the vacuum cleaner memory. To edit walls, you need access to an application (local network or Internet). If the power fails, the card can reset (depends on the model). For reliability, combine with physical beacons.
How to create a virtual wall on DreameBot D9?
On Dreame models, virtual walls are configured via the Dreamehome app (not Mi Home!): Open the map and click Edit. Choose Add No-Go Zone. Draw a wall and save. Important: On the D9, walls only work when you're actively connected to Wi-Fi.
Why does a robot cross a virtual wall in 1-2 weeks?
This is a typical problem with gyroscope models (e.g. Mi Robot Vacuum-Mop 2 Lite). Causes: gyroscope drift (navigation bias accumulates); room lighting changes (impacts optical sensors); furniture movement (impairs map binding); Solution: once a week, start calibrating the gyroscope (in the vacuum cleaner settings menu) or use physical beacons.