Xiaomiβs zero-wire smart switches are a modern lighting automation solution that requires proper installation and tuning. Unlike classic switches, these devices require constant power, which is provided by a zero-wire connection. Without them, the smart module will not be able to run in standby mode, receive commands from a smartphone or interact with other devices in the Mi Home ecosystem.
In this article, we will learn how to connect a Xiaomi zero wire switch yourself, even if you have never had any wiring, what tools you will need, how to determine the zero and phase wires, and how to avoid typical installation errors, and focus on setting up the device in the Mi Home app and integrating with voice assistants.
Important: Electricity requires safety, and if you are not sure of your skills, it is better to entrust the installation to a professional electrician. The article provides general guidelines, but the specific circuitry may depend on the switch model (for example, Aqara Wall Switch or Xiaomi Mi Smart Wall Switch) and the characteristics of your electrical wiring.
What Xiaomi switches require zero wire?
Not all Xiaomi smart switches need zero wire connection, and typically zero wire requirement occurs for devices that:
- πΉ Operate in a constant power mode (for example, to control via Wi-Fi or Zigbee without batteries).
- πΉ Support dimming (brightness adjustment) of lamps.
- πΉ Have a built-in display or display (e.g. Aqara Wall Switch) H1).
- πΉ Equipped with a relay module that requires power to hold the state (on/off).
Among the popular models that require zero wire, we can distinguish:
- π Xiaomi Mi Smart Wall Switch (neutral wire required)
- π Aqara Wall Switch D1 (single- and two-key versions)
- π Aqara Wall Switch H1 (sensory)
- π Xiaomi Mi Wireless Switch (wireless models do not require zero, but their functionality is limited)
If your model is not listed, check the specifications on the official website or in the instructions. Usually, the requirement for zero wire is specified in the section "Installation requirements" or "Electric parameters".
Connection tools and materials
Before you start, you have to prepare everything you need, and without the right tools, you're at risk of damaging the wiring or the device itself.
| Tool/material | Appointment | Note |
|---|---|---|
| Indicator screwdriver | Verification of phase availability | It's a security requirement! |
| Flat and cross screwdriver. | Dismantling the old switch, fastening the new | Size up by mounting. |
| Bokoroska/snippets | Cutting and cleaning of wires | Preferably with isolated handles |
| Strain or shrink tube | Insulation of compounds | Thermal shrink tube is more reliable |
| Multimeter (optional) | Accurate testing of voltage and resistance | Helps with complex schemes |
You may also need to:
- π§ Retardant (if the old one is damaged or not fitting in size).
- π§ Wire extension (if there are not enough regular wires for connection).
- π§ Marker or stickers for marking wires.
- π§ Lantern (working in a rosette without light is uncomfortable).
Important: If you have aluminum wiring in your house and the switch is designed for copper wires, use special terminals or adapters. The direct connection of aluminum and copper leads to oxidation and overheating!
Step-by-step instruction: connecting a zero-wire switch
Now, to the process itself, follow the instructions carefully to avoid mistakes.
Turn off the machine on the shield.|Check the absence of voltage indicator|Dismantling the old switch|Clean the wires by 5-7 mm|Mark the wires (phase, zero, load)-->
Step 1: Turn off the electricity and remove the old switch
First of all, turn off the machine that controls the lighting line in your room. Don't just limit yourself to the switch, it breaks the phase, but zero stays on!
Take the keys off the old switch (usually on the latches) and unscrew the screws that hold the mechanism in the rosette. Gently pull the device out and inspect the wires. If the wires are short, you can lengthen them a little, but not more than 10-15 cm.
Step 2: Determine phase and zero
Turn the machine back on, and with the indicator screwdriver, find the phase wire. When you touch the phase, the indicator will light up. Zero and ground (if any) do not cause glow. You can use a multimeter for accuracy:
- π Set the variable voltage measurement mode (~220V).
- π One probe to the phase, the other to the supposed zero. ~220V.
- π If you touch the phase and the ground, the stress will be the same (in modern homes).
- π There will be no tension between zero and the earth.
After checking, turn off the machine again and mark the wires.
- π΄ L β phase (usually red or brown wire).
- π΅ N = zero (blue or blue).
- π’ PE β earth).
- π‘ Load - load (goes to the lamp, can be of any color).
π‘
If the rosette doesn't have zero wire, and the switch requires it, you can reach zero from the nearest outlet. 3Γ1.5 But it's better to trust an electrician with this installation.
Step 3: Connecting wires to a smart switch
The connection scheme depends on the model, but the general principle is as follows:
- Connect the phase wire (L) to the L or Live terminal on the switch.
- Connect the zero wire (N) to the terminal N.
- Connect the Load (Load) to the terminal L1 (or L2, double-key).
- If there's land (PE), connect it to the appropriate terminal (usually indicated by a symbol) β).
On the back of the Xiaomi switch, there's usually a connection circuitry. for example, for the Aqara Wall Switch D1 It looks like this:
L -----[SWITCH]----- L1 (to the lamp)
N ------[SWITCH]-------- (power module)Once connected, carefully place the wires in the rosette so that they do not overflex and touch each other.
Step 4: Installation in the rosette and check
Make sure all wires are securely secured and do not fall out of the terminals.
- The keys must physically turn on/off the lights.
- The indicator on the switch (if any) must be lit or flashing.
- The device must emit an audible signal or flash when turned on (in some models).
If something doesn't work, turn off the machine right away and check if the wires are connected correctly. A common error is the entangled phase and zero, which causes the switch to not turn on.
What if the switch does not respond to the press?
Setting up the switch in the Mi Home app
Once you've successfully connected, you need to add a switch to the Xiaomi ecosystem.
- Install the Mi Home app (available for Android and iOS).
- Register or log in to your account.
- Press + β Add the device.
- Choose the category of Smart Home β Switches.
- Follow the instructions on the screen (usually hold the button on the switch until the indicator flashes).
After the device has been added:
- π± Name a switch (e.g., "Light in the hall").
- π± Set up the room in which it is installed.
- π± Check the work through the application (on/off).
- π± If necessary, create automation (for example, turn off the light on a timer).
If the switch is not an app, try:
- π Restart router (sometimes devices donβt connect due to network issues).
- π Make sure the switch is in pairing mode (flashing the indicator).
- π Check if your router supports Zigbee protocol (for models on this protocol).
π‘
If you have a two-key switch, in Mi Home, it can appear as two separate devices, and you can combine them into a single group for synchronous control.
Integration with voice assistants and other devices
One of the benefits of Xiaomi's smart switches is the ability to control voice and create automation scenarios. Here's how to set it up:
Manage via Alice, Google Assistant or Siri
For voice control:
- In Mi Home, go to the switch settings.
- Select Voice Control.
- Connect your Xiaomi account to Yandex.Station, Google Home or Apple HomeKit (depending on the ecosystem).
- Say a command, such as, "Alice, turn on the light in the room."
If the voice assistant does not recognize the device, check:
- π The correct name of the switch in Mi Home (without special characters).
- π Availability of updates in the assistant appendix.
- π Connecting Xiaomi account to the assistant service.
Creating automation
You can set up automatic scripts in Mi Home, for example:
- β° Schedule: Turn off the lights at 23:00.
- π Motion sensor: turn on the light when motion is detected.
- π According to the state of the other device: turn off the lights if the curtains are closed.
To create automation:
- In Mi Home, go to Automation section.
- Click + β Add automation.
- Select a condition (e.g. Time or Device).
- Select the action (on/off switch).
- Save the script.
An example of useful automation: If you leave home, all Xiaomi switches can be turned off with a single button through No One Mode.
Common Mistakes and How to Avoid Them
Even with careful installation, you can make mistakes that will cause the switch to fail or even damage the wiring, and here are the most common ones:
β οΈ Warning: If the switch warms or smells of burning after it's connected, immediately disconnect it from the mains! This is a sign of short circuit or overload. Check the correct connection of the wires and the integrity of the insulation.
| Mistake. | Effects of consequences | How to fix it |
|---|---|---|
| Phase and zero are confused. | The switch does not turn on or does not work correctly. | Swap wires in the terminals |
| Weak contact in the terminals | Light flickering, heating the switch | Reconnect the wires, tighten the screws. |
| There's no zero in the rosette. | The switch is not switched on, there is no communication with Mi Home | Strip zero from the socket or use a model without zero |
| Use of the LED-low-power | Lights flickering, spontaneous switching on | Install a ballast resistor or use power lamps >10 Watts. |
Another common problem is that the switch is running, but it's not connecting to the Mi Home.
- πΆ Weak Wi-Fi or Zigbee signal (move router closer or use repeater).
- π Device not in pairing mode (hold the button 5-10 seconds until blinking).
- π§ Incompatible firmware (update the Mi Home app and breaker firmware).
If nothing works, try resetting the switch to factory settings, which usually requires holding the 10-15 second button until the beep is heard.