Xiaomi’s smart outlets have become an integral part of today’s smart home systems, offering users remote appliance management, power monitoring, and integration with other devices in the ecosystem. But how exactly does this compact Wi-Fi box work? Unlike conventional outlets, Xiaomi’s smart models (such as the Mi Smart Plug or Aqara Smart Plug) feature a microprocessor, wireless communication module, and sensors that turn them into full-fledged IoT devices.
In this article, we’ll look at what happens inside a smart outlet after you connect to the network, how it interacts with the Mi Home or Aqara Home app, and why it can be used beyond just remotely turning on the kettle. You’ll learn about communication protocols, power limitations, compatibility with voice assistants (Alice, Google Assistant, Siri) and even how the outlet can help save energy. And if you’re just planning to buy, at the end of the article, there’s a comparison of popular models with their key characteristics.
Xiaomi Smart Socket Device: What's Inside?
From the outside, Xiaomi’s smart outlet looks like a regular adapter with one or two. USB-It's a lot more complicated than the port, depending on the model:
- 🔌 A relay is an electromechanical or solid-state switch that physically opens/closes a circuit on command, and it emits the characteristic click when you turn on/off.
- 📶 Wi-Fi module (usually based on a chip) ESP8266 or Realtek RTL8195) — Provides communication with the router and cloud Xiaomi.
- 🔋 Current/voltage sensor – measures power consumption (in models with energy monitoring, for example, Mi Smart Plug 2).
- 🧠 Microcontroller – manages the logic of work, processes commands from the application and sends data to the cloud.
It is important to understand that the outlet does not just “pass” the current, but actively controls its supply. For example, if you set a power limit in the application (say, 1000 watts), if you exceed this value, the outlet will automatically turn off, this protects against network congestion. By the way, the maximum load for most Xiaomi models is 2200-2500 watts (10-11 A), which is enough for a kettle or heater, but not enough for high-power electric stoves.
What happens if you connect a device that is too powerful?
Interesting fact: some models (for example, Aqara Smart Plug) T1) They support Zigbee instead of Wi-Fi, which means they don’t connect directly to the router, but via a hub (like Aqara Hub), which increases connectivity stability and reduces the load on the home network.
Communication protocols: how the socket communicates with the phone and the cloud
Xiaomi’s smart outlet uses a combination of local and cloud protocols to manage.
- Wi-Fi (802.11 b/g/n) — The socket connects to your router on a frequency 2.4 GHz (5 GHz is not supported!.This is the main channel for sending commands from the Mi Home app.
- MQTT — It's a lightweight messaging protocol that connects the outlet to the Xiaomi cloud, and it allows you to control your device from anywhere in the world.
- Bluetooth (in some models) – is needed for initial configuration (account binding) and backup management if Wi-Fi is temporarily unavailable.
When you click the “Enable” button in the app, the following happens:
- The command is sent from your phone to the Xiaomi cloud via a secure channel.
- The cloud sends a command to the outlet via the Internet (if you are away from home) or locally (if the phone and outlet are on the same network).
- The socket receives a signal, activates the relay and confirms the execution of the command.
The delay between pressing the button and activating the socket is usually 0.5-2 seconds, but can increase with unstable Internet.
- 🌐 Wi-Fi connection (the indicator on the socket should flash green or burn constantly).
- 📱 Mi Home app updates (older versions may not support new protocols).
- 🔌 Power supply on the network (sometimes the problem lies in the usual blackout of lights).
Connection and configuration: step-by-step instructions
To make it work, you need to link it to your Xiaomi account and set it up in the app. Here's a universal guide for most models:
Download the Mi Home app (App) Store/Google Play)
Create a Xiaomi account (or sign in to an existing one)
Connect the socket to the network 220V (It should blink orange)
Make sure your phone is connected to 2.4GHz Wi-Fi-->
Follow the steps:
- Open Mi Home, press «+» → «Add the device» → Choose the category "Rosette».
- Press and hold the button on the socket (3-5 seconds) until the indicator flashes blue quickly.
- Enter your Wi-Fi password (2.4GHz only!) and wait for the connection.
- Name a socket (such as “Kitchen teapot”) and select a room in the app.
If the socket does not connect:
- 🔄 Restart the router – sometimes DHCP-server forgets to issue IP-addresses to new devices.
- 📵 Check if antivirus or firewall blocks Xiaomi cloud connection (mil.com and iot.mi.com domains should be on the whitelist).
- 🔌 Try another power source – your network may have too low voltage.
💡
If the socket connects, but constantly falls off, try to fix it with a static IP-address in the router settings, which will prevent conflicts DHCP.
After setting up, it is recommended to update the firmware of the socket (if an update is available). → Settings → Update: Newer versions often fix connection bugs and add support for new features, such as timetables.
Socket control: from manual switching to automation
Xiaomi’s smart outlet supports several control methods, and they can be combined for maximum convenience:
| Management method | How it works | Example of use |
|---|---|---|
| Hand button | The physical button on the socket case works even without the internet. | Turn on the lights if the phone is dead. |
| Mi Home appendix | Remote control via smartphone from anywhere in the world. | Turn off the forgotten iron at work. |
| Voice assistants | Integration with Alice, Google Assistant or Siri via the cloud. | "Alice, turn on the heater socket." |
| Schedule | Automatic on/off time. | Turn on watering plants every day at 8:00. |
| Automation scenarios | Reaction to events from other devices (sensors, cameras, etc.) | Turn on the lamp when the motion sensor detects the person. |
The easiest way to automate is by scheduling, for example, you can set the socket so that it turns on the coffee maker on weekdays at 7:00 and turns off after 30 minutes.
- Open the device in Mi Home → «Automation» → «Schedule».
- Specify the time, days of the week and action (on/off).
- Keep the rule.
A more advanced scenario is that the socket can include an air humidifier, where the Aqara sensor detects low humidity.
- Go to Profile → Automation → Create a script.
- Select a condition (e.g., “Humidity” < 40%) and action ("Switch on the socket»).
- Link the script to the room where the devices are located.
💡
Scenarios only work if all devices (outlet, sensors) are connected to the same Xiaomi account and are on the same network.
Energy monitoring: how the socket helps to save electricity
Power-monitoring models (e.g. Mi Smart Plug 2 or Aqara Smart Plug) T1) They track electricity consumption in real time:
- 💡 Identify “gluttonous” appliances (for example, an old refrigerator can consume 2 times the norm).
- 📊 Calculate the load and optimize the tariff (for example, turn on the washing machine at night when electricity is cheaper).
- ⚡ Prevent network congestion (the socket will shut down if the power exceeds the specified limit).
To look at the statistics:
- Open the socket at Mi Home → Electricity tab».
- Choose a period (day, week, month).
- Check the consumption schedules and the cost (if the tariff is specified).
An important nuance: Xiaomi outlets measure power with an error of up to 5-10%. For accurate measurements (for example, for utility bills), it is better to use certified meters. However, for household monitoring, this is enough – for example, to understand that your gaming PC consumes 500 watts per hour, not 300, as you thought.
Example of savings: if you find that the TV in standby mode “eats” 10 W/h (≈ 87 kWh per year, you can set the socket to completely turn off power at night, this will save up to 200-300 rubles per year (at a tariff of 5 rubles / kWh).
💡
For maximum savings, combine the socket with a light sensor: for example, turn off outdoor lighting during the day automatically.
Compatibility with other devices and ecosystems
Xiaomi’s smart outlets integrate well not only with each other, but also with devices from other brands.
- 🏠 Xiaomi Ecosystem: Works with Aqara sensors, Mi Home Security cameras, Yeelight lamps, etc. through the Mi Home app.
- 🗣️ Voice assistants: support Alice (Yandex), Google Assistant and Siri (via HomeKit, but requires a hub Aqara Hub) M2).
- 🌐 Third-party platforms: You can connect to Home Assistant, OpenHAB or IOBroker via plugins (e.g. Mi Home Integration).
- ⚡ IFTTT: Create applets to interact with other services (for example, “If the socket is turned on, send a notification to Telegram»).
To connect to Home Assistant, you will need:
- Install the Xiaomi Miio component via HACS or manually.
- Get token devices (e.g., through the Mi Home Token Extractor app).
- Add the socket to configuration.yaml:
switch:
- platform: xiaomi_miio
name: "Xiaomi Smart Plug"
host: 192.168.1.100
token: YOUR_TOKEN_HEREIf you use Google Assistant, link your Xiaomi account to the Assistant settings (Devices) → Add the device → Xiaomi. Then you can control the socket with your voice:
- “Okay, Google, turn on the socket in the living room.”
- "Alice, turn off the heater in 1 hour."
How to connect the socket to Apple HomeKit?
Safety and typical problems
Like any IoT device, Xiaomi’s smart outlet requires attention to security.
⚠️ Warning: Never connect inductive load devices (such as refrigerators or air conditioners) to a smart socket!
Other important warnings:
- 🔌 Do not use the socket in damp rooms (bathroom, balcony) without protection from moisture (class) IP20 — dry-room only).
- 🔄 Regularly update firmware – old versions may have vulnerabilities (e.g, CVE-2020-14179 It allowed you to remotely control the device).
- 🔒 Set up two-factor authentication in your Xiaomi account so that attackers don’t gain access to your devices.
Typical problems and their solutions:
| Problem. | Possible cause | Decision |
|---|---|---|
| The socket does not connect to Wi-Fi | Wrong password or 5 GHz frequency | Check the router settings, reset the socket (hold the 10 sec button) |
| App doesn't see socket | Device in another region of the Mi Home server | Change the region to “China” or “Russia” in your profile settings |
| The plug is spontaneously shut down. | Excess capacity or overheating | Check the load in the application, provide ventilation |
| The energy monitoring is not working. | Outdated firmware or sensor failure | Update the software, reset the settings (5 clicks of the button) |
⚠️ Warning: If the outlet starts to warm or smell plastic, disconnect it immediately.
To reset the socket to the factory settings, press and hold the button for 10-15 seconds until the indicator flashes yellow quickly, and then you can reconfigure it.
Comparison of popular models of smart outlets Xiaomi
Xiaomi and its Aqara sub-brand have several different power socket models. Here's a comparison table:
| Model | Protocol | Energy monitoring | Max. Power. | USB-port | Price (2026) |
|---|---|---|---|---|---|
| Mi Smart Plug (ZNCZ04LM) | Wi-Fi | No. | 2500 watts | 1× USB (5V/2A) | ~1 200 ₽ |
| Mi Smart Plug 2 (ZNCZ12LM) | Wi-Fi | Yes. | 2200 watts | 1× USB (5V/2A) | ~1 500 ₽ |
| Aqara Smart Plug (SP-EUC01) | Zigbee | Yes. | 2500 watts | No. | ~1 800 ₽ |
| Aqara Smart Plug T1 | Zigbee | Yeah, yeah. | 2500 watts | No. | ~2 200 ₽ |
Which model should I choose?
- 💰 Budget option: Mi Smart Plug (without power monitoring, but with a USB-port).
- 📊 For energy monitoring: Mi Smart Plug 2 or Aqara SP-EUC01 (The second requires a hub, but it works more stable).
- 🏡 For full automation: Aqara Smart Plug T1 + Aqara Hub (HomeKit and local scripting support).
If you need a street outlet (for example, for a New Year's garland), pay attention to models with protection. IP44 Xiaomi Mi Outdoor Smart Plug (but it is not officially shipped to Russia).