How to manage a vacuum cleaner Xiaomi without the Internet: local mode

Owners of modern smart devices often face a situation where the usual ecosystem stops working due to network problems. A robot vacuum cleaner can be a useless piece of plastic if the company's servers are unavailable or the router suddenly loses connection. However, engineers have provided the ability to work offline, which allows you to keep the house clean even in emergency conditions.

To understand the process, you need to distinguish between a lack of access to the global network and a complete loss of local connection. Local management involves using an internal Wi-Fi network when the device and smartphone are in the same perimeter, but there is no Internet access, in which case commands are transmitted directly, bypassing the cloud servers.

There is also a scenario where the technology is completely autonomous, relying only on physical buttons or pre-loaded maps. It is important to understand that without first setting up maps and scripts, control will be severely limited. Next, we will discuss specific algorithms for actions for different models and situations.

⚠️ Before disconnecting the router from the Internet, make sure that the room map is already built and stored in the device memory, otherwise the navigation may not work correctly.

Principles of operation of the local communication protocol

Xiaomi and sub-brands (Roborock, Dreame, Viomi) use a specific data exchange protocol. In normal mode, the smartphone sends a command to the manufacturer's server, which sends it to the device, and when external communication breaks, this path is blocked, and the direct connection takes effect.

The device is going to be in local demand mode, and it's critical that the phone and vacuum cleaner are in the same subnet. IP-The addresses must be the same in the first three digits (e.g, 192.168.1.x). If the router distributes the network, but the provider’s cable is pulled, the system will continue to function.

Many users mistakenly believe that the outside world is necessary to start cleaning, in fact, the local API allows you to run basic functions, but complex scenarios based on voice assistants or geolocation will stop working, because processing them requires external processing power.

  • πŸ“Ά Local Wi-Fi network must be active and stable.
  • πŸ“± The smartphone and robot must be connected to the same access point.
  • βš™οΈ The app should support offline mode (not all versions of Mi Home can do this).
  • πŸ”’ Router firewall should not block internal connections between devices.

It is worth noting that some models require periodic time synchronization to work properly, and if the Internet has been gone for a long time, the internal clock may get lost, which will lead to ignoring the timers of the cleaning.

Use of physical interface and buttons

The most reliable way to start cleaning without involving a smartphone is through mechanical control. Most Xiaomi Vacuum models have physical or touch buttons on the top, usually two or three, and they allow you to perform basic operations.

A short tap of the center button triggers a standard cleaning cycle throughout the area, and the device will begin to build a map or use a map already available, moving along the snake algorithm. Double tap often activates turbo mode or re-clean highly contaminated areas.

If you have a button on the housing that shows the house, it forces the robot to base, which is useful if the device is stuck or you want to interrupt the process. Prolonged retention (about 5-7 seconds) usually resets the Wi-Fi settings or turns on pairing mode.

β˜‘οΈ Physical control audit

Done: 0 / 4

Some advanced models allow you to switch cleaning modes with button combinations. For example, pressing Home and Spot simultaneously can trigger quiet mode. Learn the manual of your particular model, as the logic may differ from generation to generation.

Set up the Mi Home app to work offline

To manage via a smartphone without external internet, you need to configure the app correctly. The standard Mi Home mode is cloud-based, but there are ways to get around this limitation. The first thing to do is make sure you're using the right version of the app.

In your profile settings, find the section that displays your devices, and you can have the option "Show local devices" or something like that, and if the Internet suddenly disappears, the app can hang on the download screen for a long time, and then you can force the process to stop and start again.

If you use third-party clients or modified versions of software, make sure that the configuration file has a local gateway address. For standard users, it is important to simply not delete the app cache where the authorization tokens are stored.

⚠️ Note: In the absence of the Internet, the application may not update the status of the cleaning in real time, showing outdated data until the connection is restored.

Also worth checking is the power saving settings on the smartphone itself. Android or iOS can block the background activity of the application, considering the network is not available. Allow Mi Home full access to the local network in the operating system settings.

Local area network without access to WAN

If your router doesn't have access to the provider, but it gives you Wi-Fi, Xiaomi's hardware will work steadily. IP-addressing (DHCP Reservation. This ensures that IP-The address of the vacuum cleaner will not change after restarting.

Configure the router to assign the same address to the device. Go to the router interface (usually 192.168.0.1 or 1.1), find the section LAN or DHCP. Enter. MAC-vacuum cleaner address and desired IP. This will simplify further management through third-party utilities.

If you don't have a router at all, you can use your smartphone in hotspot mode. Name the network just like your home one, and set the same password. The vacuum cleaner automatically connects to the familiar network, and you can control it directly.

Technical details of DHCP
To reserve the address you will need MAC-You can find it on the sticker under the vacuum cover or in the appendix under General settings» -> «Device information. Enter the address in xx:xx:xx:xx:xx:xx:xx with strict regr of the letters.> This mobile hotspot method is a great temporary solution, and it allows you to start cleaning from any room, even if the main router is burned or disconnected from the electricity throughout the house, but you have a powerbank for the router or phone. For advanced users who own servers based on Home Assistant or OpenHab, managing without the Internet becomes a trivial task. Local protocol miio allows you to send commands directly using only the device token. A token is a unique access key that must be retrieved once when the Internet is available. Once you receive it, you need to write it into the integration configuration file, then all commands, such as vacuum.start or vacuum.return_to_base, This method offers the advantages of having no latency and complete independence from the manufacturer's servers, so you can create complex automations, such as running a cleaning operation when you open a window or using a motion sensor, using only the local network. Management method Required Conditions Functional Complexity Physical buttons Charged battery Start, Stop, Home Low Official application (LAN) Local Wi-Fi Full (depending on version) Average Home Assistant (miio) Server, Token Full + Automation High Voice Assistants Local Server (rarely) Limited High Use Home Assistant requires initial setup, but in the long run it is the most reliable way to do this. You get full control of the device and can even change the speed of the brush or suction power programmatically. Frequent connection problems Frequently users are faced with an error "Device is offline" or endless spinning of the load indicator. First of all, check whether your router has blocked the device. Some routers have a function "Protect Children" or "Guest Network" that isolates devices from each other. Make sure that (range) Wi-Fi matches. Most vacuum cleaners only work at 2.4 GHz. If your router only distributes the device to 5Ghts and only keeps the network on top of the phone, try to keep the 5 Ghts or to the network. Then reconnect the device to the local network without requiring it to access the global Internet at the initial setup (if the application allows). Offline functionality limitations Despite the wide possibilities, working without the Internet has its limits. First of all, this applies to voice control via Alexa, Google Assistant or Siri. These services require a constant connection to external servers to process voice commands. Also, push notifications become unavailable. You will not receive a message to your phone if the vacuum cleaner is stuck, or requires cleaning the container. You will have to control the process visually or periodically checking the application. Updating maps and waiting for the new web version of the firmware, you will also have to correct the new navigation. However, for daily cleaning, this is rarely a critical factor. ⚠️ Note: With prolonged work without the Internet, cleaning statistics may not be stored in the history of the application until the connection is restored. FAQ: Frequently Asked Questions: Can you start cleaning if the router is completely off? No, to work through the Wi-Fi application, the router must be turned on to create a local network. Without it, the smartphone and vacuum cleaner will not be able to "see" each other. But you can do the cleaning with physical buttons on the case. Does the cleaning schedule work without the Internet? Yes, if the time on the device is synchronized. Robot vacuum cleaners have an internal clock. However, if the device has been without power for a long time, time may be lost and cleaning on a schedule will not begin at the right time? No, the card is built locally by a vacuum cleaner processor based on the lidar or gyroscope data. The Internet is only required to upload this card to the cloud and display it in the application. If the card is already in memory, it will be used. How do I find out the token of a device without an Internet connection? It is impossible to recognize the token without an initial connection to the Internet, since it is generated when the device is linked to an account. The token must be stored in advance if you plan to use local management through Home Assistant.