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.
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.
- Open Mi Home β Profile β Settings β Region.
- Choose China (China) or Russia (Russia) depending on the firmware of the devices.
- Restart the app.
βοΈ Preparation for connection
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.
- 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").
- 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).
- 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?
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.
- 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).
- 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.
- 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:
- Open Mi Home β Profile β Automation β Add.
- Choose If β The device β [Your button] and specify the type of press (e.g., "Double press").
- 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:
- Open Yandex. β Services β Smart home. β routines.
- Click Create a routine and select the trigger: Voice command (e.g., "Alice, good morning"). Device β Select your button and type of press.
- 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 cause | Decision |
|---|---|---|
| No button added to Mi Home | Incompatibility of regions or firmware | Change region to China in Mi Home settings and update gateway |
| Alice doesn't see the button after synchronization | The device is not tied to the main account | Remove 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 gateway | Move the gateway closer to the button or reduce the number of devices on the network |
| Double pressing is not recognized. | Incorrect settings in Mi Home | Reconfigure actions for each type of click in the device card |
| The button periodically "falls away" from the gateway | Interference 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?
Why does Alice see the button but she doesn't respond to the press?
How to reset the Xiaomi button to factory settings?
Can I use a button for different teams depending on the time of day?
Which version of Xiaomi gateway is best for working with Alice?
π‘
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.