How to connect the humidity sensor Xiaomi to the Mi Home: step-by-step instructions

Controlling the indoor climate is becoming the standard of comfort, and the Chinese giant’s smart gadgets are taking the lead here, and a seemingly simple sensor can do wonders by controlling humidifiers, air conditioners, or simply telling people to ventilate a room. But the initial activation process often causes difficulties for beginners who are confused about the requirements for gateways and regions.

In this article, we will discuss all the nuances that will help you avoid common errors when pairing devices. You will learn why the sensor may not be visible to the application, what kind of gateway will be required for the ZigBee protocol to work and how to properly configure scenarios. Competent integration of equipment will turn a regular set of sensors into a full-fledged climate control system.

Before you start setting up, it's important to understand the architecture of the Xiaomi ecosystem. Most of today's models don't work directly with the router, but through an intermediate hub device. This ensures connection stability and low power consumption, allowing the battery to last for years. We'll look at current connectivity methods that work in 2026-2026.

Preparation of equipment and selection of a lock

The first step is to check the configuration and compatibility. Many users make the mistake of buying a sensor without making sure there is a control center, and ZigBee sensors cannot physically connect to a phone directly or through a regular Wi-Fi router without a dedicated bridge.

You’ll need the sensor itself (like the popular Mijia Temperature and Humidity Sensor 2 or older Pro) and a compatible gateway. The hub can be the Xiaomi Smart Home Hub, a ZigBee-enabled security camera, or even a smart speaker. Make sure all devices are in the same Wi-Fi area of view during setup.

⚠️ Note: If you are using a gateway from the Chinese version (CN), If you have a global sensor, they might not connect, try to pick up equipment from the same region or use third-generation universal hubs.

It's also critical to check the power supply. There's often a plastic insulator in the box that needs to be removed before it's turned on. If the battery is dead during long-term storage in the warehouse, the sensor just won't start. Change the power source to a new one if the light doesn't flash after the insulator is removed.

πŸ“Š What kind of gateway do you have for sensors?
Xiaomi's Official Gateway
Gateway from Xiaomi's camera
Third-party ZigBee gateway
No lock yet.

Installation and configuration of the Mi Home application

The Mi Home app (or Xiaomi Home) is the management center of the entire ecosystem. To work correctly, you need to download the current version from the official Google Play store or the App Store. Older versions of the program may not support new encryption protocols, which will lead to an error when adding a device.

After installation, create a Xiaomi account ID, If you don't already have one, when registering, pay attention to the region you choose, which is key, because the list of available devices and servers depends on the geographic location. If you bought a device for the Chinese market, the region should be "China", for European - the corresponding country or Β«Russia/CISΒ».

The interface of the application may vary depending on the selected region, but the logic of the work remains the same. From the bottom menu, select the Devices tab and click the add a new gadget button. QR-You can use a code or you can select a device from a list manually.

πŸ’‘

If the app doesn't find a device, try changing the region temporarily in your profile settings to China, where the device base is the most complete, and many global gadgets are correctly defined.

The process of pairing the sensor with the application

Direct connectivity requires sequential action, make sure your smartphone is Bluetooth enabled and geolocated, which is required to find devices nearby, and bring your phone as close as possible to the sensor and gateway.

Run pairing on the sensor itself. This usually requires pressing and holding the function button quickly for 5-7 seconds until the indicator flashes blue frequently. In some models without a button (e.g., circular sensors), the mode is activated by simultaneously pressing two hidden buttons on the body or holding a single key for a long time.

In the app, select the device you find. The installation process can take anywhere from 10 to 60 seconds. At this time, encryption keys are exchanged between the gateway and the sensor. If progress is stuck by 99%, don't rush to restart the phone - often the system just establishes a secure connection for a long time.

β˜‘οΈ Checklist of successful connection

Done: 0 / 4

Compatibility table of models and protocols

Not all sensors are the same. Understanding the differences between device generations will help avoid compatibility issues. Below is a summary of the main characteristics of popular models available in the market.

ModelProtocol of communicationScreen availabilityLock required
Mijia Sensor 2Bluetooth / BLE MeshNo (E-ink)No (straight)
Mijia Sensor ProZigBee 3.0Yes (LCD)Yes.
Aqara TH SensorZigBeeNo.Yes.
ClearGrass SensorWi-Fi / BluetoothYes (E-ink)No.

As you can see from the table, Bluetooth Mesh-enabled models can work without a separate gateway if you have a repeater device (like a smart lamp or a Bluetooth Mesh speaker). However, ZigBee devices always require a network coordinator, which provides more stable response and performance even when the Internet is turned off (local scenarios).

When choosing, pay attention to the type of display: E-ink screens consume minimal energy and are updated once a minute, whereas E-ink screens consume minimal energy and are updated once a minute. LCD-screens require more frequent battery replacement. For hidden installation in cabinets or niches, a screen is not required, and you can choose a budget version without a display.

Setup of automations and scenarios

The power of the ecosystem is revealed in automation. Monitoring temperature is not enough; you need to make the technology respond to change. In the app, go to the Scenarios tab (or Automation) and create a new smart scenario.

Select the "If" condition: here, specify your humidity sensor and set a threshold value, such as "Humidity below 40%." Then select the "To" action: turn on the smart humidifier, start the air conditioner in drying mode, or just send a notification to your phone. The logic can be anything limited to fantasy.

Complex scenarios
You can combine conditions. For example, "If the humidity is below 40% and the time is from 20:00 to 08:00 and someone is at home (geolocation)", then turn on the humidifier at a minimum. This will prevent the equipment from working in vain." Don't forget about the delays. So that the system does not turn on and off the humidifier every second when the humidity fluctuates at 1%, adjust the time interval. For example, the condition must be met for 5 minutes before the trigger works. This will prolong the life of the actuators. Solution: the sensor does not connect or offline The most frequent problem of the humidifier from the rodite roditerite 2.4, "If the rodite the rodite rodite rodite rodite rodite rodite rodite rodite rod, you can create a flashing the rodite rodite rod, you can create a flash rodite rodite rod, you can create a flash rodite rodite 2.4 rod Also make sure your Wi-Fi router distributes the network on the frequency. 2.4 GHz, because 5 GHz is often not supported by a smart home. Another reason is gateway memory overflow. ZigBee networks have a limit on the number of connected daughter devices. 20-30, The old gateway may stop accepting new connections, in which case it will help to install an additional hub or update the gateway firmware to the latest version. ⚠️ Attention: When the sensor is reset (7 At the press of a button, it is removed from the ZigBee network, and then it must be re-add to the application as a new device, trying not to miss the timeout in the app. 60 If nothing works, do a complete network reset. Delete the gateway from the application, press Menu. β†’ Settings β†’ Remove Device, then physically reconnect the gateway to the network and re-add all the sensorsΒ» 90% synchronization. To extend the battery life, it is important to adjust the polling frequency correctly. In standard mode, the sensor sends data once a minute or when the parameters change dramatically. If you don't need second-rate accuracy, you can use energy-saving modes, if they're available in the model settings, and the placement of the sensor also affects readings and energy consumption, and don't place the sensor near batteries, windows with direct sunlight, or steam sources. False temperature or humidity surges will cause the device to wake up more often and transmit data, which will deplete the charge faster. Regularly check the level of charge in the application. Modern models are able to warn about the discharge in advance, but it is better to keep spare batteries such as the battery. CR2032 handy. The use of high-quality batteries (Duracell, Panasonic) significantly increases the interval between replacements compared to cheap analogues. πŸ’‘Rub the sensor case with dry soft cloth every six months. The dust on the sensors can distort the humidity readings, creating a "stick" effect of values. Can you use the sensor without the Internet? Without the Internet, you will not get the initial setup and remote control. However, if the internet goes down, local scenarios (like turning on a low-humidity humidifier) configured through the gateway will continue to work. What is the maximum range of the sensor? For the ZigBee protocol, the range in the open space reaches 30-40 meters. In a concrete-walled apartment, the effective range is about 10-15 meters, but the presence of other ZigBee-powered devices (outlets, lamps) expands the network, working like repetitors. Why does the sensor show incorrect humidity? Hygrometer sensors have inertia. After moving from one room to another, they require 15-30 minutes to stabilize the readings. Also, the accuracy is affected by drafts and the proximity of heat sources. Is the sensor compatible with Yandex Alice? Yes, provided that you link the Xiaomi account to Yandex account, however, the functionality can be limited only by the fact?