Smart home owners often face a paradox: a smart home requires a stable connection to the global network, but it becomes a vulnerable link. Imagine that the router has lost communication with the provider, but the local network continues to function. At this point, most robot vacuum cleaners lose the ability to start cleaning from their smartphone because Xiaomi servers are not available. However, the architecture of the IoT ecosystem allows for local management, which is not known to many.
The problem is how the Mi Home app handles commands, and by default it sends a request to the manufacturer's cloud server, which in turn transmits a signal to the device. If the Internet is turned off, the chain breaks in the first step. However, there are ways to get around this limitation using local area network (LAN) protocols and special integration settings, which allows you to maintain control over cleanliness even in the absence of an external world.
In this article, we will discuss the technical aspects of local management, not the complex flashing techniques that can cause a gadget to break, but instead focus on legal and secure networking options that allow your smartphone to communicate directly with the vacuum cleaner, bypassing cloud gateways, which is useful for anyone who values the autonomy of their equipment.
Principles of MiOT protocol operation in local network
To understand the process, you need to delve deeper into the architecture of device interaction. Xiaomi smart gadgets use the MiOT protocol, which supports two data modes: cloud and local. In the standard scenario, the device constantly keeps a connection to the server, receiving commands from there. However, if you properly configure the router and application, commands can be transmitted directly over Wi-Fi within your home network.
The key element here is IP-Addressing: Every device connected to a router gets a unique localization. IP-If your smartphone is on the same network, it can theoretically send data packets directly to that address, and the problem with the standard Mi Home app is that it defaults to blocking direct communication if it can't verify your account status online.
โ ๏ธ Attention: Local control is only possible if the smartphone and vacuum cleaner are connected to the same Wi-Fi hotspot. Using the routerโs guest mode or different frequencies (2.4 GHz and 5 GHz with isolated clients) can break the connection.
There are several levels of implementation of this technology. The basic layer allows you to manually clean through the application interface if it has time to dodge before the network is lost. LAN-It's at this level that you have full control of the functionality of the device.
Necessary equipment and network preparation
Before you start setting up, make sure your infrastructure is compliant. This is primarily a router. Most current models support the necessary features, but older devices may not work properly with multiple IoT connections. You will need access to the router administrator panel to configure static IP-address.
The second important component is the vacuum cleaner itself. The Roborock, Viomi, and Dreame series (part of the Xiaomi ecosystem) have varying degrees of local protocol support. Some budget models may require constant ping to the server to keep the Wi-Fi module active. Check your model specification for local API support.
Also, prepare your smartphone with the Mi Home app installed. It is advisable to have a region-specific version of the app that matches your account, as server logic may differ. Advanced methods may require additional utilities to be installed, but basic configuration is possible with standard means.
โ๏ธ Preparing the network for local management
Set up a static IP for a robot vacuum cleaner
The foundation of stable operation without the Internet is to fix the address to the device, if the router gives the vacuum cleaner a new one. IP-The address after the reboot, all the scripts and direct links will stop working. DHCP-Reservation (Static Lease) in the router.
Log in to the router interface, usually available at 192.168.0.1 or 192.168.1.1.Look for the section associated with the router. LAN or DHCP In the list of connected clients, find your device by name (often containing a model, such as roborock.vacuum) or MAC-address that can be viewed on the sticker under the device.
Assign a specific address to it, such as 192.168.1.50.This ensures that regardless of the rental time, the vacuum cleaner will always be available along this route.
| Parameter | Recommended value | Description |
|---|---|---|
| IP Address | 192.168.1.x | Address in the subnet of your router |
| Subnet Mask | 255.255.255.0 | Subnet mask for local area network |
| Gateway | IP router | Default Gateway (usually 192.168.1.1) |
| DNS | Not required | For local work, DNS is not critical |
Once the static IP is set up, the communication between the phone and the vacuum cleaner will become predictable, which is especially important for automation when scenarios must run on a schedule or event without human intervention.
๐ก
Use addresses at the end of the DHCP range (e.g.,.200-.250) for static devices to avoid conflicts with dynamically connected guests.
Using LAN Mode in Third Party Integrations
The Mi Home app has limitations on how to operate without the Internet, and enthusiasts often use the Home Assistant platform or special plug-ins to manage it, and these systems can communicate directly with the vacuum cleaner via the miio protocol, ignoring the cloud.
If you use Home Assistant, Xiaomi Miio integration allows you to add a device to your home assistant. IP-The token is a unique encryption key that is required to authorize commands, and it can be obtained through developer tools or special scripts running on the local network.
Once you get the token and add the device to the system, you can control it locally, and you can create complex scenarios: start cleaning when you leave the house (by geolocating the phone on the local network), or stop the vacuum cleaner when you open the door.
miio -d 192.168.1.50 -t statusThis command, executed in the terminal, will show the status of the device directly, without going to Xiaomi servers, and if you see the answer with the charge and status of the brushes, then the local connection is successfully established.
โ ๏ธ Note: The device's token may change when you re-bind the vacuum cleaner to a new account or reset the Wi-Fi module.
Limitations of functionality without a global network
Despite the vast scope of local management, it is important to understand the limits of what is allowed, some functions are strictly tied to cloud services and will not work without Internet access, especially voice control through AliExpress or Google Assistant, since voice processing takes place on remote servers.
Real-time cleaning cards, unless cached locally, and cloud-synced cleaning history will also be unavailable. Updating the deviceโs firmware will also become impossible, as firmware files are stored on the manufacturerโs servers.
- ๐ซ Voice commands via external assistants are not working.
- ๐ซ Notifications about the completion of cleaning may not come (depending on the setting of push services).
- ๐ซ Remote control from another network (via the 4G/5G) It is impossible without a port or tunnel.
- โ Start, stop and return to base are stable.
- โ Choice of cleaning mode (quiet, turbo) available locally.
Understanding these constraints helps you set expectations correctly, and for basic operation, start and forget, local mode is more than enough, but for full control, it's better to have at least minimal network access.
What if the vacuum cleaner can not see the router without the Internet?
Alternative Methods: Offline Scripts and Automation
Another approach is to use offline scripts if your router supports Smart Link or similar. Some advanced routers (Keenetic, Mikrotik) allow you to run scripts inside yourself. You can set up a rule: If it's 10:00, send it to the Internet. UDP-packet IP vacuumerยป.
This method requires a deep knowledge of network administration, but provides maximum independence, the robot will be removed even if the providerโs cable burns down or Xiaomi has a global failure, the main thing is that the local network and electricity work.
Also worth considering is the use of physical buttons. Most models have an on/pause button. Combinations (long press) can run certain modes. This is the most primitive, but most reliable, offline method.
๐ก
Full autonomy of a smart home is achieved not by the lack of Internet, but by properly configuring the local network and redundancy of control servers inside the house.