Xiaomi Gateway 3 integration with Alice: step-by-step instructions

Creating a full-fledged ecosystem of a smart home often begins with the purchase of a central control device, and for owners of Xiaomi equipment, this device becomes the gateway version 3. Integration of this equipment with a voice assistant from Yandex opens up great opportunities, allowing you to control sensors, lamps and sockets with voice. The process of linking accounts requires care, but the result is worth it, since you get a single control center for the entire apartment.

In this article, we will take a closer look at every step of the setup, from hardware preparation to complex automation. Xiaomi Multimode Gateway (the full name of the device) supports various communication protocols, making it a universal solution. It is important to understand that without the correct initial configuration in the native application, integration with external services will not be possible.

Preparation of equipment and selection of the gateway version

Before you start any manipulation, you need to make sure that you have the third version of the gateway on your hands, as it is radically different from its predecessors: Visually, the ZNDMWG03LM (model for the global market) or the DNKS13/ZNDMWG02LM (Chinese version) look like a white circular washer with the Mi logo and a glowing rim. It is critical to check the marking on the bottom of the case, since it depends on the choice of the server for registration.

To operate the device, you will need a 5-Volt power supply and a micro-USB connector that comes with it. Also make sure your router supports 2.4GHz Wi-Fi standard, as the 5GHz higher frequency band is not supported by the gateway. If your router is dual-band and combines networks under one name, it can be difficult, so it is better to temporarily split them or create a guest network only at 2.4GHz.

  • ๐Ÿ“ฆ Xiaomi Multimode Gateway (version 3)
  • ๐Ÿ”Œ Micro-USB cable and power adapter 5V/1A
  • ๐Ÿ“ฑ Smartphone with Mi Home app installed
  • ๐Ÿ“ถ Stable Wi-Fi network 2.4 GHz

โš ๏ธ Attention: Chinese version of the gateway (CN) The new version requires the selection of the region โ€œChinaโ€ in the Mi Home app, which can slow down the response of teams, whereas the global version (Global) runs faster on servers in Europe or the United States.

After being physically connected to the outlet, the indicator on the body should light up in orange, signaling a conjugation standby mode. If the indicator color is red, the device resets to factory settings, which is done by pressing the reset button on the end long. Make sure Bluetooth on your smartphone is on, as the initial setup often occurs through a phone. BLE-protocol.

Primary settings in the Mi Home app

The foundation of the entire system is to correctly register the device in the Xiaomi ecosystem. Open the Mi Home app and make sure that the correct region corresponding to your version of the gateway is selected in the top corner. Click on the plus in the top right corner and wait until the system automatically detects a new device nearby. If the automatic search does not work, select the gateway manually from the device directory.

The binding process takes a few minutes and requires a stable Internet connection. During the setup, the application will suggest updating the gateway firmware - be sure to agree to this action. New versions of firmware often contain patches for cloud compatibility bugs, including integration with Yandex.

โ˜‘๏ธ Checking before integration

Done: 0 / 4

Once successfully added, give the device a clear name, such as "Gateway in the corridor" or "Central hub." This name will be broadcast to other systems, so it's best to avoid special characters. Now your gateway is ready for further manipulation, but for now it only manages its own functions.

Activation of the skill in the Yandex application

In order for the voice assistant Alice to manage your smart home, you need to authorize your Xiaomi account in the Yandex or Alice Home app. Open the Yandex app on your smartphone, go to Devices and click the + button to add a new device. In the list of manufacturers, find โ€œXiaomi Mi Homeโ€ or simply โ€œXiaomiโ€.

The system will redirect you to the Xiaomi account authorization page. It is extremely important to enter the username and password from the same account that was used in the Mi Home application during the initial setup stage. If you use two-factor authentication in a Xiaomi account, the confirmation code will come in the Mi Home application or via SMS, it will need to be entered in the Yandex authorization window.

Once you have successfully entered the data, you will see a list of devices found in your Xiaomi account. Select your gateway and any sensors or lamps you want to see on Yandex connected to it. Click Save or Link and the devices will appear in the smart homeโ€™s shared list.

  • ๐Ÿ  Go to the "Devices" section in the Yandex app
  • ๐Ÿ” Find the manufacturer's list of Xiaomi Mi Homeยป
  • ๐Ÿ”‘ Enter your Xiaomi account details (login/password)
  • โœ… Confirm access and select devices for synchronization

๐Ÿ’ก

If the list of devices is empty after binding, check in the Mi Home app if the sensors are hidden in the gateway settings, and try to update the list of devices in Yandex through the profile menu.

Setting up scenarios and automation

One of the main things that you can do with the gateway and Alice is to create complex scenarios that go beyond just turning on a button. In Yandex, you can create automation where the trigger is an event from a sensor connected to the gateway. For example, when you activate a Xiaomi motion sensor, Alice can not only turn on the light, but also say a phrase or run music on a smart speaker.

To set up, go to the Scenarios section of the Yandex app and select If โ†’ Devices. Find your gateway or sensor connected to it. Note that the gateway itself may act as a trigger (for example, when you press a button on the case), but more often peripherals are used.

Type of triggerAlice's actionDifficulty
Motion sensorTurn on the light, say, "Someone has come."Low.
Door opening sensorSend notification to the phoneMedium
Lock button (single)Launch the "Cinema" sceneLow.
Leak sensorSay, "Leaking water!"Tall.

Using logic operators "I" and "OR" allows you to make scenarios smarter, for example, turn on the light only if the motion sensor is triggered And it's night (dusk time), but remember that the execution of complex chains depends on the response speed of cloud servers from both manufacturers.

๐Ÿ“Š Which script do you need most?
Lighting on cotton
Notification of door opening
Voice control of sockets
Automatic light switching off

Managing devices through voice commands

Once set up, you can control devices using voice. Commands can be both direct ("Alice, turn on the light in the hallway") and contextual. Xiaomi Gateway 3 is often used to control groups of devices, so it's convenient to name rooms or zones rather than individual light bulbs.

You can use standard Yandex phrases or create custom phrases in the "My Skills" section, which reduces long commands to one word, for example, the phrase "I'm at home" can run a chain of actions through the gateway: turn off security mode, turn on the lights and open smart curtains.

โš ๏ธ Warning: Voice control only works when there is active internet. If the router loses the connection, local scripts within the Mi Home app may continue to work, but Alice control will become unavailable.

To improve your response reliability, try to formulate commands clearly and pause a little after the word "Alice." It's also helpful to know that the gateway supports temperature control if you have a thermostat attached to it, which allows you to say, "Alice, set the temperature at 23 degrees."

Solving and eliminating errors

During operation, users may encounter a situation where devices become โ€œUnavailableโ€ in the Yandex application, although Mi Home works properly. Most often this is due to desynchronization of authorization tokens. To solve the problem, you do not need to re-link your account completely - it is enough in the Yandex application to remove the device and add it again, or click the โ€œUpdate the list of devicesโ€ button.

Another common problem is the delay in execution of commands, which can be caused by overloading of the Wi-Fi channel or weak signal, the distance between the router and the gateway should not exceed reasonable limits, and the number of intermediate walls should be minimized.

What if the gateway is constantly losing communication?
If the gateway falls off the network regularly, try changing the Wi-Fi channel in the router settings to 1, 6 or 11. Also check if the router is next to the microwave or powerful radiation sources that jam the 2.4 GHz signal. IP-gateway addressing in settings DHCP router.

If voice commands are no longer executed, check the history of commands in the Yandex application. There may be a reason for the error, for example, โ€œThe device does not support this commandโ€ or โ€œThe service is temporarily unavailable.โ€ In the latter case, the problem is on the side of Xiaomi or Yandex servers, and you just need to wait.

  • ๐Ÿ”„ Update the list of devices in the Yandex application
  • ๐Ÿ“ก Check the Wi-Fi signal level at the gateway installation site
  • ๐Ÿ”Œ Reboot the router and the gateway itself
  • ๐Ÿ”“ Check the access rights in your Xiaomi account

๐Ÿ’ก

The stability of a smart home depends on the quality of your local Wi-Fi network and the state of manufacturersโ€™ servers, so access problems are often solved by simply restarting the equipment.

Can you control the Xiaomi Gateway 3 without the Internet, only through Alice?
No, the Xiaomi + Alice connection requires the Internet to work, and the command from your voice goes to the Yandex cloud, is processed there, then transmitted to the Xiaomi cloud, and only then reaches the gateway. Without the Internet, this chain breaks.
Why doesn't Alice see the sensors connected to the gateway?
Chances are, when you link your accounts, you didn't tick specific sensors to sync. Go to Xiaomi's skill settings in Yandex and update your device list to make sure all the sensors are tagged.
Does the Russian voiceover of the gateway notifications through Alice work?
Yes, if you create a script in the Yandex app, where the action is "Say a phrase" or "Play a text", Alice will pronounce it in Russian. The native voice of the gateway itself (the speaker in the device) can only be in English or Chinese, depending on the region.
Do you need a Zigbee hub to work with Aqara sensors?
The Xiaomi Gateway 3 itself is already a hub for Zigbee and Bluetooth protocols. A separate Aqara hub is not needed if your sensors support Zigbee 3.0 protocol or are compatible with the Xiaomi ecosystem. They connect directly to the gateway.