How Xiaomi Smart Sockets Work: Device, Functions, and Connection to a Smart Home

Xiaomi's smart outlets have become one of the most popular automation devices in the world, thanks to a combination of affordable price, reliability and broad integration capabilities. These compact gadgets allow remote control of appliances, monitor power consumption and even protect equipment from power surges. But how exactly do they work? What technologies underlie their operation, and how do Mi Smart Plug, Aqara Smart Plug or Xiaomi Smart Wi-Fi Socket differ from each other?

In this article, we will understand the device of Xiaomi smart sockets, their key features and principles of operation. You will learn how they interact with the Mi Home application, what communication protocols they use (Wi-Fi, Zigbee or Bluetooth Mesh), and how to integrate them into the existing ecosystem of a smart home - whether it is a Xiaomi proprietary platform or third-party systems like Home Assistant or Google Home. We will also give practical recommendations for choosing a model for specific tasks and reveal the nuances about which the manufacturer does not.

Smart socket device: what is inside and how it works

At first glance, Xiaomi’s smart outlet looks like a regular plug-in adapter, but it hides complex electronics.

  • πŸ”Œ Power unit - converts the alternating current of the network (220V) into a permanent electronics socket, turns on fuses and varistors to protect against overloads.
  • πŸ“Ά The communication module is responsible for connecting to the network, depending on the model, it can be Wi-Fi (2.4 GHz), Zigbee (in Aqara outlets) or Bluetooth Mesh (in new versions).
  • πŸ–₯️ Microcontroller – the β€œbrain” of a device that processes commands, controls the relay and collects data from sensors.
  • ⚑ Relay: An electromechanical or solid-state switch that physically opens/closes a circuit when remotely controlled.
  • πŸ“Š Current/voltage sensor – measures power consumption (in models with power monitoring function).

When you send a command to turn on through the Mi Home app, the signal goes the following way:

  1. The command from the phone is transmitted to the Xiaomi cloud server (or directly to the local network if the socket supports it). LAN-regime).
  2. The server sends a signal to the socket through the selected protocol (Wi-Fi/Zigbee).
  3. The microcontroller socket activates the relay, closing the circuit.
  4. The electrical appliance is getting power.

It is important to understand that Wi-Fi outlets (such as Mi Smart Plug) depend on the stability of the Internet connection, whereas Zigbee models (Aqara Smart Plug) operate through a local hub and are less prone to delays. This is critical for automation, where reaction speed is important (for example, turning on lighting on the motion sensor).

πŸ“Š What kind of Xiaomi smart outlet you use?
Mi Smart Plug (Wi-Fi)
Aqara Smart Plug (Zigbee)
Xiaomi Smart Wi-Fi Socket (with energy monitoring)
Another model.
I haven't bought it yet.

Communication protocols: Wi-Fi vs Zigbee vs Bluetooth Mesh

The choice of communication protocol directly affects the stability of work, response speed and compatibility with other devices.

ProtocolAdvantagesDeficienciesExamples of models
Wi-Fi (2.4 GHz)βž• No need for an additional hub βž• Easy setup through Mi Home βž• Affordable priceβž– Internet dependency (without the cloud does not work) βž– Delays in cloud management (~1-2 sack) βž– Loads the router (each device is a separate client)Mi Smart Plug, Xiaomi Smart Wi-Fi Socket
Zigbeeβž• Local work without the Internet βž• Low energy consumption βž• Support for mesh network (interference resistance)βž– Aqara Hub or Mi Home Gateway) βž– Higher price βž– Limited range without repeatersAqara Smart Plug, Xiaomi Zigbee Smart Plug
Bluetooth Meshβž• Low energy consumption βž• Local control without a hub (in new models) βž• Quick response (~0.5 sec)βž– Small range (up to 10 m) βž– Limited compatibility with other systems βž– Requires a constant connection to the phone/hubXiaomi Bluetooth Mesh Smart Plug (Experimental Models)

For most users, Wi-Fi outlets are the best choice because of their ease of installation, but if you already have an Aqara or Mi Home ecosystem with a Zigbee hub, you should focus on Zigbee models, which are more reliable and faster. Bluetooth Mesh is exotic, but promising for future updates.

⚠️ Warning: Wi-Fi outlets don't work on a 5GHz network. If your router doesn't support 2.4GHz or that network is disabled, the device won't connect. Check your router's settings before buying!

Xiaomi smart sockets: from basic control to energy monitoring

Xiaomi’s smart sockets go far beyond just turning on/off, and here are the key features that modern models offer:

  • ⏱️ Timers and schedules – automatically turn on the heater before returning home or turn off the charger at night.
  • πŸ“ˆ Power consumption monitoring – current sensor models (e.g. Xiaomi Smart Wi-Fi Socket) show current power, voltage and power consumption per day/month.
  • πŸ”„ Vacation mode - random lights on/off to simulate the presence of a home. Configured in Automation β†’ Simulation of presence.
  • πŸ›‘οΈ Protection against overloading – when exceeding maximum power (usually) 10And/2200W) the socket is automatically switched off. The threshold is adjusted manually.
  • πŸ€– Integration with voice assistants – support for Alice (Yandex), Google Assistant and Amazon Alexa for voice control.
  • πŸ”— Scenarios and automations - communication with other Xiaomi devices, for example: "If the motion sensor is triggered, turn on the socket with the lamp".

Energy monitoring is especially useful for monitoring gluttonous appliances, such as finding that an old refrigerator consumes 30 percent more than normal, or that a standby TV eats 10 watts per hour at night, which helps reduce electricity bills.

How does the socket measure energy consumption?
The current sensor in the socket fixes the current strength (in amperes) and multiplies it by voltage (220B), getting power in watts, this data is transmitted to the application every time. 5-10 The accuracy of the measurements is Β±5%, which is enough for household needs.

However, not all models support a full set of features. For example, the budget Mi Smart Plug (without power monitoring) does not have a current sensor, and the Aqara Smart Plug does not work with Google Home without additional settings.

Step-by-step: how to connect a smart socket Xiaomi

The installation process takes no more than 5 minutes, but there are nuances that many people forget.

  1. Install the socket in the network - insert it into a regular socket 220V. Make sure that there are no sources of interference (microwaves, cordless phones).
  2. Download the app - Mi Home (for Wi-Fi sockets) or Aqara Home (for Zigbee models).
  3. Sign up or sign in to Xiaomi. Without it, the socket won't work!
  4. Add the device: In Mi Home: Press + β†’ Add the device β†’ The socket, at Aqara Home: + β†’ Add the device β†’ Electricity β†’ Rosetta.

Connect to the power outlet network

Xiaomi_

Aqara_

Choose your Wi-Fi network

2.4 GHz

Wait for the setup to be completed

Check that the router supports 2.4 GHz|

Turn off the VPN on your phone |

Make sure the outlet is in the Wi-Fi coverage area|

Charge the phone (setup takes up) 3-5 minute)-->

If the socket does not connect:

  • πŸ”„ Restart the router and try again.
  • πŸ“Ά Check that the Wi-Fi signal is strong enough (use the Wi-Fi Analyzer app).
  • πŸ”Œ Try another outlet - maybe the wiring problem.
  • πŸ“± Update the Mi Home app to the latest version.

⚠️ Note: If you use a guest or client isolation network, the outlet will not be able to connect to the Xiaomi cloud.

Integration with smart home systems: Mi Home, Home Assistant, Google Home

Xiaomi’s smart outlets can be used not only in its own app, but also in other ecosystems.

1. Mi Home (official annex)

The core platform with maximum feature support is available here:

  • πŸ“± Remote control from the phone.
  • ⏰ Timers and schedules.
  • πŸ€– Automation with other Xiaomi devices (sensors, lamps, cameras).
  • πŸ“Š Energy consumption statistics (for supported models).

To create automation, go to Profile β†’ Automation β†’ Create β†’ If... and select a trigger (such as a time or event from a sensor).

2. Home Assistant (for advanced users)

For full on-premises automation without the cloud, Home Assistant is suitable.

  • Mi Home Integration is the official plugin, but requires an access token (obtained via Mi Home) + third-party).
  • Zigbee2MQTT β€” for Zigbee-outlets (you need a USB-dongle, for example, CC2531).

Example configuration for configuration.yaml:

switch:


- platform: xiaomi_miio




name: "Xiaomi Smart Plug"




host: 192.168.1.100




token: YOUR_TOKEN_HERE

3. Google Home / Amazon Alexa

For voice control:

  1. In Mi Home, go to Profile β†’ Settings β†’ Voice Assistants.
  2. Select Google Assistant or Amazon Alexa and link your account.
  3. In the voice assistant application, search for devices.

Now you can say, "OK, Google, turn on the socket in the hallway."

πŸ’‘

If the outlet doesn't show up in Google Home, try turning it off for 10 seconds and reconnecting it, often solving the sync problem.

Hidden opportunities and life hacks for smart outlets

Many users only use sockets for basic turn-on/off, but they can do more. Here are some non-obvious tips:

  • πŸ”Œ Control via Telegram bot – with Home Assistant or service IFTTT You can set up the messaging system to send commands. Useful if you don't have access to Mi Home.
  • πŸ“± Local control without Internet - in Mi Home, activate Local Network (in the device settings) This will speed up the response and allow you to control the outlet even when you turn off the Internet.
  • ⚑ Child protection – some models (e.g. Aqara Smart Plug) have physical locking of the fork nests, activated by long pressing the power button.
  • πŸ”„ "Night Light" mode - if connected to the socket LED-tape, you can configure a smooth on / off through automation, simulating the dawn / sunset.
  • πŸ› οΈ Factory reset β€” press the button on the socket for 10 seconds until the indicator flashes yellow.

Another useful trick is to use the socket as a presence sensor, for example, if you have a TV connected to it, you can create automation: If the socket consumes it, >50 watts longer than 2 hours, turn on the air humidifier.

πŸ’‘

Aqara Zigbee sockets support double-pressing the button to trigger scripts, for example, a double-click can enable Mode Mode Mode (turns off the lights and turns on the projector).

Frequent problems and their solutions

Even reliable devices sometimes fail, and here are the typical problems and ways to fix them:

Problem.Possible causeDecision
The socket does not connect to Wi-Fi❌ Wrong password ❌ 5 GHz network ❌ Interference from other devicesβœ… Check the password. βœ… Switch the router to 2.4 GHz mode βœ… Reboot the router and socket
The plug goes off on its own.❌ Overloading (>2200 watts) ❌ Power surge ❌ Protection activationβœ… Check the power of the connected device βœ… Connect through the network filter βœ… Reset the socket settings
The energy monitoring is not working.❌ Model without current sensor ❌ Firmware failureβœ… Check the model specifications βœ… Update the firmware in Mi Home
Delay in on/off❌ Cloud management (Wi-Fi) ❌ Bad Wi-Fi signalβœ… Activate local mode in Mi Home βœ… Install a Wi-Fi repeater

If the socket has stopped responding to commands, try a forced reset:

  1. Turn off the power outlet.
  2. Press the power button.
  3. Without releasing the button, connect the socket to the network.
  4. Hold the button. 10-15 seconds until the indicator flashes 3 once.

⚠️ Note: If the socket does not appear in Mi Home after the reset, check if the region of the account has changed. Some models (for example, the Chinese versions) require the Mainland China region to work correctly.

Can I connect a refrigerator or washing machine to a Xiaomi smart outlet?
Technically, but not recommended. Xiaomi outlets are designed for a maximum load of 10A (2200 W). Refrigerators and washing machines at the time of start of the compressor / motor can consume up to 3000 watts, which will lead to overheating of contacts or protection. For such devices, it is better to use specialized smart relays (for example, Shelly Plug S with support for loads up to 16A).
How to update the firmware of a smart outlet?
Updates are installed automatically through Mi Home, but you can check manually: Open Mi Home and select your socket. Go to Settings (βš™οΈ) β†’ Update firmware. If a new version is available, click Update. ⚠️ Do not disconnect the power outlet during the upgrade!
Do Xiaomi smart outlets work without the internet?
Depending on the model and settings: Wi-Fi outlets β€” the default Internet for cloud management. But if you activate local mode in Mi Home, they will work on the local network. Zigbee outlets β€” work without Internet through the hub (Aqara Hub or Mi Home Gateway). For full autonomy, use Home Assistant with local management.
What is the difference between Mi Smart Plug and Xiaomi Smart Wi-Fi Socket?
Main differences: Characteristics of Mi Smart Plug Xiaomi Smart Wi-Fi Socket Energy Monitoring ❌ No. βœ… Yes (power, voltage, consumption) Max. load 10A / 2200W 10A / 2200W Wi-Fi (2.4 GHz) Wi-Fi (2.4 GHz) Sizes Compact (does not block the adjacent outlet) Larger (can block the adjacent outlet) Price Cheaper (~1500 RUB (~2500 RUB) If you only need remote control, take Mi Smart Plug. If power monitoring is important - Xiaomi Smart Wi-Fi Socket.
Can I use a smart socket on the street or in the bathroom?
All Xiaomi outlets have a protection class IP20, signifies: ❌ No protection from moisture. ❌ No protection against dust. Use in high humidity (bathroom, street) can lead to short circuit or electric shock. IP44 and above (for example, Shelly Plug) IP).