How to Add Xiaomi Temperature Sensor to Alice: The Complete Guide

The modern smart home is no longer a choice for tech enthusiasts and has become an accessible reality for millions of users. One of the most sought-after automation scenarios is microclimate control, where compact sensors from Xiaomi play a central role. Integration of these devices with the voice assistant Yandex opens up opportunities to create a comfortable environment without the need for constant manual intervention.

Users often have difficulty in initial setup due to the features of ZigBee and Bluetooth communication protocols that are used in different generations of sensors. Understanding these differences is critical to successfully complete the connection procedure. If you want your home to respond to changes in the weather outside the window or to turn on a humidifier when the air is dry, you will need to carefully study the technical details of the ecosystems.

To get started, make sure you have a stable Internet connection and installed the necessary apps on your smartphone. The basic requirement is to have accounts on Mi Home (or Aqara Home) and Yandex. Without first registering with these systems, further action will not be possible, since they are the intermediaries between the physical device and the voice interface. Let's look at the preparatory stage in more detail.

Preparation of equipment and software

The first step to successful integration is to properly prepare the hardware. You'll need the temperature sensor itself, which can be done in the puck or cube form factor, depending on the model. Most modern sensors, such as the Xiaomi Mi Temperature and Humidity Sensor 2, work on Bluetooth Low Energy protocol, which makes it easier to connect directly to gateways or smartphones. Older or specialized models may require a separate gateway with support for the ZigBee protocol.

Make sure your mobile device is installed and updated to the latest versions of the Mi Home and Yandex app with the appropriate skill. The phone settings need to allow geolocation and Bluetooth access, because without these permissions, finding new devices in the immediate vicinity will be impossible. Often users forget to turn on the wireless module, which leads to a scan error. QR-code.

⚠️ Warning: Before setting up, be sure to remove the protective film from the sensor battery, if any. Many devices come with a dielectric plug that blocks contact, and without removing it, the sensor will not turn on.

It is also important to check the region in the Mi Home app. If your account is registered in the Russia region and the device is intended for the Chinese market (or vice versa), it may not be determined in the system. To work with most Xiaomi devices available in the global market, it is recommended to install the Russia or Europe region, but some specific models require choosing the China region, a critical point that is often overlooked.

πŸ’‘

If the sensor is not an application, try to bring it as close as possible to the smartphone (literally 10-15 cm) and press the reset button if it is on the case.

Registration of the sensor in the Mi Home application

The process of adding the device to Xiaomi’s ecosystem is a fundamental step, without which further sync with Alice is impossible. Open the Mi Home app and go to the Devices tab. Click on the plus icon in the upper right corner to start looking for new hardware. The system will offer to automatically scan QR-code on the device body or find it in the list of available gadgets.

If the automatic search didn't work, use manual mode. Type in the search bar the name of your model, for example, "Temperature Sensor", and select the appropriate option from the list. The application will request confirmation of the device's activation, then the pairing process will begin. At this time the progress bar will be displayed on the screen, and the indicator on the sensor can flash blue to signal the mode (pairing).

  • πŸ“± Make sure that Bluetooth on your smartphone is active and visible to other devices.
  • πŸ“ Be in close proximity to the sensor (no further). 1-2 meters).
  • πŸ”„ If the connection is interrupted, restart the application and try again.
  • πŸ”‹ Check the battery charge, as a weak battery can cause unstable operation when initially set up.

Once successfully added, the device must be given a name and identified in the room in which it will be installed. The name must be clear so that Alice can correctly identify it by voice query. For example, it is better to call the device "Sensor in the nursery" or "Temperature in the living room" than to use the standard "Mi Sensor 1234." This will simplify control through voice commands in the future.

β˜‘οΈ Checking the sensor connection

Done: 0 / 1

Linking accounts Xiaomi and Yandex

In order for Yandex voice assistant to β€œsee” your Xiaomi devices, you need to link accounts. This action creates a secure bridge between the servers of the two companies, allowing you to transfer the status of devices and control commands. Open the Yandex or Yandex Station application and go to the smart home management section, usually marked with a house icon or is located in the service menu.

Click on the add-on or plus-plus button to open a list of available manufacturers. Search by manufacturer, type "Xiaomi Mi Home." If you use the Aqara ecosystem with a separate application, select the appropriate skill "Aqara Home." It is important to choose the service that your device is registered with, otherwise sync will not occur.

Once you have selected a manufacturer, the system will redirect you to the Xiaomi Cloud login page, enter the username and password from the account you used in the Mi Home app. Be careful when entering data, as an error in even one character will cause an authorization failure. Once successfully logged in, the system will request permission to access the list of devices of your smart home.

ParameterMeaning/ActionImportance
ServiceXiaomi Mi HomeTall.
Region of the accountCoincides with Mi HomeCritical
Two-factor authenticationRecommendedMedium
Speed of renewalInstantly / 1-2 minutesNormal.

The final step is to confirm the access rights, and you'll see a list of devices that will be imported into the Yandex app, and you'll confirm the operation, and in a few seconds, the sensors will appear in the smart home's general list, and from there you can control them with your voice and create scripts.

πŸ“Š Where do you most often use temperature sensors?
In the nursery:In the greenhouse or greenhouse:In the server or technical room:Just for monitoring in the living room

Setting up scenarios and automation

It's easy to know the temperature in the app, but the real magic of a smart home starts with automation. Scenarios allow the device to respond to changes in performance without you being involved. For example, if the temperature drops below a predetermined threshold, the system can send a notification or turn on a smart socket with a heater. To create a script, go to the "Scenarios" section of the Yandex app.

Create a new scenario and select the "If" condition, and as a trigger, select your temperature sensor and set a threshold, such as "below 20 degrees." Then add the "That" action. Here you can choose a voice message, push notification or control of another device. The logic can be anything from turning on the humidifier at low humidity to closing smart curtains in bright sun, if the sensor supports it.

⚠️ Attention: When creating complex chains of action, consider data latency. Battery-powered sensors go into hibernation to save energy and can transmit data at intervals of several minutes, so the system's response is not always instantaneous.

Use logic operators to create more flexible conditions, you can combine temperature readings with the time of day or the status of other devices, for example, a scenario can only work if the temperature is below 22 degrees and simultaneously activate "I'm at home" mode, which will prevent false positives when you're not indoors and climate control is not required.

An example of a complex scenario
If the temperature is above 25Β°C and the time is from 10:00 to 20:00, and the status of "I'm at home" is active, then turn on the air conditioner (via an IR remote or a smart socket) and send a notification "It's hot, turn on cooling."

Using voice commands for control

Once you have the scripts set up, the primary interface becomes voice, so you can ask Alice at any time, "What's the temperature in the living room?" or "Is it getting cold in the bedroom?" The voice assistant instantly reads the data from the latest sensor update and voices it, which is especially useful when you need to quickly assess the situation without taking out the phone.

In addition to status query, you can use voice to control connected devices. The phrase "Alice, it's getting cold" can be configured as a trigger to turn on the heater if you create a corresponding scenario in the application. Voice control makes interaction with the smart home as natural as possible and accessible to all family members, including children and the elderly.

  • πŸ—£οΈ"Alice, what is the moisture in the nursery? – request for current indicators.
  • πŸ—£οΈ"Alice, turn on the humidifier if dry" - start script by voice command.
  • πŸ—£οΈ"Alice, show the temperature in all rooms" - output summary information on the screen of the smart speaker.
  • πŸ—£οΈ"Alice, give advice on how to ventilate the room" - getting a recommendation based on sensor data.

To use voice control effectively, it's important to pronounce the device names correctly. If you call the sensor Sensor 1, Alice may not understand the "temperature in the sensor." Rename the devices into understandable names, such as Sensor in the hallway or Thermometer in the kitchen, which will greatly improve the accuracy of command recognition.

πŸ’‘

Voice control only works when devices are successfully synchronized and have clear, unique names in the smart home app.

Problem Solving and Troubleshooting

In the process of operation, there may be situations when the sensor stops transmitting data or displays incorrect values. Most often, the problem lies in a dead battery or loss of communication with the gateway. If the application is an offline device, try to get closer to the location of the sensor or reboot the ZigBee gateway. Sometimes simple retrieval and re-installation of the battery helps.

Another common problem is the data desynchronization between Mi Home and Yandex. If the native app has an updated temperature and Yandex has an old value, try disabling and re-enable the skill in the smart home settings. It is also worth checking whether passwords or security settings in the Xiaomi account have changed, which could break the connection of access tokens.

If the sensor shows abnormally high or low values, it may be installed next to the heat source (battery, direct sunlight, household appliances). To obtain correct data, place the sensors at a distance of at least 1 meter from the heating appliances and in places with free air circulation. Direct sunlight can heat the device housing, distorting the real readings of the environment.

⚠️ Warning: Do not place temperature sensors in high humidity areas (unless the model has waterproofing) IP65 and above), near magnetic fields or radio interference sources such as powerful Wi-Fi routers or microwave ovens.

In case of persistent connection problems, you may need to completely reset the device to factory settings. This usually requires pressing and holding the button on the sensor body for 5-10 seconds before the characteristic flash of the indicator. After resetting, the addition procedure to the Mi Home will have to be re-run, as in the first start.

Why doesn’t the sensor update the data in real time?
Battery-powered sensors use energy-saving mode and transmit data at a certain interval (usually 10 minutes to 1 hour) or when the temperature changes by a significant amount (for example, 0.5 degrees), this is normal behavior for extending the battery life.
Can I use a sensor without the internet?
The sensor itself can measure temperature without the Internet, but to transmit data to the phone and integrate with Alice, an Internet connection is necessary. Local scenarios can work through the gateway, but remote control and voice control require access to the cloud.
What is the battery life in the Xiaomi sensor?
Depending on the model and frequency of use, one CR2032 battery lasts for 1-2 years, and when used in scenarios with frequent surveys, the service life can be reduced to 6-8 months.