The modern smart home does not start with expensive robot vacuum cleaners, but with basic monitoring of the microclimate, which directly affects the health and well-being of residents. Xiaomi offers some of the most affordable and functional solutions on the market, allowing real-time monitoring of changes in the environment in the apartment, connecting such a device is the first step to automation, for example, turning on a humidifier when humidity drops or running an air purifier when CO2 levels are exceeded (in conjunction with other sensors).
The setup process often seems complicated to beginners because of the Bluetooth Low Energy protocols and gateway requirements, but it actually takes only a few minutes. In this article, we’ll take a look at all the nuances, from choosing the right version of an application to creating complex automation scenarios, and learn how to avoid typical pairing errors and make the gadget work steadily for years.
To get started, you’ll need the sensor itself, a smartphone with the Mi Home app installed, and in most cases an active gateway or Bluetooth-enabled hub. It’s important to understand that some models run entirely through the gateway, while newer versions can connect directly to the phone but require it to be constantly nearby to transfer data to the cloud. Only models with the “Gateway Edition” prefix or with built-in Wi-Fi module can work completely autonomously without additional hubs.
Selection of the appropriate model and preparation for installation
Before you start pairing, make sure you get the right model that is compatible with your current ecosystem. Xiaomi’s sensor lineup and Mijia ecosystem have dozens of modifications, differing in connection type, screen availability and additional features. The most popular models, such as the Mijia Temperature Humidity Sensor 2, use Bluetooth, which requires a gateway for remote access.
Make sure your smartphone has Bluetooth enabled and geolocation enabled, as these are mandatory requirements for finding a device in the app. Also check the operating system version: Android 5.0+ or iOS 11.0+ is required for stable operation of the Mi Home. If you plan to use the device in the bathroom or kitchen, pay attention to the degree of protection of the case, although most household models do not have serious water protection.
⚠️ Note: Do not try to use the sensor in areas with temperatures above 40°C or 95% humidity, this can cause permanent sensor damage and rapid battery discharge.
For full work, prepare the following:
- 📱 Smartphone with Mi Home application installed (the server region must coincide with the device region).
- 🔋 New type battery CR2032 (It is often included in the kit, but it is better to replace it with quality ones, for example, Panasonic or Sony).
- 📡 Xiaomi Gateway or any other Bluetooth Mesh-enabled hub if the sensor model doesn’t have Wi-Fi.
- 📶 Stable Wi-Fi (2.4 GHz) connection for gateway operation.
Installation of the Mi Home application and registration of the device
The main control center of the entire ecosystem is the Mi Home app, which is available on Google Play and the App Store. Once installed, you need to log in through your Xiaomi account. It is critical to choose the right server region when you first sign in, since many devices purchased on the global market or through AliExpress may not be determined if you choose the wrong region (usually China or Europe).
The process of adding the device is standardized, but it has its own characteristics for different protocols «+» In the upper right corner of the main screen of the application, the system will offer to scan. QR-code that is on the back of the sensor or in the instructions, or find the device automatically in the list of available gadgets nearby.
If the automatic search didn't work, manually search by category. Go to Devices → Add device → Temperature and humidity. Select your model from the list. At that point, the app will ask you to activate the sensor if it hasn't already been activated.
If you detect it successfully, you'll see a connection animation on your smartphone screen. Don't get your phone too close to the sensor in the first seconds, sometimes it causes handshake errors. The optimal distance is 10-20 centimeters.
Step-by-step instruction for connecting via Bluetooth
The most common scenario is to connect the model with a Bluetooth interface: open the battery compartment lid and press the reset button, or simply remove and insert the battery back to activate the pairing mode. A smiley or flashing dot on the screen (if any) signals readiness.
In the Mi Home app, select the device you find. If the system requests confirmation via Bluetooth, click "Confirm." Then you need to assign the device to a specific room, which is important for scripting and voice assistants to work correctly. Call the sensor by an understandable name, such as "Children's" or "Bedroom", so you don't get confused in the future.
☑️ Checklist of connection
Once the setup is complete, the current temperature and humidity readings will be displayed on the smartphone screen. If the data is not updated, try leaving the application and re-entering the Bluetooth module on the phone. In some cases, you need to update the firmware of the sensor itself, which occurs automatically when there is a gateway.
⚠️ Note: If the sensor is not within a 5-meter radius of the gateway during the initial setup, the process may be interrupted or the device will not retain the network configuration.
Setting up scenarios and automation
The main value of a smart sensor is not the display of numbers, but the ability to automatically control the climate. To do this, there is a section in the Mi Home application called Scenarios (or Smart Home), where you can create a chain of actions: "If" (condition) and "That" (action), which allows the system to respond to changes in the environment without your involvement.
For example, you can set up a scenario where the temperature rises above 25°C, the air conditioner or a smart socket with a fan turns on, or if the humidity drops below 40 percent, the air humidifier starts, which is especially relevant for children's rooms and greenhouses.
To create a script:
- 🌡️ Go to the Scripts tab and click “Create Automation».
- 📟 As a condition, select your temperature sensor and set thresholds (e.g., Temperature). > 26°C).
- 💡 As an action, select a smart device (humidifier, air conditioner, socket) and specify the command "Enable».
Difficult scenarios with delay
You can also set up push notifications on your smartphone, which is useful if you're on vacation and want to know if the temperature in your home has dropped to critical levels that threaten to defrost the pipes, or if it's too hot for home plants.
Comparison of Xiaomi sensor models
There are many modifications on the market, and it can be difficult to choose the right one, with the main differences being sensor accuracy, display availability, battery type and protocol support.
| Model | Protocol | Screen. | precision | Features |
|---|---|---|---|---|
| Mijia Sensor 2 | Bluetooth | E-ink | ±0.3°C | Magnetic anchorage |
| ClearGrass | Bluetooth | E-ink | ±0.4°C | Design, big numbers. |
| Zigbee Version | Zigbee | No. | ±0.5°C | It only works with the lock. |
| Pro Version | Bluetooth | LED | ±0.3°C | Bright display, alarm clock. |
E-ink models consume less power and read great from any angle, but update data less often. Devices without a screen are cheaper, but you always need a phone or gateway to get data. Zigbee versions are preferred for large homes with many devices, since they create a mesh network, increasing the coverage radius.
💡
For maximum energy saving in models with a screen, you can adjust the refresh rate of the display or turn it off completely through the application if visual control is not needed.
Troubleshooting and troubleshooting
Even when you set it up properly, you can have a breakdown, and the most common problem is that the device is displayed as "Offline" or the data is not updated, 90% of the time it's due to battery drain or loss of connection to the gateway, check the voltage of the battery, even a new-looking battery can be defective.
If the sensor falls off, try re-tethering it. To do this, press the reset button for 5-7 seconds before the reset indicator appears, remove the device from the application and add again. Make sure that the gateway is in line of sight or through one wall, as concrete partitions greatly dampen the Bluetooth signal.
Sometimes the problem lies in the Mi Home app itself, cleaning the app's cache or reinstalling it can solve the interface freeze problem, and also check if the phone is running a power saving mode that can block the background work of the Bluetooth scanner.
⚠️ Note: When resetting the sensor settings, all scripts stored in its memory can be deleted, so after reconnecting, check the automation settings in the application.
💡
The stability of the sensor is 80% dependent on the quality of the battery and the distance to the gateway, not the software.