Xiaomi Wireless Switch: How to Connect to a Smart Home in 10 Minutes

What are Xiaomi Wireless Switches and Why You Need Them

Xiaomi Wireless switches (including the Aqara and Mi Home models) are compact devices that allow you to control lighting, sockets and other electrical appliances without wiring. Unlike classic switches, they work on Zigbee or Wi-Fi protocols, integrate into the Mi ecosystem. Home/Apple HomeKit/Google Home and support automation scenarios, like setting up a home to turn off all the lights at a single click, or creating a "Leave the House" scenario that turns off all the appliances when the last occupant leaves.

The main advantages of such switches:

  • πŸ”Œ No wires, they're double-sided taped onto the wall, or they're held on a magnetic stand, and they don't require wall slabs.
  • πŸ“± Control from your smartphone – turn on/off lights from anywhere in the world through the app.
  • πŸ€– Integration with voice assistants – compatible with Alice, Siri and Google Assistant.
  • ⚑ Energy efficiency – consumes a minimum amount of energy (works from batteries to batteries) 2-3 years).

However, before buying it is important to consider the type of connection: some models (for example, Aqara Wireless Switch) require a hub (gateway) to work, while others (for example, Mi Smart Wireless Switch) connect directly over Wi-Fi. It is also worth checking compatibility with your smart home system – not all Xiaomi devices work with Home Assistant or Apple HomeKit without additional plugins.

πŸ“Š What kind of smart home ecosystem do you use?
Mi Home (Xiaomi)
Apple HomeKit
Google Home
Home Assistant
Another.
I don't use it.

What models of Xiaomi wireless switches are: a comparative table

Xiaomi and its sub-brand Aqara are launching several types of wireless switches that differ in design, protocol and functionality, and are currently in use for 2026 with key features:

ModelProtocolNeed a hub?Number of buttonsCompatibilityPrice (roughly)
Aqara Wireless Switch (WXKG11LM)ZigbeeYes.1 or 2Home, Home Assistant, HomeKit (via Hub)1 200 β€” 1 800 β‚½
Mi Smart Wireless SwitchWi-Fi (Bluetooth for settings)No.1Mi Home, Google Home, Alice800 β€” 1 300 β‚½
Aqara Opple Switch (6 buttons)ZigbeeYes.6 (programmable)Mi Home, Home Assistant, HomeKit2 500 β€” 3 500 β‚½
Xiaomi MiJia Bluetooth Wireless SwitchBluetoothNo (but you need a smartphone nearby)1Only Mi Home.600 β€” 1 000 β‚½

The choice of model depends on your tasks:

  • 🏠 If you already have a Xiaomi gateway (like the Aqara Hub), it’s best to take Zigbee devices – they’re more stable and drain the battery less.
  • πŸ“Ά If you want a minimalist solution without a hub, Mi Smart Wireless Switch (Wi-Fi) is fine, but keep in mind that it depends on the stability of your network.
  • πŸ”„ For complex scenarios (e.g., managing multiple devices with a single button), it is better to choose multi-button models like the Aqara Opple.

⚠️ Note: Bluetooth models (such as MiJia Bluetooth Wireless Switch) have a limited range (up to 10 meters) and require a smartphone nearby to work through the Mi Home.

Preparation for connection: what will be needed

Before you start setting up, make sure you have everything you need:

Smartphone with Mi Home app installed (version not lower than 6.0)

Wireless switch Xiaomi/Aqara (check the battery charge)

Hub gateway for Zigbee models (e.g. Aqara Hub) M2 Mi Home Gateway)

A stable connection to Wi-Fi (for the Wi-Fi/Bluetooth model)

Xiaomi account (associated to the same region as the device)-->

Also consider the following nuances:

  • 🌍 The region of the Mi Home account must match the region of the device purchase, for example, if the switch is bought in China and the account is tied to Russia, there may be connection problems. FAQ.
  • πŸ”‹ Batteries: Most models are operated by CR2032 or AAA. Before setting up, check their charge - a discharged battery can interrupt the connection process.
  • πŸ“Ά Hub location: If you use a Zigbee switch, the gateway should be within a radius of 10-15 meters from the device (without thick walls).

If you are connecting a Zigbee device for the first time, it is recommended to first update the gateway firmware to the latest version.

  1. Open Mi Home β†’ Go to the hub section.
  2. Click on three dots in the upper right corner β†’ Device settings β†’ Firmware update.
  3. Wait until the process is complete (don't turn off the power hub!).

πŸ’‘

If you have multiple Zigbee devices, connect them one at a time of 5-10 minutes, and adding them at the same time can cause conflicts on the network.

Step-by-step: how to connect the Xiaomi wireless switch

The connection process depends on the type of device, and below is a general-purpose instruction that is suitable for most models (for example, the Aqara Wireless Switch and Mi Smart Wireless Switch).

Step 1: Installation of batteries and activation of the device

1. Remove the back cover of the switch (usually it is held on the latches or screw).

2. Insert batteries according to polarity (on some models, the contacts are signed as + and βˆ’).

3. For Zigbee models, press and hold the switch button for 5 seconds until the indicator flashes (usually blue or green) and this will put the device in pairing mode.

For Wi-Fi/Bluetooth-models: just insert batteries - the device will automatically go into the connection mode.

Step 2: Adding the device to Mi Home

1. Open the Mi Home app and go to the Devices tab β†’ press + (add).

2. Select the category of switches or enter the model name manually in the search bar.

3. Follow the instructions on the screen:

For Zigbee: Select your gateway from the list.

For Wi-Fi: Connect to a 2.4 GHz network (5 GHz not supported!) and enter a password.

4. Wait for the process to be completed (may take up to 1-2 minutes) Successful connection will confirm the beep or flashing of the indicator on the switch.

What if the Mi Home doesn’t find the device?
If the application does not see the switch: 1. Restart the gateway (turn off power for 30 seconds). 2. Make sure the switch is in pairing mode (the indicator flashes). 3. Check that the smartphone and the gateway are connected to the same Wi-Fi network. 4. Try changing the region in Mi Home (see also the link below. FAQ). 5.If nothing helps, reset the switch to factory settings (press the button 10 seconds before the beep).

Step 3: Set up actions and scenarios

Once connected, the switch will appear in the list of devices, and now it must be linked to specific actions:

1.Click on the device in Mi Home β†’ Select Settings (cog in the upper right corner).

2. In the button management section, select:

  • πŸ”˜ Single pressing – for example, turning on the light.
  • ⏹️ Double-push - shutdown.
  • πŸ”„ Retention – running a script (e.g., β€œNight Mode").

3. To create complex scenarios go to Automation β†’ Scenarios and set up a chain of action:

IF [Aqara switch β†’ single press]


TR [Enable Yeelight lamp + turn on Xiaomi socket]

⚠️ Note: Some models (e.g. Aqara Opple) support up to 6 different commands per button (single, double, triple press). + However, you can only configure 3 actions in Mi Home – you will need Home Assistant or Apple HomeKit for advanced features.

Solving common connection problems

Even if you follow the instructions, you can make mistakes, and let's look at the typical situations and how to fix them:

Problem.Possible causeDecision
Mi Home doesn't find the deviceDisparity between the account and device regionChange the region in the Mi Home settings (see below. FAQ)
The switch is connected, but does not respond to pressingIncorrect button bindingGo to the device settings β†’ "Button management and reconfigure actions
Zigbee device shuts down in a few hoursWeak signal between switch and hubMove the gateway closer or add a Zigbee repetitor (e.g. Aqara Range Extender)
Wi-Fi switches are constantly falling offUnstable Wi-Fi or conflict IPReconnect to the 2.4 GHz network, fix IP router

If the switch is connected but is running late (for example, the lights turn on after 1-2 seconds), the problem may be:

  • πŸ“Ά Overloaded Zigbee Networks – Reduce the number of devices on one hub or add a second gateway.
  • 🌐 Slow Internet – for Wi-Fi models, check the download speed (should be at least 5 Mbps).
  • πŸ”‹ Discharged batteries – even if the indicator is on, replace the batteries with new ones.

πŸ’‘

If the Xiaomi switch doesn’t work after the Mi Home update, try removing it from the app and plugging it back in again, often solving synchronization issues.

Integration with other smart home systems (Home Assistant, HomeKit, Alice)

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

1. Connection to Apple HomeKit

This will require:

  • 🍎 Gateway with HomeKit support – for example, Aqara Hub M2 (The HomeKit mode should be enabled in the firmware).
  • πŸ“± iPhone/iPad latest version of iOS.

Instructions:

  1. In Mi Home, go to the Hub settings β†’ Apple HomeKit β†’ Add to HomeKit.
  2. Scan it. QR-code from the Hub in the application Home (Home).
  3. After synchronization, the switch will appear in the list of HomeKit devices.

2.Integration with Home Assistant

To connect via Home Assistant:

  1. Install the Xiaomi Miio component or Zigbee2MQTT (for Zigbee devices).
  2. In the configuration.yaml file, add:
# For Wi-Fi devices (Miio)


switch:




- platform: xiaomi_miio




host: IP_YOUR EXCLUSIVE




token: YOUR_TOKEN




For Zigbee (via Zigbee2MQTT)



zigbee2mqtt:




devices:




'0x12345678': # Replace with your device ID




friendly_name: 'Xiaomi Switch'

3.Reboot Home Assistant and check for the device to appear in the interface.

3. Management through Alice (Yandex)

For voice control:

  • 🎀 At Mi Home, go to Profile β†’ Settings β†’ Voice assistants β†’ Yandex.
  • Log in through Yandex account and allow access.
  • Tell Alice, "Switch on [the name of the switch]."

⚠️ Note: Voice commands via Alice only work for devices connected to Mi Home. If you use Home Assistant, you will need additional customization via Yandex Smart Home. API.

Where to buy and how to choose: tips before buying

When choosing a Xiaomi wireless switch, pay attention to the following parameters:

  • πŸ”„ Communication protocol: - Zigbee - more reliable, but requires a hub. - Wi-Fi - easier to set up, but depends on the network. - Bluetooth - only for basic tasks.
  • πŸ”‹ Type of food: - CR2032 β€” compact, but the batteries will have to be changed every 1-2 years. - AAA β€” It requires less replacement, but the device is larger.
  • 🎨 Design and mounting: - Magnetic models (e.g. Aqara Wireless Switch) are easy to carry. - Stickers (e.g. Mi Smart Wireless Switch) are harder to unplug without damaging the wall.
  • πŸ”§ Compatibility: - Check if the model works with your system (HomeKit, Google Home, etc.) - Some devices require a Chinese server in Mi Home.

Where to buy:

  • πŸ›’ Official stores - Mi Store, Aqara (guarantee, but higher price).
  • 🌍 AliExpress is cheaper, but it's a risk of a fake.
  • 🏬 M-Video, Citilink, Ozone – there are often shares, but the range is limited.

πŸ’‘

Before buying, check if the switch supports double/triple pressing – this will expand the control options. For example, Aqara Opple allows you to assign up to 6 different commands to a single button.

FAQ: Frequent questions about Xiaomi wireless switches

How to change the region in Mi Home if the switch is not connected?
1. Remove the Mi Home app and install it again. 2. Select China (China) region (even if you have a European model) 3. Sign in with the same Xiaomi account. 4. Try to reconnect the switch. If you can, return the region back to the profile settings. Important: When you change region, all previously added devices will disappear from the application! They will have to be reconnected.
Can I use a single switch to control multiple lamps?
Yes, but the method depends on the model: For Zigbee switches (like Aqara), set up a scene in Mi Home where a single tap will include multiple devices. For Wi-Fi models, create an in-app group (Devices section). β†’ Limitation: up to 8 devices can be combined in one group.
How to reset the Xiaomi switch to factory settings?
For most models: Remove and re-insert the batteries. Press the button for 10-15 seconds until the indicator blinks quickly (3 times). Release the button and the device will reset. For Aqara Opple: Press and hold both buttons simultaneously for 5 seconds. Wait for the beep.
Why does a switch discharge batteries in a month?
Possible causes: πŸ“‘ Weak signal. Zigbee/Wi-Fi β€” The device spends a lot of energy on repeated attempts to communicate. πŸ”„ Frequent pressing – mechanical contacts wear out, increasing consumption. 🧲 Low-quality batteries - use alkaline batteries (like Duracell or Energizer) Solution: Move the hub closer to the switch or replace the batteries with lithium (CR2032 Lithium-marked).
Can I connect a Xiaomi switch without the internet?
Yes, but with limitations: πŸ”„ Zigbee models will work locally via a hub (for example, turn on the light on press), but control from a smartphone and scenarios will require the Internet. πŸ“Ά Wi-Fi models without the Internet will not work – they need to connect to the Xiaomi cloud.