Xiaomiโs robot vacuum cleaners have long been an integral part of smart homes, but their setup sometimes raises questions.One of the key parameters that may be needed to integrate with Home Assistant, set up local management or diagnose network problems is to make sure that youโre not using the same. IP-Without it, you can't connect directly to the vacuum cleaner without passing the Mi Home cloud, or configure automation through third-party services.
In this article, we will discuss all the current methods of definition. IP-Addresses for Xiaomi Mi Robot Vacuum, Roborock models (including series) S5/S6/S7/S8) From simple in-app browsing to advanced methods via router or Terminal, choose the right option depending on your skills and equipment. And if you are faced with connection problems, at the end of the article you will find answers to frequent questions and solutions to common errors.
1. Method: via the Mi Home app (the simplest)
If your vacuum cleaner is already connected to the Mi Home app (or Roborock App for new models), recognize it. IP-You can literally click 3 clicks, and this method is technically non-technical and works on all Android and iOS devices.
Open the app and go to the home page of the device.
- ๐ฑ Press three points (โฎ) top-right corner of the vacuum cleaner card.
- ๐ง Select Settings (or Device Settings in English version).
- ๐ Scroll down to General and find Local Network or Wi-Fi Info).
- ๐ This will show the current IP-address (e.g. 192.168.1.105).
โ ๏ธ Note: If the line with IP If you don't have one, check if the vacuum cleaner is connected to the same Wi-Fi network as your smartphone. S7 MaxV) may hide this information for security purposes โ in this case, use alternative methods from the following sections.
2. Method: via the router's web interface
If the application does not show IP or you prefer to work through a router, this method is perfect. You will need access to the routerโs admin panel โ usually at 192.168.0.1 or 192.168.1.1 (check on the device sticker).
Instructions for popular routers:
- ๐ TP-Link: Go to the DHCP โ List of clients (DHCP Client List).
- ๐ก ASUS: Open the Network Map (Network Map) โ tab Clients.
- ๐ Keenetic: Devices section in the main menu.
- ๐ Xiaomi Mi Router: Connected Devices in a mobile app or web interface.
In the list of devices, find a vacuum cleaner - it can be displayed as:
- ๐ค Roborock.vacuum.* For Roborock models),
- ๐ miio:* (universal designation for Xiaomi devices),
- ๐ or MAC-address (if you know it in advance).
๐ก Hint: If there are many devices on the list, temporarily disconnect the vacuum cleaner from the socket and update the page - disappeared IP And it'll be the right address.
๐ก
Save it. MAC-address of the vacuum cleaner in the notes - it will be useful for binding static IP in router settings (recommended for automation).
Method: by scanning the network (for advanced)
If previous methods didnโt work, you can scan the local network manually, and this is true for users who are setting up Home Assistant, Node-RED or other smart home systems. Weโll look at two tools: Fing (for smartphones) and nmap (for PCs).
Option 1: Fing application (Android/iOS)
- Download Fing from the App Store or Google Play.
- Start the network scan (Scan button).
- In the results, find a device called roborock or miio.
- Click on it and IP, MAC and other information will be displayed.
Option 2: Nmap (Windows/Linux/macOS)
For scanning through the command line:
- Install nmap (for example, via brew install nmap on macOS or the official Windows site).
- Execute the command (replace 192.168.1.0/24 with your subnet):
nmap -sn 192.168.1.0/24 | grep -i "roborock\|miio"The results will be a line with IP-vacuum-dress.
What if Nmap doesnโt find the device?
4. Method: through the terminal (for Linux/macOS)
Linux or macOS users can learn the vacuum cleaner's IP using built-in network utilities, a method that requires no additional software installation and works quickly.
Open the Terminal and execute the command:
arp -a | grep -i "roborock\|miio"If the result is blank, first ping your networkโs broadcast address (e.g. 192.168.1.255) and then repeat the command:
ping -b 192.168.1.255 -c 3 && arp -a | grep -i "roborock"๐น For Windows: A similar result is given by the team:
arp -a | findstr "roborock miio"โ ๏ธ Note: Some models of vacuum cleaners (for example, Roborock) S7+) They can block ping responses by default, in which case use the scan via nmap (section 3) or check the settings of the router's firewall.
5. Method: via Mi Home protocol (for developers)
If you're working with API Xiaomi or Set Up Integration Through Python/Home Assistant, IP-This will require a device token (how to get it โ read our separate article).
Example of Python query using the Python-miio library:
from miio import Vacuum
ip = "192.168.1.100" # Try to substitute a probable IP
token = "YOUR_DEVICE_TOKEN" # Replace with your token
vacuum = Vacuum(ip, token)
print(vacuum.info()) # If the connection is successful, IP is correctFor automated IP search in the local network, you can use the script:
from miio import Device
import asyncio
async def find_vacuum():
token = "YOUR_TOKEN"
for ip in [f"192.168.1.{i}" for i in range(1, 255)]:
try:
device = Device(ip, token)
info = await device.info()
if "roborock" in str(info).lower():
print(f"Found vacuum at IP: {ip}")
break
except:
continue
asyncio.run(find_vacuum())๐ Note: This method requires knowledge of Python and installed libraries (pip install python-miio.
Install Python 3.8+
Install a python-miio library (pip install python-miio)
Get a device token (via Mi Home or MITM-proxy)
Make sure that the vacuum cleaner and computer are on the same network
-->
Table: Comparison of methods for determining IP
| Method | Difficulty | Tools required | Suitable for | Limitations |
|---|---|---|---|---|
| Mi Home appendix | โญ (simple) | Smartphone with Mi Home | All Xiaomi/Roborock models | IP may not be displayed in new firmware |
| Router web interface | โญโญ | Access to the router's admin | Any devices on the network | Requires identification of the vacuum cleaner in the list |
| Scanning (Fing/nmap) | โญโญโญ | Fing or nmap | Advanced users | It may not work when isolating customers. |
| Terminal (arp/ping) | โญโญโญ | Command line | Linux/macOS/Windows | It does not work if the vacuum cleaner blocks the ping |
| Mi Home API | โญโญโญโญ | Python, device token | Developers, Home Assistant | Requires technical skills |
Frequent problems and solutions
Even with the detailed instructions, users sometimes encounter difficulties, and we have collected typical errors and ways to fix them:
โ ๏ธ Note: If the vacuum cleaner is not displayed in the routerโs device list, check if the power saving mode is enabled (for example, in the Mi Home settings). โ Energy saving: In this mode, the device can switch off from Wi-Fi to save battery life.
Problem 1: IP-The address is constantly changing (dynamic). DHCP).
Solution: Set up a static IP for the vacuum cleaner in the router's admin.
- Find it. MAC-vacuum cleaner address (via router or Mi Home).
- In the router settings, go to DHCP Reservation (or IP Binding).
- Add a rule by tying it. MAC-address IP (for example 192.168.1.200).
Problem 2: The vacuum cleaner is connected to the network, but does not respond to ping.
Solution: New Roborock firmware may disable response to ICMP-- You can try it:
- ๐ Reconnect the vacuum cleaner to Wi-Fi (forget the network and connect again).
- ๐ฑ Update the firmware through Mi Home.
- ๐ ๏ธ Enable Developer Mode in vacuum cleaner settings (if available).
Problem 3: There are many devices called miios on the router list.
Solution: Turn the vacuum cleaner off the socket for 10 seconds and update the customer list. The missing and reappearing IP is your device.
๐ก
If the vacuum cleaner is not connected to Wi-Fi, reset it: press the Reset button for 5-10 seconds before the beep. After reset, set up the connection again via Mi Home.