How to connect a Xiaomi switch with a display: from installation to settings in Mi Home

Introduction: Why do you need a switch with a display from Xiaomi?

Xiaomi’s display switches (Aqara, Yeelight, Mi Home brands) are not just a light control, but a full-fledged smart home gadget. They combine touch control, temperature, time, notifications, and even integration with voice assistants. But their connection often raises questions: how to connect wires correctly, configure the app and avoid errors?

In this article, we will discuss all the stages from the choice of the model to the final setup of automation (220V/50Hz) and bypassing geo-locking restrictions in the Mi Home app. If you've never worked with wiring, some steps will require the help of an electrician - but much of the process is available even to beginners.

Model Choice: Which Xiaomi Display Switch to Buy?

There are several different lines of switches on the market, and they're very different in their capabilities.

  • πŸ”Ή Aqara Smart Wall Switch D1 (with display) β€” supports Zigbee 3.0, works without a hub, shows temperature and humidity. Suitable for single-key and two-key circuits.
  • πŸ”Ή Yeelight Smart Touch Panel, Wi-Fi touchpad, controls lights, curtains and scripts. Requires neutral wire (N).
  • πŸ”Ή Mi Home Smart Wall Switch (Pro) - budget version with Bluetooth Mesh, but without HomeKit support.
  • πŸ”Ή Aqara Opple 6-Button Scene Switch is not a full-fledged switch, but a screen panel for controlling scenes (without direct connection to lamps).

For Russian users, the voltage parameter is critical: all of the listed models support 110-240V, but Yeelight may require grounding (PE). Also check if there is Russian firmware in the kit – some batches come only with a Chinese interface.

⚠️ Note: Models with Zigbee (e.g. Aqara) D1) They require a hub (Aqara Hub or Mi Home Gateway) to operate off-LAN, and without a hub, they will only function as normal switches.

ModelProtocolNeed a hub?Display.Price (2026)
Aqara D1 (single-key)Zigbee 3.0Yes.Color, 1.5”~3 500 β‚½
Yeelight Touch PanelWi-Fi 2.4GHzNo.Colored, 2.1”~4 200 β‚½
Mi Home Pro (two keys)Bluetooth MeshNo.Monochrome~2 800 β‚½
πŸ“Š What Smart Home Protocol Are You Using?
Wi-Fi
Zigbee
Bluetooth
Thread
Nothing.

Preparation for installation: tools and safety

Before installing the switch, be sure to turn off the power on the shield!

  • πŸ”§ Indicator screwdriver - to check the absence of voltage.
  • πŸ”§ Flat/cross screwdriver - for dismantling the old switch.
  • πŸ”§ Climbing terminals (if the wires are not cleaned).
  • πŸ”§ Voltage Tester – to check phase and zero.
  • πŸ”§ Insulation or shrink tube - for insulation of compounds.

An important point: Xiaomi switches require a neutral wire (N) in the junction box. In older homes (especially in the USSR), neutral is often absent, in which case you will have to pull a new cable or choose a model without a display (for example, Aqara Wireless Switch).

⚠️ Note: If you don't have a neutral wire in your wiring, and you're trying to connect the Yeelight Touch Panel, the display won't work. ~220V between phase (L) and neutral.

Turn off the power on the shield.|Check the absence of voltage indicator|Take a picture of the current connection scheme|Prepare tools and tape|Check for neutral wire (N)

-->

Connection schemes: step-by-step instructions

The circuitry depends on the type of switch and the number of keys. Let's look at the two most common options:

1. Single-key switch (e.g. Aqara) D1)

Procedure:

  1. Take off the old switch without disconnecting the wires. Take a picture of their location.
  2. Determine phase (L) and zero (N) with a tester. In the Xiaomi switch, phase should go to the terminal L, zero to N.
  3. Connect the load (lamp) to the terminal L1 (or LOAD).
  4. Lock the switch in the rosette and turn on the power.

2. Two-key switch (e.g. Mi Home Pro)

There's a second channel added here (L2):

  • πŸ”Œ Phase (L) is connected to the common terminal.
  • πŸ”Œ Neutral (N) - to the corresponding terminal.
  • πŸ”Œ Load 1 (e.g. chandelier) - to L1.
  • πŸ”Œ Load 2 (e.g., slabs) - to L2.

For models with Zigbee (for example, Aqara), after connecting the power will require a link to the hub. for Wi-Fi models (Yeelight) – connection to the network through the application.

What if I confused phase and zero?
If you plug phase into the terminal N and zero into the L, the switch may not turn on or the display will flash. In this case: 1. Turn off the power again. 2. Change the wires in places. 3. Check the voltage with the tester - L should be ~220B relative to N.

Setup in the Mi Home application: step-by-step guide

After installation, the switch must be added to the Xiaomi ecosystem. Instructions are relevant for the Mi Home application (version 6.5).+):

  1. Open Mi Home and go to Devices β†’ Add Device.
  2. Select the switch category and find your model (e.g. Aqara Wall Switch). D1).
  3. Follow the instructions on the screen: πŸ“Ά For Wi-Fi models: Connect to 2.4GHz (5GHz not supported!) and enter a password. πŸ“‘ For Zigbee models: click the button on the hub (Aqara Hub) to search for devices.

Connected

If the device is not located:

  • πŸ”„ Restart the hub (if Zigbee is used).
  • πŸ”„ Make sure the switch is powered (the display should flash).
  • πŸ”„ Check that the phone is connected to the same Wi-Fi network as the hub.
  • πŸ”„ Update the Hub's firmware through Settings β†’ Update of the PO.

πŸ’‘

If the Aqara switch isn’t added to the Mi Home, try the Aqara Home app – it often works more stable with Zigbee devices.

Setup of automations and scenarios

The main advantage of the switch with the display is the ability to create automation.

  • πŸŒ… Turn on the lights on schedule (simulation of presence).
  • 🌑️ Show the temperature on the display when touching.
  • πŸ”Š Control the switch with your voice via Alice or Google Assistant.
  • πŸšͺ Turn on the light when opening the door (if you have an Aqara Door Sensor).

How to set up automation in Mi Home:

  1. Go to Profile. β†’ Automation β†’ Create.
  2. Select a condition (e.g. Time or Motion Sensor).
  3. Add Action: Device Management β†’ Your switch. β†’ Turn on.
  4. Save the script and test it out.

Additional display settings are available for Yeelight models:

  • 🎨 Change in color scheme.
  • πŸ•’ Time or weather display.
  • πŸ”” Set up notifications (for example, about missed calls).

πŸ’‘

To keep automation running smoothly, make sure that the hub (Aqara Hub) is connected to the Internet via cable, not Wi-Fi, which will reduce delays in execution of scripts.

Common mistakes and their solutions

Even with the right connection, there can be problems, and here are the most common ones and ways to fix them:

Problem.Possible causeDecision
Display not switched onThere is no neutral wire (N)Check the wiring with a tester or use a model without a display
The switch is not added to the Mi Home.The Hub's outdated firmwareUpdate the Hub through Settings β†’ Update of the PO
The lamp flashes when it's off.Bad contact at the terminal L1Reconnect the wires and tighten the terminals
The display shows Chinese charactersThe Wrong Region in Mi HomeChange the region to Russia in the account settings

If the Aqara switch is periodically disconnected from the hub:

  1. Check the distance between the devices (maximum 10-15 meters in line of sight).
  2. Make sure there is no interference from other Wi-Fi networks (use channels 1, 6 or 11 on the router).
  3. Add a Zigbee repetitor (e.g., Aqara Range Extender) to the network.

⚠️ Attention: If the switch is plugged in the house, the load on the line is probably exceeded β€” 1000W (for filament lamps) or 300W (light-lamp).

Integration with other smart home systems

Xiaomi switches can be connected not only to Mi Home, but also to other platforms:

  • 🏠 Home Assistant – through Xiaomi Miio integration (for Wi-Fi models) or Zigbee2MQTT (for Zigbee).
  • 🍎 Apple HomeKit – Aqara Hub is required M2 (Supports HomeKit from the box).
  • πŸ€– Google Home – via the Mi Home app (you need to link accounts).
  • 🌐 Yandex Alice – through Mi Home or Yandex IoT.

For integration with Home Assistant:

  1. Install the Xiaomi Miio component via HACS.
  2. Get your device token using the Mi Home Token Extractor app.
  3. Add the device to configuration.yaml: switch: - platform: xiaomi_miio host: 192.168.1.100 # IP your token switch: YOUR_TOKEN_HERE name: "Xiaomi Switch"

HomeKit (if you use Aqara Hub) M2):

  1. Open the Aqara Home app.
  2. Go to Settings. β†’ HomeKit.
  3. Scan it. QR-code from the hub and add it to Apple Home.

FAQ: Answers to Frequent Questions

Can I connect a Xiaomi switch without a neutral wire?
No, all models with display (Aqara) D1, Yeelight requires a neutral (N) to power the screen. Alternatively, use switches without a display (such as the Aqara Wireless Switch) that run on batteries.
How to reset the switch to factory settings?
To reset, hold the main switch button for 10 seconds until the display blinks. For Aqara models, you can also reset via the hub: Device settings β†’ Delete.
Why Xiaomi's switch doesn't work with LED-lamp-lamp?
Some of them LED-The lamps have low power consumption, which is why the switch does not fix the load. 5W. Connect the resistor parallel to the lamp 100kom/2W. Update the switch firmware.
How to change the language of the display to Russian?
Display language varies by region in Mi Home: Open Mi Home and go to Profile β†’ Settings β†’ Region. Choose Russia. Remove and add the switch again. If there's no Russian, update the firmware.
Can you control a switch without the internet?
Yes, but with reservations: πŸ”„ Wi-Fi models (Yeelight) work locally if the phone and switch are on the same network. πŸ”„ Zigbee models (Aqara) require a hub but are managed without internet over a local network. πŸ”„ Remote control (outside the home) is possible only with an Internet connection.