Smart socket Xiaomi: how to connect to the network and manage from a smartphone

Xiaomi’s smart sockets are one of the most popular home automation solutions, allowing remote control of appliances, monitoring power consumption and integrating devices into a single ecosystem. However, many users face difficulties when connecting for the first time: the socket does not find the network, the Mi Home app emits errors, or the device shuts down after a few minutes. In this article, we will analyze all the stages of settings, from unpacking to integration with voice assistants, and also reveal hidden functions that are not written in the official instructions.

It is important to understand that the connection process may vary depending on the socket model (e.g. Xiaomi Mi Smart Plug, Aqara Smart Plug or Xiaomi Smart Wi-Fi Socket), the firmware version and regional app settings. We will look at universal steps relevant to most devices, and also pay attention to the typical problems faced by owners in 2026.

1.Preparation for connection: what to check before starting

Before you start setting up, make sure all the conditions for a successful connection are met.Errors at this stage lead to 80% of problems with Xiaomi smart outlets.

First, check the outlet compatibility with your Wi-Fi network. Most models only work with 2.4GHz networks - if your router only broadcasts 5GHz, the outlet simply won't see the network.

  • πŸ“Ά Wi-Fi signal stable at the place of installation of the socket (at least) 2-3 smartphone-splitting).
  • πŸ”Œ The socket is connected to the 220V network – some models require initial activation from the network.
  • πŸ“± Mi Home app updated to the latest version (relevant for Android and iOS).
  • 🌍 The region in Mi Home corresponds to the country of purchase (for example, for Russia – β€œRussia”, for Europe – β€œEurope").

Pay special attention to the power of the connected appliances. Most of Xiaomi smart outlets are designed for a maximum load of 2200-2500 watts. Connecting heaters, kettles or washing machines with higher consumption can lead to overheating or protection operation.

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

Installation and first activation of the socket

Start by physically connecting the device. Insert the smart outlet into the regular 220V. Most Xiaomi models have a light indicator that should flash orange or blue β€” this is a signal that the device is ready to set up.

  • πŸ”„ Try to remove and re-insert the socket.
  • πŸ”Œ Check the efficiency of the outlet itself (connect another device).
  • πŸ”‹ Make sure that the socket has power (sometimes the machine in the shield works).

Next, run the Mi Home app (or Aqara Home if you have an Aqara brand outlet). + β†’ Add the device and select the category "Rosette". the application will prompt you to scan. QR-code that is on the socket body or in the instructions. QR-code not scanned:

  • πŸ“· Try turning on the flashlight on your smartphone for better lighting.
  • πŸ” Enter. ID handheld devices (under the QR-code).
  • πŸ“² Restart the application and try again.

Check that the router is broadcasting a 2.4 GHz network |

Make sure that the Wi-Fi signal is stable at the installation site|

Connect the socket to the 220V network and wait for the indicator to flash|

Update the Mi Home app to the latest version|

Select the right region in your account settings-->

3. Wi-Fi connection: step-by-step instructions

After the scan. QR-And the app will tell you to connect the outlet to the network, and here many users are faced with the error "failed to connect." To avoid problems, follow this algorithm:

  1. In the Mi Home app, select your 2.4GHz home network from the list. If the network is not listed, check your router settings (turn off Hide function). SSID").
  2. Enter your Wi-Fi password. Make sure you use the correct register (passwords are capitalized!).
  3. Wait for the outlet to connect to the network, and the indicator should change color from flashing orange to permanent blue or green.
  4. Assign a name to the outlet (such as β€œKitchen Teapot”) and select a room in the app for easy management.

If the socket does not connect:

  • πŸ”„ Restart router – sometimes a simple power outage for 30 seconds helps.
  • πŸ“΅ Turn it off. VPN or proxy on a smartphone – they can block the connection.
  • πŸ“Ά Try connecting to another 2.4GHz network (e.g., distribute internet from your smartphone).
What if the plug is connected but immediately disconnected?
This problem is often associated with router power saving settings. Go to the router control panel (usually at 192.168.0.1 or 192.168.1.1) and turn off the option "Energy saving for Wi-Fi" or "WMM". Also check if the router is blocking the device. MAC-address (in the router's logs there may be information about this).

4. Control and automation setup

Once successfully connected, the socket will appear in the main menu of the Mi Home app, and you can now configure the basic functions:

FunctionHow to set upExample of use
Remote on/off switchingClick on the socket icon in the app β†’ "On/Off" button".Turn on the heater 30 minutes before returning home.
Timer.In the socket menu, select "Timer" β†’ Add on/off time.Automatically turn off the charger of the laptop after 2 hours.
Energy consumption monitoringIn the socket menu, open the tab "Electricity".Control the energy consumption of the refrigerator for a month.
Voice controlConnect the socket to Alice, Google Assistant or Siri through the app settings.Control the lights with a voice: "Alice, turn on the socket in the hall."

For advanced scenarios, use the Automation section of Mi Home, for example, you can configure:

  • πŸŒ… Turning on the coffee maker on the alarm (synchronization with the Mi Clock application).
  • πŸ”₯ Automatic shutdown of the iron if the energy consumption falls below 50 W (means the iron is heated and turned off).
  • 🌑️ Temperature Control (Integration with Xiaomi Temperature & Humidity Sensor).

πŸ’‘

If the outlet often loses connection to Wi-Fi, try to fix it MAC-address in router settings (option "DHCP Reservation" or "Tie-in IP"). That'll prevent a shift. IP-Device addresses and improve communication stability.

5. Integration with Home Assistant and other systems

Xiaomi smart outlets can be connected not only to the native Mi Home app, but also to third-party smart home systems such as Home Assistant, OpenHAB or Apple HomeKit (using bridges such as HomeBridge).

For integration with Home Assistant:

  1. Install the Xiaomi Miio component via HACS or manually.
  2. Get your device token using the Mi Home Token Extractor app (available for Android).
  3. Add the socket to the configuration file configuration.yaml: switch: - platform: xiaomi_miio name: "Xiaomi Smart Plug" host: 192.168.1.100 # IP-token: YOUR_TOKEN_HERE

Once you restart Home Assistant, the socket will appear in the interface and be available to create automation, for example, you can configure:

  • πŸŒ™ Turning off all lighting in the house on schedule.
  • πŸš— Turning on the backlight in the garage when opening the gate (integration with motion sensors).
  • πŸ“Š Exporting energy consumption data to Google Sheets for analysis.

πŸ’‘

For stable operation of the socket in Home Assistant, it is recommended to fix it IP-address in the router and disable the energy-saving Wi-Fi functions.

Typical errors and their solutions

Even with the right setup, users face problems, and let's look at the most common errors and how to fix them:

Mistake.Possible causeDecision
"I couldn't connect to the device."The outlet is too far from the router or the signal is weak.Use a Wi-Fi repeater or move the socket closer to the router.
The rosette flashes orange but doesn't plug inThe device is getting stuck in configuration mode.Pull the socket out of the network for 10 seconds, then reconnect.
"Offline Device" at Mi HomeThe router blocks Xiaomi traffic (firewall or parental controls).Add in. IP-plug-in.
The plug is spontaneously shut down.Protection against overheating or overload is activated.Check the power of the connected device (no more than 2200 watts).

If the outlet has stopped responding to commands:

⚠️ Note: Some Xiaomi models are reset to factory settings when disconnected from the network for longer periods (more than 5 minutes).To avoid loss of settings, use an uninterruptible power supply (UPS) for mission-critical devices.

To reset the socket to the factory settings:

  1. Hold the button on the socket body for 10-15 seconds until the indicator starts to flash quickly.
  2. Release the button and wait until the socket resets (the indicator turns orange).
  3. Repeat the connection process from scratch.

7. Compatible with other Xiaomi devices

Xiaomi’s smart outlets are perfectly integrated with other ecosystem devices, allowing for complex automation scenarios.

  • πŸ’‘ Synchronization with smart lamps: turning on the light when the socket is activated.
  • πŸšͺ Work with door/window sensors: turning off the heater when opening the window.
  • 🌑️ Temperature control: Fan activation over 25Β°C (with Xiaomi Temperature Sensor).

To adjust the interaction between devices:

  1. Open the Mi Home app and go to Automation.
  2. Click on "Add Automation" and select a condition (e.g., "If the motion sensor is triggered").
  3. Add the action - turn on the socket.
  4. Save the script and test it out.

Example of a useful scenario:

⚠️ Warning: If you use an outlet to control an aquarium pump or other critical equipment, set up Loss of Communication Notices in Mi Home. To do this, turn on the "State Alerts" option in the device menu".

8. firmware update and hidden features

Regular firmware updates improve the stability of the outlet and add new features.

  1. Open the socket menu in Mi Home.
  2. Go to "Device Settings" β†’ "Firmware update".
  3. If a new version is available, click "Update" and wait for the process to be completed (don't disconnect the socket from the network!).

Among the hidden features of Xiaomi smart outlets:

  • πŸ”Œ Nightlight mode – some models can glow in the dark (includes in settings).
  • ⚑ Real-time display of current power (Installation "Electricity").
  • πŸ“‘ Wi-Fi Repeater Mode (not available on all models, requires firmware from Aqara).

For power users, some outlets support alternative firmware (e.g. Tasmota or ESPHome) that extend functionality, but this requires soldering and risks losing warranty.

How to make an alternative firmware?
To firmware Tasmota will require: 1. Disassemble the socket and connect to contacts UART (TX, RX, GND, 3.3V). 2. use a programmer (e.g, FTDI) and flash through esptool. 3. Set up Wi-Fi and MQTT in the Tasmota web interface. ⚠️ This will void the warranty and can disable the device if an error occurs!

Frequently Asked Questions (FAQ)

Can you connect Xiaomi’s smart outlet to a 5GHz network?
No, most Xiaomi smart outlets (including Mi Smart Plug and Aqara Smart Plug) only work with 2.4 GHz networks. If your router broadcasts both networks (2.4 and 5 GHz) under the same name, the outlet may not see the network. Solution: split the networks in the router settings or temporarily disable 5 GHz during setup.
Why does the plug go off a few minutes after you connect?
This problem is usually associated with router settings: Turn off the Wi-Fi Energy Saving feature on the router. Check if the firewall or parental controls are blocking Xiaomi traffic. IP-plug-in DHCP. If the problem persists, try connecting the outlet to another network.
How to Reset Xiaomi Smart Socket if It Doesn’t React?
For hardware reset, hold the button on the socket body for 10-15 seconds until the indicator blinks quickly. After resetting, the socket will return to the factory settings, and it will have to be reconnected. If the button does not work, try to disconnect the socket from the network for 1 minute, then try again.
Can I manage a socket without the Internet?
Yes, but with reservations: Local control (on the same network as the outlet) works without the Internet; Remote management (off the home network) requires connection to Xiaomi servers; Automation in Mi Home also requires the Internet to synchronize. For full offline management, use Home Assistant with local connection.
What is the maximum power of the connected devices?
Most of Xiaomi’s smart outlets are designed for a maximum power of 2200-2500 W (10-11 A), exceeding this value can lead to overheating or protection operation. For high-power appliances (e.g. electric stoves), use specialized smart sockets with loads up to 3,500 watts (e.g. Aqara Smart Plug). T1).