Xiaomi Mijia 2: How to connect a thermometer to Alice

The modern smart home is impossible to imagine without accurate climate sensors, and the Xiaomi Mijia 2 (LYWSD03MMC) has become a real standard of accessibility and quality in this niche.This compact electronic ink gadget (E-Ink) can run for months on a single battery, transmitting temperature and humidity data. However, for many users, the question of integrating Chinese devices into the Yandex ecosystem to control voice comfort remains pressing.

Directly connecting the thermometer to Yandex Stations or Yandex app out of the box is often difficult, as communication protocols may differ. In most cases, the device works through the Mijia or Xiaomi Home platform, which do not always have native synchronization with the voice assistant Alice. The solution lies in choosing the right gateway or using middleware.

In this guide, we will look at all the possible ways to make your sensor friends with a voice assistant, and we will look at both the official methods available to the average user and more advanced options for enthusiasts who want to gain maximum control over their data.

Features of Xiaomi Mijia 2 and compatibility

Before you start setting up, it’s important to understand the technical features of the Xiaomi Mijia 2. Unlike older versions, this thermometer uses Bluetooth Low Energy (BLE) to transfer data, which means that it needs a Bluetooth-enabled Gateway to remotely monitor and integrate with cloud services.

The main challenge is that the encryption protocol can vary depending on the binding region and the firmware version, and the device is officially sharpened to work in the Mi Home app with the China region, which sometimes creates barriers to integration with Western or local smart home services.

However, the device’s functionality allows real-time readings. A stable connection between the gateway and the router is critical to a smart home system, and without that bridge, data will remain locked on the sensor itself or in the phone’s local cache.

⚠️ Note: Not all Xiaomi Mijia 2 firmware versions work equally well with third-party integrations. Before buying or starting a setup, check firmware version in the Mi Home app.

Energy efficiency is also worth noting: With the E-Ink screen and rare packet transfer, the CR2032 battery lasts up to a year, but frequent status requests through a voice assistant could theoretically increase charge consumption if the gateway constantly polls the sensor.

📊 What kind of gateway Xiaomi has?
Xiaomi Multimode Gateway
Aqara Gateway
Xiaomi router with Bluetooth
Planning to buy

Equipment and training required

To succeed, you'll need a minimal set of equipment. The basic element is the LYWSD03MMC sensor itself, which usually comes with a protective film on the screen and a battery pack. Make sure the insulation tape is removed before work begins.

The second key component is the gateway, which could be the official Xiaomi Multimode Gateway, the Aqara gateway (if it supports Xiaomi’s Bluetooth protocol), or even some Xiaomi router models with a built-in Bluetooth module.

You also need a smartphone with Mi Home or Aqara Home installed. To expand functionality and integrate with Yandex, you may need a separate integrator application, such as Home Assistant or specialized skills, if they are available in your region.

  • 📱 Smartphone with Android or iOS for initial configuration.
  • 🌐 Stable Wi-Fi connection with access to the global network.
  • 🔑 Xiaomi Account (Mi Account) registered in advance.
  • 🏠 A gateway connected to a network and operating in a pairing mode.

It is important to determine the server on which the data will be stored in advance, and the choice of region in the Mi Home application (China or Europe) can affect the response speed and availability of certain integration features.

Method 1: Official integration through Mi Home

The easiest way to do this, but it doesn't always work, is to try to link accounts directly. There's a Devices section in the Yandex app where you can add a device from Xiaomi, which requires that your thermometer be added to the Mi Home app.

To start, open the Yandex app and go to the smart home management section. Press the add-on button and search for "Xiaomi." The system will prompt you to log in to your Mi Account. Once you have successfully logged in, you'll start syncing devices.

If the integration is successful, the thermometer will appear on the list of Yandex devices, but it often happens that temperature and humidity sensors do not make their way into the list of available controls, remaining visible only in the native application.

Way to the menu: Yandex → Services → Smart home → + → Device search → Xiaomi

If successful, you can ask Alice, “Alice, what’s the temperature in the room?” and she will answer using data from your Xiaomi Mijia 2. If the devices didn’t appear, try changing the region in the settings of Xiaomi’s account on China, as there is more support for gadgets.

💡

If the devices are not synchronized, try untie your Xiaomi account in the Yandex app and re-assign it, having previously restarted the gateway.

Method 2: Use of Home Assistant (For Advanced)

For users who aren’t afraid of complex customizations, the ideal solution is the Home Assistant platform, a local smart home server that allows you to combine devices from different manufacturers, ignoring the limitations of the cloud, and you will need a Raspberry Pi or any other mini PC to work.

The first step is to install the integration of Xiaomi Gateway 3 or use the Passive BLE Monitor component in the Home Assistant, which allows you to read data directly over Bluetooth, bypassing the Xiaomi cloud, or through the local API of the gateway, which provides instant response and independence from the manufacturer's servers.

Once the sensor is in the Home Assistant, you need to configure integration with Yandex Station, using the Yandex Station project (via HACS) or the official skill for Home Assistant, you create a virtual device in HA and spout it in Yandex.

ParameterOfficial methodHome AssistantThird-party skills
DifficultyLow.Tall.Medium
Dependence on serversComplete.Local.Partial
Response speed2-5 seconds<1 second3-6 seconds
StabilityMediumTall.Low.

Using a local server has the huge advantage of creating complex scenarios, for example, if the temperature drops below a predetermined mark, you can automatically turn on the heater through a smart socket, and all this will work even if the Internet is turned off.

⚠️ Note: Installing and configuring Home Assistant requires technical knowledge of networking and Linux.

☑️ Pre-installing check HA

Done: 0 / 1

Alternative methods and third-party services

There are intermediate solutions for those who don’t want to deploy a full server, but standard methods don’t work, and one popular option is to use aggregator skills like Cloud4Y or similar intermediary services that are friendly with the Xiaomi API.

Another interesting method is to flash the sensor itself, and with a special bootloader and flasher utility, you can change the firmware of the Xiaomi Mijia 2 thermometer, which allows you to remove the binding to the Mi Home application and force the device to send data directly to any device. MQTT-server.

For flashing, you will need to disassemble the body (it is held on the latches) and briefly close contacts. GND and CLK You can then use the board to enter bootloader mode, and then you can use Bluetooth to fill in alternative firmware, like from a project. ATC_MiFlora.

Risks of flashing
When you flash it, you lose the official warranty. Wrong actions can lead to a complete failure of the device (the “brick”), which can not be restored without special equipment.

This approach turns a simple thermometer into a completely independent IoT device, and you can transfer data anywhere: to Telegram, to your web server, or directly to a smart speaker, as long as it supports the appropriate protocols.

Scenario setting and voice control

Once you've successfully connected, whatever the method you choose, you open up the world of automation. In Yandex or Home Assistant, you can create scenarios that respond to the humidity and temperature sensor readings.

For example, you can set up a command, "Alice, I'm home," which will check the temperature. If it's below 22 degrees, the system will turn on the air conditioner or the heater. Voice queries become more informative: "Alice, the temperature in the nursery."

To customize the script in Yandex, go to Scenarios → Automation. Select the condition “Temperature has changed” or “Time of day”, and add the action “Report” or “Enable the device.” Logic can be any, limited only by your imagination.

  • 🌡️ Notification in Telegram in case of a sharp drop in temperature.
  • 💨 Automatic turn on air purifier when the level rises CO2 (if there are adjacent sensors).
  • 🔋 Send a notification about the low battery charge of the thermometer.

It's important to name the devices correctly. Give the thermometer a clear name, like the Living room Thermometer, so that Alice knows exactly what room you're talking about when you voice query.

💡

The right name of devices and rooms in the app is key to successful voice control, and Alice looks for devices by the names of rooms.

Problem Solving and Troubleshooting

In the process of setting up, users often find that the sensor “falls off” or stops transmitting data. Most often the problem lies in the discharge of the battery or too much distance to the gateway. Bluetooth has a limited range, especially through walls.

Another common mistake is to desynchronize the time or cache of applications. If you changed the settings in Mi Home, but the data is not updated in Yandex, try completely removing the Xiaomi skill in Yandex and adding it again. Sometimes cleaning the app cache on your smartphone helps.

If the thermometer is incorrect (e.g., 0 degrees or 88.8), it may have lost calibration or communication with the gateway. Try removing and inserting the battery, and bringing the sensor closer to the gateway for re-pairing.

⚠️ Attention: For frequent communication failures, check if the Wi-Fi channel is overloaded. Xiaomi gateways are sensitive to interference in the 2.4 GHz band.

Also, consider that updating the gateway firmware can temporarily disrupt all connected devices.Wait until the upgrade process is completed, which can last up to 10-15 minutes before sounding the alarm.

FAQ: Frequently Asked Questions

Can I connect Xiaomi Mijia 2 without a gateway directly to my phone?
Yes, the phone can see the sensor via Bluetooth, but only within a line of sight radius (about 10 meters).
Why does Alice say "the device is not responding"?
This means that the Yandex server cannot get up-to-date data from the gateway.Check the gateway's internet connection and Xiaomi account status in skills.
Does the thermometer work with Yandex Light Station?
Yes, the speaker model doesn't matter, it's just the skill and the right connection of the sensor to the cloud service.
How often does the thermometer update the data?
In standard power saving mode, the Xiaomi Mijia 2 sends a data packet about once every 10-15 minutes, unless there are sharp temperature changes.
Do you need the internet to work with scripts?
For scenarios via the Yandex cloud, yes. Local scenarios via Home Assistant don't require Internet, only a local area network.