How do you know? IP-Address of the robot vacuum cleaner Xiaomi: 5 working methods

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.

๐Ÿ“Š What kind of robot vacuum cleaner you have?
Xiaomi Mi Robot Vacuum
Roborock S5/S6
Roborock S7/S8
Another Xiaomi
Not Xiaomi.

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)

  1. Download Fing from the App Store or Google Play.
  2. Start the network scan (Scan button).
  3. In the results, find a device called roborock or miio.
  4. Click on it and IP, MAC and other information will be displayed.

Option 2: Nmap (Windows/Linux/macOS)

For scanning through the command line:

  1. Install nmap (for example, via brew install nmap on macOS or the official Windows site).
  2. 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?
Make sure: 1. The vacuum cleaner is on and connected to the same Wi-Fi network as the computer. 2. AP Isolation is turned off in the router settings. 3. You use the correct subnet (you can find it by ipconfig on Windows or ifconfig on Linux/macOS). 4. If the vacuum cleaner is connected through 5 GHz and the scan is on the 2.4 GHz network (or vice versa), there will be no results.

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 correct

For 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

MethodDifficultyTools requiredSuitable forLimitations
Mi Home appendixโญ (simple)Smartphone with Mi HomeAll Xiaomi/Roborock modelsIP may not be displayed in new firmware
Router web interfaceโญโญAccess to the router's adminAny devices on the networkRequires identification of the vacuum cleaner in the list
Scanning (Fing/nmap)โญโญโญFing or nmapAdvanced usersIt may not work when isolating customers.
Terminal (arp/ping)โญโญโญCommand lineLinux/macOS/WindowsIt does not work if the vacuum cleaner blocks the ping
Mi Home APIโญโญโญโญPython, device tokenDevelopers, Home AssistantRequires 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.

  1. Find it. MAC-vacuum cleaner address (via router or Mi Home).
  2. In the router settings, go to DHCP Reservation (or IP Binding).
  3. 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.

Can I find out the IP of a vacuum cleaner if it is not connected to Wi-Fi?
No. IP-The address is assigned to the device only after you connect to the network. If the vacuum cleaner is disconnected from Wi-Fi, first set up the connection via Mi Home, and then use one of the methods described below.
Why does the IP vacuum cleaner start at 169.254?
It's APIPA-Address: Automatic Private IP Addressing), which is assigned if the device is unable to receive IP from the router: ๐Ÿ”Œ Is the vacuum cleaner connected to the same network as the smartphone. ๐Ÿ“ถ Is the Wi-Fi signal level sufficient at the location of the vacuum cleaner. ๐Ÿ”„ Is it on the router? MAC-If the problem persists, restart the router and vacuum cleaner.
How to find out the IP vacuum cleaner Xiaomi through Home Assistant?
If the vacuum cleaner is already integrated into the Home Assistant, IP You can find: In the web interface go to Settings โ†’ Devices and services. Find a vacuum cleaner card and click on it. IP (if the connection is local. IP not displayed, check the integration configuration xiaomi_miio in the configuration.yaml file.
Can I connect to the vacuum cleaner over IP without Mi Home?
Yeah, but it requires a device token. IP and token you can send commands directly through: ๐Ÿ Python (Python-Miio Library), ๐Ÿ“„ HTTP-requests (e.g, http://[IP]/miIO/info), ๐Ÿ  Home Assistant or Node-RED. Example of a team to obtain status: curl "http://192.168.1.100/miIO/info" -H "Content-Type: application/json"
Why does the vacuum cleaner lose IP after restarting the router?
Chances are, you have dynamic DHCP enabled, and the router assigns new IPs to the devices each time you connect. Solution: Set up a static IP for the vacuum cleaner (see Frequent Problems section). Or reduce the time DHCP rents in the router settings (e.g., to 24 hours), which ensures that the IP doesn't change after the reboot.