How Xiaomi Smart Socket Works: Device, Setup and Opportunities

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?
If you exceed the maximum load (for example, connect the stove to 3 kW to the socket with a limit of 2.2 kW), the thermal protection will work: the relay will turn off, and the application will appear a notification of overload.

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.

  1. 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.
  2. 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.
  3. 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:

  1. The command is sent from your phone to the Xiaomi cloud via a secure channel.
  2. 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).
  3. 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).
📊 How you manage Xiaomi’s smart socket?
Through the Mi Home app
Voice (Alice/Google)
Through Automation Scenarios
Hand button on the body

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:

  1. Open Mi Home, press «+» → «Add the device» → Choose the category "Rosette».
  2. Press and hold the button on the socket (3-5 seconds) until the indicator flashes blue quickly.
  3. Enter your Wi-Fi password (2.4GHz only!) and wait for the connection.
  4. 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 methodHow it worksExample of use
Hand buttonThe physical button on the socket case works even without the internet.Turn on the lights if the phone is dead.
Mi Home appendixRemote control via smartphone from anywhere in the world.Turn off the forgotten iron at work.
Voice assistantsIntegration with Alice, Google Assistant or Siri via the cloud."Alice, turn on the heater socket."
ScheduleAutomatic on/off time.Turn on watering plants every day at 8:00.
Automation scenariosReaction 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.

  1. Open the device in Mi Home → «Automation» → «Schedule».
  2. Specify the time, days of the week and action (on/off).
  3. Keep the rule.

A more advanced scenario is that the socket can include an air humidifier, where the Aqara sensor detects low humidity.

  1. Go to Profile → Automation → Create a script.
  2. Select a condition (e.g., “Humidity” < 40%) and action ("Switch on the socket»).
  3. 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:

  1. Open the socket at Mi Home → Electricity tab».
  2. Choose a period (day, week, month).
  3. 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:

  1. Install the Xiaomi Miio component via HACS or manually.
  2. Get token devices (e.g., through the Mi Home Token Extractor app).
  3. Add the socket to configuration.yaml:
switch:


- platform: xiaomi_miio




name: "Xiaomi Smart Plug"




host: 192.168.1.100




token: YOUR_TOKEN_HERE

If 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?
Officially, Xiaomi outlets do not support HomeKit, but you can use a workaround: 1. M2 (It is compatible with HomeKit. 2. Connect the outlet to the hub via the Aqara Home app. 3. Add the hub to Apple Home - the outlet will appear in the list of devices.

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 causeDecision
The socket does not connect to Wi-FiWrong password or 5 GHz frequencyCheck the router settings, reset the socket (hold the 10 sec button)
App doesn't see socketDevice in another region of the Mi Home serverChange the region to “China” or “Russia” in your profile settings
The plug is spontaneously shut down.Excess capacity or overheatingCheck the load in the application, provide ventilation
The energy monitoring is not working.Outdated firmware or sensor failureUpdate 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.

Xiaomi and its Aqara sub-brand have several different power socket models. Here's a comparison table:

ModelProtocolEnergy monitoringMax. Power.USB-portPrice (2026)
Mi Smart Plug (ZNCZ04LM)Wi-FiNo.2500 watts1× USB (5V/2A)~1 200 ₽
Mi Smart Plug 2 (ZNCZ12LM)Wi-FiYes.2200 watts1× USB (5V/2A)~1 500 ₽
Aqara Smart Plug (SP-EUC01)ZigbeeYes.2500 wattsNo.~1 800 ₽
Aqara Smart Plug T1ZigbeeYeah, yeah.2500 wattsNo.~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).

FAQ: Frequent questions about Xiaomi smart outlets

Can I manage a socket without the Internet?
Yes, but only on the local network. If Wi-Fi is working and the Internet is off, the outlet will respond to commands from the Mi Home app, but only if the phone is connected to the same network.
Why does the socket flash red?
Red indicator signals an error: 🔴 1 Blinking – No Wi-Fi connection. 🔴 2 flashings – exceeded the maximum power. 🔴 3 blinks - internal error (reset required) Check network settings or application load.
How to connect a socket to several phones?
All devices must be linked to one Xiaomi account, and the outlet will then be available in Mi Home on all smartphones, with the alternative being to create a Family in your account settings and add other users.
Can I use an Alexa socket?
Officially, no, but there's a workaround: Connect the outlet to Home Assistant or IOBroker. Set up Alexa integration through Haaska or ioBroker.amazon-echo. You can then control the outlet via Alexa.
How many outlets can I connect to one account?
There are no restrictions, but in practice, more than 50 to 100 devices can cause delays in control, and for a large number of devices, it is recommended to use hubs (for example, Aqara Hub) for distributed load.