How to set up Xiaomi’s smart socket: a complete guide from connectivity to automation

Xiaomi’s smart sockets are some of the most affordable and functional home automation devices available, allowing you to manage your appliances remotely, adjust your on/off schedules, and integrate into the smart home ecosystem through Mi Home, Google Home, or Home Assistant, but even these simple gadgets have customization nuances that aren’t always obvious to beginners.

In this article, we will look at not only basic Wi-Fi connection, but also advanced scenarios: voice assistants, power monitoring setup (for models with support), time automation or sensors. And also common errors that interfere with stable operation, and how to fix them. If you are just starting to master the Xiaomi smart home or are experiencing problems with setting up, here you will find the answers.

What models of Xiaomi smart outlets exist and how they differ

Xiaomi has several smart socket models that look similar but have important functional differences.

  • πŸ”Œ Mi Smart Plug (base model) - on/off control, without power monitoring. Supports 2.4 GHz Wi-Fi, compatible with Mi Home and Google Assistant.
  • ⚑ Mi Smart Plug with Energy Monitoring - Adds electricity consumption (current, voltage, power) metering, useful for monitoring household appliances' electricity consumption.
  • 🌍 Mi Smart Plug (EU/US/UK versions) - differ in the shape of the plug and supported voltage standards (220For Europe, 110It is important to choose a model for your country!
  • πŸ”„ Aqara Smart Plug (from a subsidiary brand) – works through the Aqara Hub gateway, supports the Zigbee protocol, which makes it more stable in large smart home systems.

For most users, the best choice is Mi Smart Plug with Energy Monitoring (model) ZNCZ04LM). It combines affordable prices, energy monitoring and reliable connectivity, and if you need a street outlet or wet space, look for a protected outlet. IP44 (Xiaomi Mi Outdoor Smart Plug).

πŸ“Š What kind of Xiaomi smart outlet you use?
Mi Smart Plug (basic)
Mi Smart Plug with energy monitoring
Aqara Smart Plug
Another brand
I haven't bought it yet.

Before buying, check if the outlet supports your region. For example, European models (Type F) will not be suitable for American outlets (Type). A/B). Also pay attention to the maximum load: most of Xiaomi smart outlets are designed for the use of the device. 10And (2200 W) – this is enough for a kettle or lamp, but not for a powerful heater.

Preparation for the setup: what will be needed

To connect a smart outlet Xiaomi, prepare:

  • πŸ“± Smartphone with installed Mi Home app (available for Android and iOS). Download from the official website or app stores.
  • πŸ“Ά Stable Wi-Fi connection at 2.4GHz. Xiaomi smart sockets don't work with 5GHz networks!
  • ⚑ 220V (or 110V for American models) working outlet next to the router – at the stage of setting up the device must be in the zone of a confident Wi-Fi signal.
  • πŸ”§ Screwdriver (if you need to disassemble the socket to reset the settings).

If you have a dual-band router, make sure that the 2.4GHz network is on and has a unique name (not the same as 5GHz). SSID β€” In this case, you may need to separate them in the router settings, and also check that the router has turned off client isolation (AP Isolation – otherwise the outlet will not be able to connect to the cloud Xiaomi.

Install the Mi Home app|

Check that Wi-Fi is running at 2.4 GHz|

Separate 2.4 and 5 GHz networks if they are combined|

Shut down. AP Isolation on the router|

Connect the outlet to the 220V network in the Wi-Fi coverage area-->

Important: if you set up an outlet in an office or public place where authorization is used through a portal (for example, in hotels), connection will not be possible.

Step-by-step: how to connect Xiaomi smart socket to Wi-Fi

The setup process takes no more than 5 minutes if you follow the instructions. Consider connecting via the official Mi Home app:

  1. Turn on the smart socket to the network. The indicator on the case should flash orange (connection waiting mode). If the indicator is green or blue, the socket is already linked to another account (see the section on resetting).
  2. Open the Mi Home app and log in (or create an account if you don’t have one) and select Russia region (or your country) – this is important for the proper operation of servers.
  3. Press. + β†’ Add the device in the upper right corner. In the category list, select the sockets and switches, then find your model (for example, Mi Smart Plug).
  4. The app will suggest connecting to the temporary outlet network: πŸ”„ Go to the Wi-Fi settings on your phone. πŸ“‘ Connect to a network with a name MiPlug_XXXX (where XXXX β€” unique identifier). πŸ”™ Return to Mi Home – the app will automatically detect the socket.

Select your home Wi-Fi network (2.4 GHz) and enter your password. Wait until the connection is complete, the indicator on the outlet should light up green.

Name a socket (like "Kettlepot" or "Light in the hallway") and select a room in the app.

If there is an error in the connection stage to the temporary network, try:

  • πŸ”„ Reset the socket (remove/insert the plug).
  • πŸ“± Re-launch the Mi Home app.
  • πŸ“Ά Make sure your phone is connected to a 2.4 GHz network (not 5 GHz).

πŸ’‘

If the outlet is not detectable, try using another smartphone. Some Android models (especially those with custom firmware) have problems connecting smart devices to temporary networks.

Power Monitoring (for supported models)

Power Monitoring Sockets (e.g. Mi Smart Plug with Energy Monitoring, model) ZNCZ04LM) They allow you to track your electricity consumption in real time, so you can turn it on:

  1. Open the socket in the Mi Home app and go to its settings (icon) βš™οΈ top-right).
  2. Select Energy Monitoring or Consumption Statistics (the name may vary depending on the application version).
  3. Activate the option to Track consumption. Now the socket will fix: ⚑ Current power (W). πŸ“Š Voltage (B) and current (A). πŸ“… Daily/monthly consumption (kWh).

The data is updated every 5-10 seconds and can be used to:

  • πŸ’‘ Optimizing costs (e.g., how much electricity a refrigerator uses per month).
  • 🚨 Monitoring overheating of devices (if the power exceeds the nominal power).
  • πŸ“ˆ Consumption charts in Google Sheets through Home Assistant.
ParameterNormal valuesWhat to do when you reject
Maximum powerUp to 2200 W (10A)Do not connect devices more powerfully (for example, heaters). Use an outlet with a load of up to 16A.
Tension.210-230 VIf the voltage is below 200V, check the network or use a stabilizer.
CurrentUp to 10 A.If you overshoot the socket will shut down automatically.

Important: the energy monitoring data is reset when the power outlet is turned off, to save the statistics, export it manually in the application or set up automatic synchronization with Google Drive via Home Assistant.

Creating automation and schedules

One of the key functions of a smart outlet is automatic control over time, sensors or other conditions.

Timetable by time

For example, turn on the kettle every day at 7:00, and turn off after 10 minutes:

  1. In the Mi Home app, open the socket settings.
  2. Choose a schedule. β†’ Add.
  3. Specify the on time (07:00) and off time (07:10).
  4. Choose the days of the week (for example, Pn-Pt).
  5. Keep the rule.

Automation by sensors

You can connect the socket to other Xiaomi devices, for example:

  • 🌑️ Turn on the heater if the temperature is below 20Β°C (Mi Temperature and Humidity Sensor).
  • πŸšͺ Turn off the light when the door is closed (Mi sensor) Door/Window Sensor).

For this:

  1. At Mi Home, go to Automation. β†’ Add β†’ Smart scene.
  2. Select a condition (for example, temperature) < 20Β°C).
  3. Add the action: Turn on the socket.
  4. Save the script.

Voice control

Xiaomi outlets are compatible with Google Assistant, Alice (Yandex) and Siri (via HomeKit with a bridge).

  • 🎀 In Mi Home, link your account to Google Home (Profile) β†’ Settings β†’ Accounts and security β†’ Adding a Google account).
  • πŸ“± In the Google Home app, add a socket as a device.
  • πŸ—£οΈ Now you can control your voice: OK, Google, turn on the kettleΒ».
How to Integrate Xiaomi Socket into Home Assistant
Use the Home Assistant component to connect to the home assistant xiaomi_miio. Add configuration.yaml: switch: - platform: xiaomi_miio host: IP_DRESS ROSETTES TOKEN: YOUR_TOKEN The Token can be obtained through the Mi Home app (requires an account with the China region and special tools like MiHome Token Extractor).

If automation does not work, check:

  • πŸ“Ά Wi-Fi stability (the socket must be online).
  • ⏰ Time zone in the Mi Home app (should match your region).
  • πŸ”„ Updates to the firmware socket (Settings) β†’ Update of the PO).

Typical problems and their solutions

Even after setting up correctly, Xiaomi’s smart outlets can run unstable, and consider the most common errors and ways to fix them:

⚠️ Warning: If the outlet is permanently disconnected from Wi-Fi, check your router settings. Some models block devices with frequent requests to the cloud (e.g., TP-Link in Green Mode mode.

Problem.Possible causeDecision
The socket does not connect to Wi-FiWrong Password or 5 GHz NetworkCheck the network name (should be 2.4GHz) and password. Reboot the router.
The indicator flashes red.Overheating or overcurrentTurn off the device, let the socket cool down, check the power of the device connected.
App doesn't see socketThe plugin is tied to another accountReset the settings (hold the 5-second button until blinking orange).
The power monitor shows zeros.Firmware failure or low loadUpdate the socket software. Connect the 10W device.

If the socket stopped responding to commands, try:

  1. Reset it (remove/insert the plug).
  2. Check your internet connection (Green status should be on in Mi Home).
  3. Update the firmware through the app.
  4. Reset the settings (see the next section).

πŸ’‘

If the socket is unstable, try to fix it with a static IP-address in the router settings, which will prevent conflicts DHCP and breaks of connection.

How to reset Xiaomi smart socket to factory settings

Resetting will be required if:

  • πŸ”„ The socket is tied to another Mi Home account.
  • πŸ“΅ The device does not respond to commands.
  • πŸ”§ You want to sell or transfer the socket to another user.

Resetting methods:

  1. Software reset (via the app): Open the socket in Mi Home. Go to Settings β†’ General. β†’ Delete the device. Confirm the deletion.

Hardware reset (button on the body):

  • Press and hold the button on the socket for 5-10 seconds until the indicator starts flashing orange.
  • Release the button and the socket will reset.

FAQ: Answers to Frequent Questions

Can I connect a Xiaomi smart outlet without Mi Home?
Yes, but with limitations. Alternatives: Home Assistant (requires a device token); OpenHab or ioBroker (for advanced users); Tuya Convert (alternative software firmware, but this voids the warranty); however, the initial setup will still require Mi Home.
Why does the plug shut down on its own?
Probable causes: πŸ”Œ Current overload – if the connected device consumes more than 10A (2200 W). 🌑️ Overheating – the socket turns off at a temperature above 70Β°C. πŸ“Ά Loss of Wi-Fi connectivity – check network stability. ⚑ Voltage spikes - use stabilizer. Check logs in the Mi Home app (Notifications section).
How to update the firmware of a smart outlet?
Updates are rare, but sometimes they fix critical bugs. To update: Open the socket in Mi Home. Go to Settings β†’ General. β†’ Update firmware. If a new version is available, click Update. Don't disconnect the outlet from the network during the process! If the update freezes, restart the outlet and try again.
Can I use a smart outlet on the street?
Most Xiaomi models do not have protection from moisture and dust (class) IP20). Xiaomi Mi Outdoor Smart Plug is a good option for the street (IP44, Splash protection: Install a socket under a canopy or in a sealed case; do not use standard models in the rain or in high humidity conditions!
How to connect the socket to Yandex Alice?
To manage through Alice: In the Mi Home app, link your account with Yandex (Profile) β†’ Settings β†’ Accounts β†’ Yandex (In the Yandex appendix) β†’ Add the device, find the socket. You can now control the voice, "Alice, turn on the socket in the hallway." If the socket is not displayed, check that in Mi Home it is tied to the room (without the room sync does not work).