A modern smart home is impossible to imagine without accurate monitoring of the microclimate, and this is where compact sensors from the Chinese giant come to the scene. Xiaomi offers a wide range of devices that can track the slightest changes in the atmosphere of your home, but they often require an intermediary to work fully. Many users face difficulties already at the stage of initial synchronization, not understanding the difference between communication protocols and the features of the mobile application.
In this article, we will discuss in detail how to properly connect the Xiaomi humidity sensor to the gateway to get accurate data and run automatic scenarios. We will look at the nuances of working with Bluetooth Mesh and Zigbee devices, since the process of pairing them has significant differences. Proper configuration at the initial stage will avoid problems with the โdumpโ of the device and delays in data transmission in the future.
Before you start technical manipulation, you need to make sure you have all the necessary components of the ecosystem. The Gateway acts as the central node that transmits data from sensors to the Internet and to your smartphone. Without it, most of Xiaomiโs budget sensors remain simply isolated meters, unable to transmit notifications or participate in complex logical control chains.
Choice of compatible equipment and communication protocols
The first step is to determine the type of sensor you have, as it depends on the choice of gateway. Xiaomi devices can work on the Zigbee protocol, which requires a mandatory hub, or the Bluetooth/Bluetooth Mesh protocol, which sometimes allows direct connection to the phone, but still needs a gateway to automate. Visually, Zigbee sensors are often round-shaped with or without a screen, while Bluetooth models can be square or have specific labeling on the case.
If you own the Apple HomeKit ecosystem, youโll need a specific Aqara Hub gateway that supports the HomeKit Secure Video protocol and provides local processing. Most universal gateways will be suitable for Android users and the standard Mi Home ecosystem, including built-in hubs in smart outlets or lamps. Itโs important to check the markings on the back of the device: having a Zigbee logo or Bluetooth will tell you what equipment you need to purchase.
Not all gateways are equally useful: some models only support a limited list of devices or work exclusively within the โChinaโ region. When buying, pay attention to support for global servers if you plan to manage a home from anywhere in the world. Compatibility of the gateway firmware and sensor versions also plays a critical role in connection stability.
- ๐ก Zigbee gateways: required for classic round temperature and humidity sensors, low power consumption and high network stability.
- ๐ถ Bluetooth gateways: often embedded in other devices (lamps, speakers), allow the sensor to transmit data when the phone is far away.
- ๐ Wi-Fi gateways: connect directly to the router and act as a bridge for many daughter devices, creating a single network of smart homes.
โ ๏ธ Note: Trying to connect a Zigbee sensor directly to a Wi-Fi router without a Zigbee hub is impossible, as they have different physical radio transmission standards.
Preparation for installation of the Mi Home application
The foundation of all devices is the Mi Home mobile app (or Aqara Home for sub-brand devices). Before setting up, make sure that geolocation and Bluetooth are enabled on your smartphone, as the app uses them to find devices within range. The operating system version also matters: iOS 12.0+ or Android 8.0 and higher are recommended for proper operation.
Special attention should be paid to the choice of region in the application settings. If your sensor and gateway are designed for the global market, the region should be installed in your country or the "European Union". If you purchased devices focused on the domestic market of China (which is often cheaper), then in the profile settings you need to choose the region of China.
Sign in and sign in to your Mi Account beforehand. Do not use guest mode as it limits the functionality of adding new devices and creating scripts. It is also recommended to update the application to the latest version through the official store to eliminate errors associated with outdated code.
๐ก
If the app doesnโt find the gateway, try switching between mobile internet and Wi-Fi, and check if access to the LAN is allowed in iOSโ privacy settings.
The process of connecting the gateway to the network
Before you add the humidity sensor itself, you need to configure the central control element, the gateway, and connect the gateway to the power source and wait until the indicator starts flashing, signaling readiness for pairing. In the Mi Home app, click on the plus in the top right corner and select device search or scan. QR-lock-code.
During the gateway setup process, you will be prompted to connect to your home Wi-Fi network. Note that most Xiaomi smart devices only work in the 2.4 GHz band. If your router broadcasts a single network with a name for 2.4 and 5 GHz, there should be no problems, but in the case of separate networks, make sure that the phone is connected to 2.4 GHz.
Once successfully connected, the gateway will get a name and appear on the list of devices, and now it's ready to receive signals from peripheral sensors, make sure that the gateway is not too far from where the humidity sensor will be installed, especially at the first pairing, which requires close contact.
Recommended distance for pairing: no more than 1-2 meters from the lock.Interconnection of the humidity sensor to the gateway
Now, the most important thing is to add a sensor, remove the protective film from the sensor battery compartment (usually a round tablet CR2032) to activate it, and the connection icon or the indicator should appear on the screen, after which the device will go into search mode (pairing).
In the Mi Home app, open your gateway card. Depending on the interface model, you need to click on the Add Device or Subsidiary button inside the gateway menu. The app will start scanning the ether. Simultaneously, quickly press and hold the function button on the sensor body for 3-5 seconds until the indicator flashes blue.
If the sensor is found, it will show up on the screen and offer to assign him a name and a room. 10-15 If you fail, repeat the procedure by bringing the sensor as close as possible to the gateway. Sometimes it takes several attempts to successfully shake hands with protocols.
โ๏ธ Checklist of successful connection
Once successfully added, you'll see the current temperature and humidity readings on the app's home screen. Now the device is synchronized and ready to transfer data. Be sure to calibrate the sensor if it shows values that are very different from the reference instruments, although Xiaomi's factory calibration is usually quite accurate.
Setting up scenarios and automation
Just seeing the numbers on the screen is only half the functionality. The real power of a smart home is revealed in automation. Go to the Scenarios (or Smart) section of the app, where you can create a condition: "If the humidity is above 70%," and an action: "Enable air purifier" or "Send a notification to your phone."
For dry air, you can set up the humidifier to start when the humidity drops below 40 percent. This is especially true in winter, when the heaters are drying the atmosphere. The logic of the scenarios allows you to create complex chains, for example, turning off the air conditioner when you open a window, if the humidity sensor is combined with the opening sensor.
It is important to adjust the sensor survey interval if this option is available in advanced settings. Too frequent surveys can land the battery faster, and too rare can lead to a late response of the system, the optimal interval is 5-10 minutes for standard monitoring.
| Condition (If) | Action (THO) | Device of execution | Time of action |
|---|---|---|---|
| Humidity > 70% | Turn on | Smart socket (fan) | Round the clock |
| Humidity < 30% | Turn on | Air humidifier | Night (22:00-07:00) |
| Temperature > 28ยฐC | Send a notification | Smartphone | Only in the daytime. |
| Humidity > 80% | Close the smart curtains | Electrical curtain drive | Always. |
The Secret to Zigbee's Stable Work
Diagnostics of problems and maintenance
During operation, you may encounter a situation where the sensor stops updating data or displays as "Out of the grid." First of all, check the battery power. Xiaomi sensors are economical, but when you cool down strongly (for example, in the winter on the balcony), the capacity of the lithium tablet drops sharply, which causes failures.
If the battery is new, try rebooting the gateway by disconnecting it from power for 10 seconds. Often the problem lies in the lock buffer "hanging" that stops polling the daughter devices. Also make sure that the sensor is not shielded with metal objects or thick concrete walls if the distance to the gateway is large.
In rare cases, a full sensor reset is required, press and hold the button on the case for more than 10 seconds until the indicator flashes orange (or emits an audible signal), then remove the device from the application and add again as new.
โ ๏ธ Note: Do not use humidity sensors in areas with condensation or direct water intake (bathrooms, saunas), as the electronics have no moisture protection and will quickly fail.
๐ก
The stability of the sensor is 90% dependent on the quality of the Zigbee/Bluetooth signal and battery power, so (regular check) of these parameters is mandatory.