Connecting the Xiaomi button to Alice via the gateway: full instructions with pictures and tips

Xiaomi's smart buttons are compact devices that turn ordinary actions into automated scenarios. But their real power is revealed when integrated with Yandex's Alice voice assistant. With the Mi Home Gateway, you can link the physical press of a button to voice commands, creating convenient smart home control chains. For example, a single tap can turn on the lights, start the kettle at the same time and tell Alice you're coming home.

But the connection process often raises questions: how to add a button to the Mi Home ecosystem, configure a gateway to interact with Alice and avoid typical errors? In this article, we will analyze the step-by-step instructions based on the latest updates from 2026, and also consider alternative integration methods for devices without official support, focusing on solving problems with synchronization and customizing scenarios.

What Xiaomi buttons are compatible with Alice through the gateway

Not all Xiaomi smart buttons can work directly with Alice, but the main requirement is support for the Zigbee protocol and compatibility with the Mi Home Gateway (or its counterparts, for example, the Aqara Hub).

  • πŸ”˜ Xiaomi Mi Smart Button (round, model) WXKG01LM) β€” Basic version with one action (single/double/long press).
  • πŸ”˜ Xiaomi Mi Wireless Switch (square, model) WXKG11LM) β€” Supports up to 3 different commands (press, hold, double press).
  • πŸ”˜ Aqara Mini Switch (model) WXKG12LM) β€” compact version with magnetic base and advanced scenarios.
  • πŸ”˜ Xiaomi Mi Cube (model) MFKZQ01LM) β€” cube with 6 sides and gesture support (shaking, turning).

Important: buttons without Zigbee support (such as the Bluetooth version) will not connect to the gateway and thus to Alice.

Also consider the gateway version:

- Mi Home Gateway 3 (model) ZNDMWG03LM) β€” Supports up to 128 devices, including buttons.

- Aqara Hub M2 β€” Alternative with advanced automation capabilities.

Gateways of the first version (ZNDMWG02LM) They may not support new button models.

πŸ“Š What Xiaomi button do you use?
Xiaomi Mi Smart Button
Xiaomi Mi Wireless Switch
Aqara Mini Switch
Xiaomi Mi Cube
The other one/don't know

Preparation: What will be needed to connect

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

  • πŸ“± Smartphone with installed application Mi Home (version no lower) 6.0.100 for Android/iOS).
  • 🌐 Stable Internet connection (Wi-Fi 2.4 GHz – gateway does not work with 5 GHz!).
  • πŸ”Œ Mi Home Gateway or Aqara Hub connected to the outlet and network.
  • πŸ”˜ Xiaomi smart button (charged if it’s a battery model).
  • πŸ—£οΈ Yandex account with Alice tied and Yandex app installed (to customize skills).

Critical: The gateway must be tied to the same region in the Mi Home as the button. If you bought the devices in different countries (e.g., the gateway from China and the button from Europe), they may not be able to link.

  1. Open Mi Home β†’ Profile β†’ Settings β†’ Region.
  2. Choose China (China) or Russia (Russia) depending on the firmware of the devices.
  3. Restart the app.

β˜‘οΈ Preparation for connection

Done: 0 / 5

If you don’t have a gateway, but you have a Xiaomi Mi Box or a Mi TV. TV With Google Assistant, you can try an alternative way to integrate through the IFTTT However, this method requires additional skills and does not guarantee stable work with Alice.

Step-by-step instruction: connecting the button to the gateway

So we start by adding a button to the Mi Home ecosystem, and this is a must-do phase, and Alice won't see the device without it.

  1. Activate the Gateway's pairing mode: Open Mi Home and select your gateway from the device list. β†’ Add the device. Click Add the Zigbee device and wait for the beep (gateway says Ready to add").
  2. Connect the button: Press and hold the button on the device (usually 5-10 seconds) until the indicator blinks. In Mi Home, select the device type: Smart button or Wireless Switch (depending on the model). Wait for the process to be completed (gateway sound and device added message).
  3. Set up actions: After adding, open the button card in Mi Home. Set up actions for each type of press (single, double, long). β†’ Turn on the lights. Double press. β†’ Activate the scenario β€œLeaving".

If no button is added:

Check the distance to the lock (maximum 10 meters without obstacles).

Make sure the battery is not discharged (in some models, the indicator does not show a low charge).

Reset the gateway (turn off power for 30 seconds).

What if the gateway doesn’t see the button?
1. Check that the button supports Zigbee (the Zigbee Alliance logo should be on the box). 2. Update the gateway firmware in Mi Home: Gateway settings β†’ Software Update 3. Reset the button to factory settings: hold the button 20 seconds to the beep (if you have a speaker). 4. Try adding a button through the alternative Aqara Home app (sometimes it works more stable).

Connection with Alice: setting up the skill "Smart home"

Now that the button is connected to the gateway, you need to link it to Alice, and this uses Yandex's official smart home skill.

  1. Skill activation: Open the Yandex app on your smartphone. Go to the Services β†’ Smart home. β†’ Add a device. Select Mi Home (Xiaomi) from the list of supported systems. Sign in to your Mi Home account (use the same data as you use the app).
  2. Device Synchronization: Once logged in, Yandex will automatically scan the devices associated with your Mi Home account. Find your button (it can be displayed as Wireless Switch or Smart Button) in the list. Click Add to Alice and confirm access.
  3. Testing: Tell Alice, "Alice, turn on the smart home" or "Alice, show me my devices." Make sure the button is displayed in the list and responds to commands.

⚠️ Note: If the button does not appear in the list of Yandex devices, check: - Is the gateway tied to the same Mi Home account as the button. - Is the gateway firmware updated (the version at least lower in Mi Home should be) 1.4.1_176 gateway 3). - Are you using it? VPN or proxy – this can block synchronization with Yandex servers.

Once you've added it successfully, you can set up voice scripts, like:

- "Alice, activate the movie mode" β†’ The button sends a command to turn off the lights and turn on the TV.

- "Alice, I'm leaving" β†’ The button starts the "Gone" script (turns off all sockets, activates security).

Creation of automated scenarios

Just plugging a button into Alice is just the beginning, and the real magic starts when you link her to other devices through scripts.

Method 1: Scripts in Mi Home

In the Mi Home application, you can create a chain of actions that will start when you press the button:

  1. Open Mi Home β†’ Profile β†’ Automation β†’ Add.
  2. Choose If β†’ The device β†’ [Your button] and specify the type of press (e.g., "Double press").
  3. In the To section add action: πŸ’‘ Turn on/off the lights (Yeelight or Philips Hue). πŸ”Œ Control of the socket (Xiaomi Smart Plug). πŸšͺ Activate the door sensor (Aqara Door Sensor).

Save the script and test it by pressing the button.

Method 2: Voice commands through Alice

In the Yandex application, you can create routines (sequences of commands) that will be launched by voice or through a button:

  1. Open Yandex. β†’ Services β†’ Smart home. β†’ routines.
  2. Click Create a routine and select the trigger: Voice command (e.g., "Alice, good morning"). Device β†’ Select your button and type of press.
  3. Add action: πŸ“’ Play music on the column. β˜• Turn on the kettle (Redmond or Xiaomi Viomi). πŸ“± Send notification to the phone.

⚠️ Note: If the script doesn’t work, check: – Are there any conflicts between the scripts in Mi Home and Yandex (for example, the same button press is assigned to different actions). – Are all devices in the script connected to the same Mi Home account. - Is the limit of devices in the gateway exceeded (maximum 30–50 devices per hub, depending on the model).

For advanced users: if standard features are not enough, you can use Home Assistant with the Xiaomi Mi Home plugin.This will allow you to create complex automations with conditions (for example, "if the button is pressed And the temperature is below 20".Β°C, then...").

πŸ’‘

If the button is delayed, try moving the gateway closer to the router or using the Mesh network (for example, through additional Aqara gateways).

Common mistakes and their solution

Even with the correct following of the instructions, problems can arise, and we have collected typical errors and ways to fix them:

Problem.Possible causeDecision
No button added to Mi HomeIncompatibility of regions or firmwareChange region to China in Mi Home settings and update gateway
Alice doesn't see the button after synchronizationThe device is not tied to the main accountRemove the button from Mi Home and add again using the same account as Alice.
The button is triggered with a delay (2-5 seconds)A weak Zigbee signal or an overloaded gatewayMove the gateway closer to the button or reduce the number of devices on the network
Double pressing is not recognized.Incorrect settings in Mi HomeReconfigure actions for each type of click in the device card
The button periodically "falls away" from the gatewayInterference from other Zigbee devices (e.g. lamps) IKEA Tradfri)Change the Zigbee channel in the gateway settings (optimum 11, 15 or 20)

If none of these methods worked, try resetting the button:

For Mi Smart Button: Hold the button for 20 seconds until the beep.

For Mi Wireless Switch: Press and hold until the indicator flashes (about 10 seconds).

After resetting, repeat the connection process from scratch.

Alternative ways to connect without a gateway

What if you don’t have a Mi Home Gateway but a Xiaomi button? There are several workarounds, although they require additional devices or skills:

  • 🌐 Home Assistant: Install Home Assistant on Raspberry Pi or NAS. Connect the button via the Xiaomi Miio plugin (for Bluetooth versions) or Zigbee2MQTT (for Zigbee devices with USB-adapter CC2531). Integrate Alice with the Yandex Smart Home component.
  • πŸ”„ Through IFTTT (Bluetooth buttons: Create an applet in IFTTT With the Xiaomi Button trigger, select Webhooks as the action to send a request to Yandex Smart Home (required) API-key).
  • πŸ“± Through Tasker (Android): Use the AutoNotification plugin to intercept notifications from the button. Set up a task in Tasker, which will send a command to Alice via HTTP-request.

⚠️ Warning: Alternative methods may violate Yandex’s security policy (e.g., using unofficial methods) API). This can lead to account blocking, and we recommend that you resort to them only if there is no official support.

For Bluetooth buttons (such as the Xiaomi Mi Bluetooth Button), there is no formal integration with Alice, in which case the only reliable way is to buy a gateway or switch to the Zigbee version of the device.

FAQ: Frequent questions about connecting Xiaomi button to Alice

Can I connect the Xiaomi button to Alice without a gateway?
Xiaomi buttons only communicate with Alice via the Mi Home Gateway or Aqara Hub, as they use the Zigbee protocol. Alternative methods (e.g., Home Assistant) require additional hardware and skills.
Why does Alice see the button but she doesn't respond to the press?
The reasons may be: the button is not tied to the script in Mi Home or Yandex; conflict between automations (for example, one tap is assigned to two different actions); weak signal between the button and the gateway (check distance and interference); Solution: reconfigure the actions for the button in both applications and test the connection.
How to reset the Xiaomi button to factory settings?
The reset method depends on the model: Mi Smart Button (WXKG01LM): Hold the 20 seconds button to the beep. Mi Wireless Switch (WXKG11LM): Press and hold for 10 seconds until the indicator flashes.Aqara Mini Switch (WXKG12LM): press the button 5 times in a row. Once reset, the button will be ready to reconnect.
Can I use a button for different teams depending on the time of day?
Yes, this is possible with conditional scenarios in Mi Home or Yandex: In Mi Home, create two scenarios for a single button with the condition Time (for example, "If pressed and time from 8:00 to 20:00"). In Yandex, set up a routine with a time trigger and add a button as an additional condition. Example: in the morning, pressing includes a coffee maker, and in the evening – a night light.
Which version of Xiaomi gateway is best for working with Alice?
Recommended models: Mi Home Gateway 3 (ZNDMWG03LM) β€” The best choice for most users (supports up to 128 devices, there is a connector for wired sensors). M2 β€” Best alternative with advanced automation capabilities and HomeKit support (ZNDMWG02LM) They are outdated and may not support new devices.

πŸ’‘

For stable button operation with Alice, use the Mi Home Gateway 3 or Aqara Hub gateway. M2, Update your firmware to the latest version and configure scripts in one application (either in Mi Home or Yandex) to avoid conflicts.