Introduction: why you need a smart socket Xiaomi and what it can do
Xiaomi smart outlets are not just devices for remotely switching on appliances, they become the centerpiece of the smart home system, allowing you to automate routine tasks from lighting control to energy control. ZNCZ04LM) supports monitoring of power consumption with an accuracy of watts, which helps to identify โgluttonousโ devices and save on electricity bills.
But the main advantage is integration with the Mi Home ecosystem. Once connected to WiFi, the outlet can be controlled through voice assistants (Alice, Google Assistant, Alexa), create automation scenarios (for example, turning on the heater 30 minutes before you return home), or even control it through Apple HomeKit (with a Mi Home Gateway), but many users face difficulties in the initial setup stage, which are the nuances we will discuss later.
It's important to understand that, despite the external simplicity, the connection process may vary depending on the version of the outlet firmware, the Mi Home regional server, and even your router's model. CN (For the Chinese market, you need to link to an account in the China region, otherwise some of the features will not be available.
Compilation and preparation for connection
Before you start setting up, check the complete setup of your Xiaomi smart outlet. The standard set includes:
- ๐ The outlet itself (the model is usually indicated on the back side: ZNCZ02LM, ZNCZ04LM or ZNCZ12LM)
- ๐ Instructions in Chinese/English (Russian version is rare)
- โก Fork adapter (if the socket is intended for another region, for example, Type C for Europe)
Also prepare:
- ๐ฑ Smartphone with Mi Home app installed (version no lower than 6.0.100)
- ๐ Stable WiFi connection at 2.4 GHz (Xiaomi outlets do not support 5 GHz!)
- โก Power supply near the socket (for connection testing)
Critical: If your router is only running in the 5GHz band, the outlet will not be able to connect, so the solution is to temporarily activate 2.4GHz in the router settings or use a separate access point. MAC-Addresses and no restrictions for new devices.
โ ๏ธ Note: Xiaomi outlets with firmware for the Chinese market (CN) You may need to be linked to China Mainland servers in Mi Home. If you choose another region (e.g. Russia), some features such as power monitoring will not be available.
Step-by-step: connecting the socket to WiFi
The setup process takes no more than 5 minutes, if you follow a clear algorithm, and we break it down into steps with explanations for each step.
Step 1: Install and configure the Mi Home app
Download the latest version of Mi Home from the official store (App Store or Google Play).
- Choose Russia (or China Mainland if you have a socket marked with a slate) CN).
- Sign up or sign in to an existing Xiaomi account (use the same account as other devices in the ecosystem).
- Allow the application to access geolocation and notifications (this is necessary for the correct operation of automation).
Step 2: Adding the device to Mi Home
Now plug the power outlet into the power supply. The indicator on the case should flash orange (connection waiting mode). If the indicator is green or blue, reset the socket settings by holding the power button for 5 seconds.
At the Mi Home appendix:
- Press + โ Add the device.
- Select the Rosetta category.
- Specify your socket model (if it is not on the list, select Mi Smart Plug).
- Confirm the flashing indicator and follow the hints on the screen.
โ๏ธ Checklist before connection
Step 3: Connect to a WiFi network
The app will suggest you select a WiFi network. Make sure that:
- ๐ The net is not hidden (SSID broadcast).
- ๐ Password entered without errors (registration is important!).
- ๐ถ WiFi signal stable (the socket should be no further than 10 meters from the router).
If the connection is suspended during the "Connect to the device" step, try:
- ๐ Reboot router.
- ๐ฑ Shut down. VPN or a proxy on the phone.
- ๐ Reconnect the socket to the power supply (remove / insert the plug).
Critical information: If the outlet does not connect to WiFi for more than 5 minutes, reset the settings (hold the 10 seconds button until you blink orange) and repeat the process from another device (for example, a tablet).
Setup of the socket after connection
Once connected to WiFi, the outlet will appear on the Mi Home main menu, and you can now customize it to suit your needs.
Basic parameters
Open the device card and check:
- ๐ Operating mode: turn on the option "Keep state after power outage" if you want the socket to remember the last state (on / off) during power outages.
- โก Power Monitoring: Activate this feature if your model supports power measurement (available for the use of power measurements) ZNCZ04LM newer).
- ๐ Use history: here are the daily/week/month electricity consumption schedules.
Creating automation
One of the key features of smart outlets is the ability to customize scripts.
- โฐ Timer: turn on the heater at 18:00 and turn off at 22:00.
- ๐ก๏ธ Temperature: If the Mi Temperature & Humidity Sensor shows below +18ยฐC, turn on the heater socket.
- ๐ Cycle: turn on the socket with the aquarium compressor for 10 minutes every hour.
To create automation:
- Go to Profile. โ Automation โ Create โ If....
- Select a trigger (time, sensor, geolocation, etc.).
- Add Action: Device Management โ Your socket โ Turn on/off.
๐ก
If the socket controls a high-current device (such as a refrigerator), turn off the power monitoring function, which will prolong the life of the device, since the current sensors are not designed for sudden load surges.
Integration with voice assistants
To manage the outlet through Alice, Google Assistant or Alexa, link your Mi Home account to the service:
| Assistant | Instructions for binding | Example of a voice command |
|---|---|---|
| Alice (Yandex) | Open the skill "Mi Home" in the application Yandex โ Sign in. โ Select devices for management | "Alice, turn on the socket in the hall." |
| Google Assistant | On Google Home, click + โ Set up the device โ There are devices already? โ Mi Home | "Okay, Google, turn off the socket in the kitchen." |
| Alexa | In the Alexa app, go to Skills โ Search โ Mi Home โ Turn on | "Alexa, turn on the bedroom plug" |
โ ๏ธ Note: When controlling through voice assistants, there may be a delay to 2-3 This involves processing the command on Xiaomi servers and then sending the signal to the socket. For critical tasks (such as emergency shutdown), use the physical button on the device.
Common mistakes and their solutions
Even if you follow the instructions carefully, users face problems, and we'll look at the typical scenarios and how to fix them.
Error: "I was unable to connect to the device"
Causes and solutions:
- ๐ Outlet not in pairing mode: hold the 5-second button until the indicator starts flashing orange.
- ๐ถ Weak WiFi signal: Bring the socket closer to the router or use a repeater.
- ๐ Lockdown MAC-Addresses: Check the router settings (section) MAC Filter or Security).
- ๐ฑ Phone Problems: Try Using a Different Device (Android/iOS) Or reinstall Mi Home.
Error: "Offline device"
If the plug is plugged in but suddenly becomes unavailable:
- ๐ Reboot the router and socket (remove/insert the plug).
- ๐ Check if your WiFi settings (network name, password) have changed).
- ๐ต Make sure the outlet is within range of the network (the problem is relevant for thick walls or large rooms).
- ๐ง Update the firmware of the socket: in Mi Home go to Device Settings โ Update of the PO.
What if the outlet does not respond to commands?
Error: "It is impossible to update the firmware"
Relevant for sockets with Chinese firmware (CN). Decisions:
- ๐ Change region to China Mainland (new account required).
- ๐ฑ Use the Chinese version of the Mi Home app (available on the official website).
- ๐ Connect the socket through the Mi Home Gateway โ this sometimes helps to bypass regional restrictions.
๐ก
If the outlet refuses to update, do not insist: repeated attempts can lead to a "brick" (inoperability) of the device.
Hidden functions and life hacks
Xiaomi smart outlets have a number of non-obvious features that are not mentioned in the official instructions.
Energy monitoring and analytics
If your model supports power measurement (e.g. Mi Smart Plug WiFi) ZNCZ12LM), You can:
- ๐ Exporting consumption data to CSV For analysis in Excel or Google Sheets.
- ๐ก Set up notifications when exceeding a predetermined power threshold (useful for monitoring the operation of heaters or air conditioners).
- ๐ Compare the consumption of different devices connected to one outlet in turn.
For export of data:
- Open the consumption chart in Mi Home.
- Click on the icon. โฎ โ Export of data.
- Select the period (day/week/month) and format (CSV or PDF).
Management through Home Assistant
For advanced users: Xiaomi outlets can be integrated into the Home Assistant system without the cloud using a local protocol.
- Install the Xiaomi Miio component in the Home Assistant.
- Get token devices through the Mi Home app (instructions are available on the official website).
- Add the socket to the configuration file:
switch:
- platform: xiaomi_miio
name: "Xiaomi Smart Plug"
host: 192.168.1.100 # IP- Socket address
token: YOUR_TOKEN_HEREAfter that, the outlet can be controlled locally, without depending on Xiaomi servers, which speeds up response and increases reliability.
Using a socket as a relay for a smart home
With the power outlet and the extra sensors, you can create complex scenarios.
- ๐ช Simulation of presence: accidentally turning on lights at different times when you are not home.
- ๐ง Leak protection: If the Mi Water Leak Detector water sensor is triggered, the socket turns off the washing machine.
- ๐ฟ Plant auto-irrigation: the socket includes the pump on schedule or at low soil moisture (data from the Mi Flora sensor).
๐ก
For Scenario sensors, use the "E/OR" logic in Mi Home. For example, you can set the heater to turn on if the temperature is lower. +20ยฐC and humidity above 60% (to avoid air overdrying).
Comparison of models of smart outlets Xiaomi
There are several Xiaomi smart sockets on the market, with different functionality and price, and below is a comparison table of current devices (2026).
| Model | Max. Power. | Energy monitoring | Support for 5 GHz | Price (exemplary) | Features |
|---|---|---|---|---|---|
| Mi Smart Plug (ZNCZ02LM) | 2200 watts | โ No. | โ No. | ~1200 โฝ | Basic model, without measuring energy consumption |
| Mi Smart Plug WiFi (ZNCZ04LM) | 2200 watts | โ Yes. | โ No. | ~1500 โฝ | Precise power monitoring, HomeKit compatibility (via gateway) |
| Mi Smart Plug WiFi (ZNCZ12LM) | 2500 watts | โ Yes (enhanced sensor) | โ No. | ~1800 โฝ | Support for fast connection, less delay in management |
| Aqara Smart Plug (SP-EUC01) | 2300 W. | โ Yes. | โ No. | ~1600 โฝ | Operates via Zigbee (requires Aqara hub), a more stable connection |
For most users, the best choice is Mi Smart Plug WiFi. ZNCZ04LM โ It combines power monitoring, reliability and affordable pricing, and if you want maximum connectivity stability, consider Aqara Smart Plug, but be prepared to buy a hub to run it.