Xiaomi smart switches are not just a way to control light, but a full-fledged element of the smart home ecosystem that integrates with voice assistants, automation scenarios and other devices of the brand. However, their installation is different from the installation of traditional key switches: it is important to consider the features of the wiring (whether you need a neutral wire), the type of attachment (invoice or embedded), and compatibility with the hub. If you have never worked with electricity, it is better to entrust the installation to a professional – errors in connection can lead to a short circuit or a device out of operation.
In this article, we will take the whole process from A to Z, from choosing the right model (Aqara Wall Switch, Mi Smart Wall Switch or Yeelight) to setting up via the Mi Home or Aqara Home app. We will focus on connectivity schemes (with and without neutrality), nuances of working with aluminum wiring and solutions to typical problems, for example, when the switch is not detected on the network. If you already have experience with electrical wiring, you can install the device yourself in 30-60 minutes.
1.What Xiaomi switches are: a comparison of models 2026
Xiaomi’s smart switch line includes devices under the Aqara, Mi Home and Yeelight brands, which are not only design-based, but also feature, hub compatibility, and wiring requirements. Below are the current models for 2026 with key specs.
| Model | Type | Neutral wire | Management | Compatibility | Price (≈) |
|---|---|---|---|---|---|
| Aqara Wall Switch (D1) | 1/2/3 keyboards, insertable | Required. | App, Voice (Alice, Google, Siri) | Aqara Hub, Mi Home | 1 500–2 500 ₽ |
| Aqara Wall Switch (No Neutral) | 1 key inserted | Not required | App, voice. | Just the Aqara Hub. | 2 000 ₽ |
| Mi Smart Wall Switch | 1/2 keys, invoice | Required. | App, voice. | Mi Home, no hub (Wi-Fi) | 1 200–1 800 ₽ |
| Yeelight Smart Switch | 1 key, invoice | Required. | App, voice, scripts | Yeelight App, Mi Home | 1 300 ₽ |
The choice of the model depends on two key factors:
- 🔌 Wiring type: If your switch box doesn't have a neutral wire, only the Aqara Wall Switch (No Neutral) will do. You can check this with an indicator screwdriver, the neutral doesn't glow when you touch it.
- 📱 Ecosystem: Aqara devices require a hub to work, while the Mi Smart Wall Switch connects directly over Wi-Fi. If you already have a Xiaomi Gateway or Aqara Hub, choose compatible models.
⚠️ Note: Yeelight switches do not support Zigbee protocol and will not work with Aqara hubs. They can only be connected via Wi-Fi or Bluetooth (depending on the model).
Preparation for installation: safety tools and measures
Before you start, you should turn off the power on the shield, which will prevent electric shock.
- 🔧 Indicator screwdriver (to check the voltage).
- 🔨 Flat and cross screwdriver (for dismantling the old switch).
- 📏 Level (for the smooth installation of overhead models).
- 🔌 Stripper or stripper (to clean wires).
- 🧲 Tester or multimeter (optional, to check the circuit).
If you install an embedded switch (e.g., Aqara) D1), Make sure the subparticle is the size of the device (usually 86×86 For overhead models (Mi Smart Wall Switch), a flat surface and access to wires are sufficient.
⚠️ Attention: older homes often use aluminum wiring, which is fragile and can break when bent, and in this case, it is recommended to use terminal pads instead of twisting or soldering.
Power out on the shield.|Neutral wires are checked (if required)|Tools prepared|Photo of the old connection scheme|Compatibility of the switch with the hub-->
Connection schemes: neutral and non-neutral
The most critical step is to connect the wires correctly, and errors here can cause the switch to malfunction or even break. Below are the two main circuits for Xiaomi switches.
Scheme 1: Neutral wire connection (most models)
This scheme is suitable for Aqara D1, Mi Smart Wall Switch and Yeelight:
- Turn off the power and dismantle the old switch.
- Determine the wires: L (phase) is usually red or brown. N (neutral) is blue or blue. L1/L2 (load) - wires to the lamp.
Connect the wires to the switch terminals according to the marking (see the model instruction).
Fix the device in a rosette or on the wall.
Scheme 2: Connection without neutral (Aqara No Neutral)
This model works on the principle of a pass switch, so it requires a specific scheme:
- Phase (L) is connected to the terminal L.
- The wire from the lamp to the terminal L1.
- The neutral wire is not connecting.
Important: such a switch cannot operate without an Aqara hub, as pulsed current from the phase is used to power the electronics.
What happens if you confuse phase and zero?
4. Step-by-step installation of the Xiaomi switch
Let’s look at the Aqara Wall Switch. D1 (For other models, the steps are similar, but the connection details may differ.
Step 1: Dismantling the old switch
Remove the old switch keys (steer them with a screwdriver) and unscrew the fasteners. Carefully pull the mechanism out of the rosette without damaging the wires. Take a picture of the current connection circuitry, which will help avoid errors.
Step 2: Preparation of wires
Clean the ends of the wires by 5-7 mm (if they are oxidized). If the wires are too short, use the terminal pads to lengthen.
- 🔴 Phase (L) - in terminal L.
- 🔵 Neutral (N) - in terminal N.
- 💡 The load (L1) — terminal L1.
Step 3: Fixing the switch
Carefully sink the wires into the rosette so that they do not interfere with the installation. Secure the switch with screws or latches (depending on the model). For overhead switches (Mi Smart), use the level to align the position.
Step 4: Checking the performance
Turn on the power on the shield and check:
- 💡 The lamp lights up when you press the key.
- 📶 The indicator on the switch flashes (means readiness to pair).
💡
If the lamp flashes or burns full after installation, check the polarity of the connection.
5.Set up the switch via the Mi Home or Aqara app
After the mechanical installation, you need to connect the switch to the smart home system.
For Aqara devices (via Aqara Home):
- Open the Aqara Home app and click «+» → «Add the device».
- Select Wall Switch and follow the instructions.
- Press and hold the button on the switch until the beep (3-5 seconds).
- Wait for the pairing to be completed.
For the Mi Smart Wall Switch (via Mi Home):
- In the Mi Home app, go to Devices» → «Add the device».
- Select the “Switches” category and your device model.
- Connect to a 2.4 GHz Wi-Fi network (5 GHz not supported!).
- Press the button on the switch before the indicator flashes.
After adding the device, you will be able to:
- 🔄 Configure scenarios (e.g., “Switch off lights when leaving»).
- 🎤 Manage voice via Alice, Google Assistant, or Siri.
- ⏱ Set on/off timers.
⚠️ Warning: If the switch is not detected in the app, check: Distance to the hub (no more than 10 m for Zigbee). Obstacles (walls, metal structures). Hub firmware version (update via Mi Home).
Typical problems and their solutions
Even if installed correctly, there can be problems, and here are the most common ones and how to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| The switch won't turn on | No power, wrong connection. | Check the machine on the shield, reconnect the wires. |
| The lamp flashes | Phase and zero mixed up, poor contact | Change the wires, tighten the terminals. |
| Not connecting to the hub. | Weak Zigbee signal, outdated firmware | Move the hub closer, update the software |
| The key is pressed with difficulty | Incorrect attachment in the subparticle | Weaken the fasteners, level the position |
If the Xiaomi switch periodically falls off the network, try:
- 📶 Move the hub closer to the switch.
- 🔄 Restart the hub (turn off power for 10 seconds).
- 🔧 Update the switch firmware through the application.
💡
If the problem is not solved, reset the switch to the factory settings. To do this, hold the button 10-15 seconds before the beep.
7.Integration with other smart home devices
Xiaomi switches can be linked to other gadgets in the ecosystem to create automated scripts, such as:
- 🔦 Light + motion sensor: the lamp is switched on when motion is detected (via Aqara Motion Sensor).
- 🌡 Light + temperature sensor: the switch is activated when the temperature drops below the specified temperature (for example, for a heater).
- 🚪 Light + door sensor: lighting is turned on when the door is opened.
To customize scripts in the Mi Home or Aqara Home app:
- Go to the Automation section.
- Press «+» and select "Add script».
- Specify a condition (for example, “If the motion sensor is triggered”) and an action (“Then turn on the switch”).
- Save the script.
The switches also support control via voice assistants:
- 🗣 Alice: Alice, turn on the light in the living room».
- 🤖 Google Assistant: OK, Google, turn off the lights in the kitchen».
- 🍎 Siri (via HomeKit if the hub supports integration).