How to Manage Xiaomi Smart Home Over the Internet: A Complete Guide to 2026

Why do you need remote access to a smart home?

Xiaomi's smart home turns a normal apartment into a smart space, but its real power is only revealed when you can control it from anywhere in the world. Imagine if you drive from work and turn on the heater 30 minutes before you arrive, or forget to turn off the iron β€” fix it with a pair of taps in your smartphone. Without remote access, these scenarios remain a fantasy.

In 2026, Xiaomi offers several ways to remotely control: through the official Mi Home app, third-party services like Google Home or Apple HomeKit (with limitations), as well as advanced solutions for enthusiasts based on Home Assistant. However, each method has nuances, from the requirements for the router to the peculiarities of configuring two-factor authentication. In this article, we will analyze all the current methods, their pros/cons and typical errors that block access.

Important: since 2023, Xiaomi has tightened its security policy – now for remote management, it is necessary to link an account to a phone number and enable two-step authentication, without which, even if you configure the router correctly, devices will only be available on the local network.

Method 1: Manage via Mi Home (official method)

The basic and most reliable way is to use the branded Mi Home app (renamed Xiaomi Home in some regions), which supports all devices of the Aqara ecosystem, Yeelight, Mi Robot Vacuum and others, but for remote access you need to meet 5 key conditions:

  • πŸ“± Install the latest version of Mi Home (not below) 6.5.400 for Android/iOS).
  • 🌐 Connect devices to your Xiaomi account (not to your local profile!).
  • πŸ”’ Enable two-factor authentication in account settings.
  • πŸ“‘ Set up a router: open ports 80/443 and allow outbound connections for *.mi.com domains.
  • πŸ”„ Update the device firmware to the current version (in Mi Home checked in the Device section) β†’ Settings β†’ Update of the PO).

If after linking devices to the account they do not appear outside the home network, perform a nutsychronization:

  1. Open Mi Home and go to Profile β†’ Settings β†’ Smart Home.
  2. Choose your home and tap Sync devices.
  3. Wait 1-2 minutes – devices should appear on the list.

The latest version of Mi Home is installed|Xiaomi account tied to phone number|Two-factor authentication enabled|Router does not block ports 80/443|Devices connected to the network 2.4 GHz 5 GHz)-->

It is worth noting that some devices (for example, Xiaomi Mi Air Purifier 4 or Aqara Camera Hub) G3) They need to configure their own cloud connection in their own menus, and they'll have a separate Cloud Management option in Mi Home, which you'll need to manually activate.

Mi Home (official appendix)|Google Assistant/Alexa|Home Assistant or analogues|Local scenarios (without the Internet)|Another option-->

Method 2: Integration with Google Assistant and Apple HomeKit

For Android or iOS device owners, a bundle of Xiaomi voice assistants is a convenient solution, allowing you to manage your smart home via OK, Google or Hello, Siri, and create complex scenarios with devices from other brands.

PlatformSupported devicesLimitationsRequired settings
Google AssistantDevices with the Works with Google Assistant logo (e.g. Yeelight, Mi Robot Vacuum)Does not work with some Aqara sensors (e.g. leak sensors)Link Xiaomi account to Google Home via Add β†’ The device β†’ Works with Google
Apple HomeKitOnly HomeKit-enabled devices (e.g. Aqara Hub) M2)Aqara Home (Separate App) is required, not all Xiaomi devices are compatibleScan. QR-Device code for Apple Home or Aqara Home
Alice (Yandex)Limited list (e.g. Yeelight, Mi Robot Vacuum-Mop 2)No script support, only basic commandsLink Xiaomi account in Alice settings

To connect to Google Assistant:

  1. Open the Google Home app.
  2. Tap. + β†’ Set up the device β†’ Works with Google.
  3. In the list, find Xiaomi and log in.
  4. Select the devices for synchronization (you can choose all or only the necessary ones).

πŸ’‘

If the device doesn’t show up in Google Home, check its compatibility on Google Home Compatibility.Some models (such as Xiaomi Mi Smart Socket) require manual addition via Mi Home followed by synchronization.

With Apple HomeKit, the situation is more complicated: Xiaomi does not officially support this platform, but some Aqara devices (a subsidiary of the brand) are certified.

  1. Install the Aqara Home app.
  2. Add the device through it (not through Mi Home!).
  3. At Apple Home, click + β†’ Add an accessory and scan. QR-device-code.

Method 3: Advanced management through Home Assistant

For enthusiasts who want flexible scenarios and independence from the Xiaomi cloud, Home Assistant, an open platform for smart homes, is the ideal solution.

  • πŸ”„ Manage devices without depending on Xiaomi servers (locally).
  • πŸ“Š Create complex automations with time, sensors, weather triggers.
  • πŸ”’ Avoid data breaches (all data is stored at home, not in the cloud).
  • 🌐 Integrating devices from different brands into a single system.

To connect Xiaomi devices to Home Assistant, you will need:

  1. Install Home Assistant on a Raspberry Pi, NAS, or virtual machine.
  2. Add Xiaomi Miio integration through the Settings menu β†’ Devices and services β†’ Add integration.
  3. Enter. IP-address and token of the device (how to get the token – see below).
How to get a Xiaomi device token?
1. Install the Mi Home app on Android. 2. Download the Packet Capture utility from Google Play. 3. Run traffic capture, log in to Mi Home and find the line in the logs with "token": "..." 4. Copy the value of the token (64 characters) - this is your key for Home Assistant. ⚠️ Don't give the token to third parties! It gives you full access to the device.

Example configuration for configuration.yaml:

miio:


devices:




- host: 192.168.1.100 # IP of your device




token: YOUR_TOKEN_HERE




model: zhimi.airpurifier.mb4 # Model (e.g. for Mi Air Purifier 4)

Once set up, the devices will appear in the Home Assistant interface, and you can manage them via a web interface or mobile app. For remote access, configure Nabu Casa Cloud (paid) or organize them. VPN/port-over to your server.

πŸ’‘

Home Assistant is the only way to manage Xiaomi’s smart home without depending on the company’s cloud, but it requires technical skills and separate hardware (such as the Raspberry Pi).

Problem Solving: Why are devices not available remotely?

If Xiaomi devices are not responding outside the home network after setting up, check the following points:

⚠️ Note: If the device is marked as β€œOffline” on the Mi Home, but it works on the local network, the problem is the cloud connection, most often this is due to the blocking of traffic by the router or irrelevant firmware.

  • πŸ“΅ Router issues: Make sure that Parental Control, Firewall, or other devices are not enabled MAC-Filtering for Xiaomi devices. also check that they are connected to a 2.4 GHz network (many devices do not run at 5 GHz).
  • πŸ”„ Outdated firmware: In Mi Home, go to your device settings and check for updates. e.g. Xiaomi Gateway 3 firmwareless 1.5.6_0046 Does not support cloud management.
  • 🌍 Regional restrictions: If you bought the device in China, it can be linked to mi.com.cn servers.Regional reset and reassignment to account.xiaomi.com.
  • πŸ”‘ Account problems: Make sure your Xiaomi account is not blocked (check email for support emails) and that two-factor authentication is enabled.

If the device never appears, try a forced reset:

  1. Hold the reset button on the device for 5-10 seconds (for Xiaomi Gateway – the button on the back).
  2. Connect it again via Mi Home by selecting the region of Russia (or your country).
  3. After adding, check the status in the Profile β†’ Smart home. β†’ [Your home] β†’ Devices.

To diagnose network problems, use the ping command:

ping 192.168.x.x # Replace your device with IP


ping api.io.mi.com #Contact check with Xiaomi servers

Security: How to protect a smart home from hacking?

Remote management is not only a convenience, it's also a potential risk. In 2023, researchers discovered vulnerabilities in the Miio protocol that allow attackers to gain control of devices, to minimize the risks:

  • πŸ” Use complex passwords: For a Xiaomi account, set a password at least 12 characters long with letters, numbers, and special characters. Avoid reusing passwords.
  • πŸ›‘οΈ Enable two-factor authentication: In Mi Home, go to Profile β†’ Account settings β†’ Security and activate confirmation by SMS/email.
  • 🌐 Update the router firmware: Outdated routers (e.g. TP-Link) WR841N) Vulnerable to DNS-spoofing attacks that can redirect Xiaomi traffic to phishing servers.
  • πŸ”— Limit access to the local network: In router settings, create a separate network for smart home devices with limited access to other devices (Guest Network option or other devices). VLAN).

⚠️ Warning: Never share device tokens (64-character strings) or login data to Xiaomi account.Attackers can use them to control your devices, including cameras and locks.If the token has been compromised, reset the device and get a new one.

For additional protection, consider:

  • πŸ”„ Local Management: Use Home Assistant or Node-RED to create scenarios without Xiaomi’s cloud.
  • πŸ“‘ VPN Remote Access: Set up WireGuard or OpenVPN on your router to connect to your home network securely.
  • πŸ“Š Traffic monitoring: Install firmware OpenWRT on the router or DD-WRT Analyze suspicious connections to Xiaomi devices.

If you suspect a hack (e.g., devices turn on themselves), immediately:

  1. Change the password from your Xiaomi account.
  2. Untie all the devices in Mi Home and add them again.
  3. Check the router for unknown devices on the network.

Alternative methods: Telegram-bots and IFTTT

If standard methods don't work, you can use third-party services for remote management, and let's look at two popular options:

1. Control via Telegram bot

With the help of service. IFTTT Or a self-written Python bot, you can send commands to Xiaomi devices via messenger:

  1. Create a bot in @BotFather And get an API token.
  2. Set up webhooks to interact with Mi Home API (You will need programming knowledge).
  3. Add the bot to the IFTTT trigger-drive.

Example of a command to turn on the Yeelight lamp:

https://api.telegram.org/botYOUR_BOT_TOKEN/sendMessage?chat_id=YOUR_CHAT_ID&text=Enable the lamp

Automation through IFTTT

IFTTT (If This Then That allows you to link Xiaomi devices to other services:

  • πŸ“… Automatically turn on the robot vacuum cleaner on schedule.
  • 🌑️ Receive notifications when the Aqara leak sensor is triggered.
  • πŸ”¦ Turn on the light when detecting movement with the Xiaomi camera.

To set up:

  1. Register for IFTTT.
  2. Connect Xiaomi Mi Home to My Services.
  3. Create an Applet with a trigger (e.g., β€œIf the temperature is above 30”)Β°C) and by action (e.g. β€œSwitch on air conditioning").

πŸ’‘

V IFTTT Not all Xiaomi devices are available. Check compatibility on the service page before buying. For example, Xiaomi Mi Smart Socket is supported, and Aqara Cube is not.

FAQ: Frequent questions about Xiaomi smart home management

Can you run a Xiaomi smart home without the internet?
Yes, but with limitations. On the local network (via Wi-Fi), devices will work, but: Voice assistants (Google Assistant, Alice) will not be able to control devices; cloud scenarios (for example, geolocation) will stop working; Sensor alerts will not come; to work fully without the Internet, you will need a local server (Home Assistant or OpenHAB).
Why did the devices stop working remotely after the router change?
It's about the change. IP-Device addresses on the local network. Solution: Reserve on the new router IP-Addresses for Xiaomi devices (via DHCP Reservation. In Mi Home, remove and add devices again. Make sure the new router doesn't block outbound connections to ports. 80/443.
How to manage Xiaomi smart home from a computer?
There are several ways: Use the web version of Mi Home (limited functionality); Install Android emulator (BlueStacks) and run Mi Home in it; configure Home Assistant and manage through its web interface. For Windows, there is also unofficial Mi Home software. PC Client, but not supported by Xiaomi and may contain vulnerabilities.
Can you connect a Xiaomi camera to a smart home for remote viewing?
Xiaomi cameras (e.g. Mi Home Security Camera 360)°) Support cloud viewing via Mi Home. Local viewing without the cloud requires Home Assistant or iSpy. Aqara cameras (such as Camera Hub) G3) You can stream videos on Apple HomeKit. ⚠️ Note: Remote viewing via the Xiaomi cloud may be blocked in some countries due to legal restrictions (e.g. in the EU). GDPR).
What if Mi Home says "No connection to the server"?
The error arises from problems with the cloud Xiaomi. Check: Server availability on status.mi.com. Time settings on the phone (must be current time and date). VPN Update the Mi Home app to the latest version. If the problem persists, try: Delete and reinstall Mi Home. Sign in through another Xiaomi account (possibly your account is blocked).