Smart home systems start small, and most often the first swallow is microclimate control. Xiaomi's temperature and humidity sensors are an affordable and reliable way to start automating your apartment, whether it's humidifying or just monitoring the condition of the nursery. But beginners often have difficulty in first synchronizing a gadget with a control center known as a hub or gateway. Without the right sequence of actions, a smart device will remain just a beautiful plastic cube on the shelf.
The connection process depends on the communication protocol used, as the ecosystem of the Chinese giant is heterogeneous. Some models work through the energy-efficient Zigbee standard, which requires a mandatory gateway, others use Bluetooth Mesh, and others are able to work autonomously over Wi-Fi. In this article, we will discuss all the stages of configuration, paying special attention to the nuances of working with the Mi Home application and choosing the right server. You will learn how to avoid typical errors and make devices work in conjunction, creating complex automation scenarios.
Proper integration of the sensor into the network is the foundation of the stable operation of the entire system in the future. If you make a mistake in the introduction of the device to the hub, then you can have problems with signal loss or data delays. That is why it is important to carefully consider the preparation of equipment and the choice of software. We will consider not only standard scenarios, but also methods for solving problems when the device is not located or displayed offline.
Preparation of equipment and selection of software
Before you start mating, you need to make sure you have all the components on your hands and they're ready to go, and the basic element is the gateway itself, which acts as a bridge between the Internet and the local network of smart devices. For sensors using the Zigbee 3.0 protocol, having such a gateway is critical, as they do not have their own gateway. IP-The gateway can be a specialized device, for example, Xiaomi Multimode Gateway, or even some models of smart speakers and TVs with built-in module.
The second key component is the software through which management takes place. The main tool for users around the world is the Mi Home app. It is important to understand that the functionality and availability of devices can vary depending on the selected region in the account settings. For devices designed for the global market, usually choose a region other than China, but some specific models require switching to the server "China" for full functionality.
๐ก
Always check the region in the Mi Home profile settings before adding the device. If the gadget is not located, try changing the region, but remember that this can hide other devices tied to the previous server.
The sensor also needs to be equipped with a power source. Most Xiaomi and Aqara models come with a tablet battery already inserted, protected by a dielectric film. This film must be removed before setting up, otherwise the device won't turn on. In some cases, especially if the device has been in storage for a long time, the battery may not be enough for the initial setup process, so have a spare CR2032 battery on hand.
Connecting the gateway to the network and preparing for synchronization
Successful addition of the sensor is impossible without properly configured central node. The first step is to physically connect your hub to the power grid and LAN. If you use Xiaomi Gateway with an Ethernet connector, it is recommended to connect it with a cable to the router for maximum stability, although many modern models support Wi-Fi connection. Once turned on, the gateway indicator should light up, signaling readiness for operation.
Next, you need to open the Mi Home app and make sure that the gateway is displayed in the list of devices and has an "Online" status. If the gateway is not visible, you need to add it separately, following the instructions on the screen, scanning it. QR-code at the bottom of the device or by manually selecting it from the list. It is important that the smartphone from which the setup is made and the gateway are on the same local network or have Bluetooth enabled for detection.
โ๏ธ Checking lock readiness
When the gateway is active, you need to pair it. Depending on the model, this is done either by long pressing the physical button on the housing or programmatically through the application interface. When you go into search mode, the indicator usually flashes, and the corresponding notification appears in the application. The time to find a new device is limited: the pairing mode is active only about 30-60 seconds, so all actions with the sensor must be done quickly and without delay.
The process of adding a Zigbee sensor to the hub
The most common scenario is to connect temperature sensors that use Zigbee protocol, which are low-power devices that create a mesh network where each gadget amplifies the signal of others. To start the process, make sure that the gateway is in search mode (the indicator flashes). Take the sensor in your hands and find a small circular hole or button on the case.
To activate the mode (pairing), you need to press and hold the function button on the sensor for 5-7 seconds. On some models, such as Xiaomi Temperature and Humidity Sensor 2, you need to use a clip or a needle to do this. Hold the button until the indicator on the sensor itself (if any) flashes blue, or until the gateway emits an audible confirmation signal.
- ๐ก Press and hold the button on the sensor until the indicator flashes.
- ๐ Make sure the gateway is no longer at a distance. 1-2 meters from the sensor during the adjustment.
- ๐ฑ Watch your smartphone screen โ the app should automatically detect a new device.
- โ Confirm the addition by assigning the device a room and name.
Once it's successfully detected, the app will suggest naming the device and selecting the room it's going to be installed in, which is an important step in making it easy to use, especially if you have a lot of sensors, and once confirmed, the sensor will disappear from search mode, and the gateway will stop flashing, returning to normal operation, and temperature and humidity data will now be transmitted to the cloud and displayed in the app.
Configure Bluetooth sensors and Mesh devices
Not all Xiaomi devices use Zigbee. Many modern models, such as the Xiaomi Bluetooth Temperature and Humidity Sensor, work via the Bluetooth Low Energy (BLE) protocol, and the feature of these sensors is that remote access to them (from outside the home) still requires a Bluetooth-enabled gateway, but initial connection can occur directly via a smartphone.
If you have a Bluetooth-enabled hub (like the Xiaomi Smart Home Hub or the XiaoAI smart speaker), the automation process is smooth. When you approach the sensor to the hub on, the device can be detected automatically without having to press buttons on the sensor itself. This is what's called a "fast connection." A pop-up will appear in the app suggesting that you add the device you find to the smart home system.
If you don't have automatic detection, you can manually do this. In the Mi Home app, press the plus in the top right corner, and the system will scan the space around. If the sensor isn't found, try bringing it as close as possible to the hub or smartphone. Sometimes you need a brief press of a button on the sensor body to get it out of sleep mode and start broadcasting the signal.
โ ๏ธ Note: Bluetooth sensors may not transmit data to history if they are outside the range of the gateway with a Bluetooth module.
Table of compatibility and characteristics of devices
To avoid confusion between buying and setting, it is important to understand the differences between models: Different generations of sensors may require different versions of gateways or have different communication protocols.
| Model of the device | Protocol of communication | Need a hub. | Display. |
|---|---|---|---|
| Xiaomi Temp Sensor 2 | Zigbee | Yeah (Zigbee) | E-Ink |
| Xiaomi Bluetooth Sensor | Bluetooth BLE | For remote access | No. |
| Aqara Temperature Sensor | Zigbee | Yeah (Zigbee) | No. |
| ClearGrass Sensor | Bluetooth / Wi-Fi | No (for Wi-Fi) | E-Ink colored |
As you can see from the table, the choice of gateway depends on the specific type of sensor. Universal gateways such as Xiaomi Multimode Gateway support multiple protocols (Zigbee, Wi-Fi, Bluetooth), making them the perfect choice for mixed smart home systems. If you plan to expand the system, you should focus on multiprotocol solutions immediately.
What if the sensor model is not on the list?
Automation and creation of work scenarios
Just seeing the temperature on a smartphone screen is just the tip of the iceberg. The real power of a smart home is revealed when you create scenarios where the temperature sensor acts as a trigger for other devices to perform actions. To navigate to this section, you need to open the Smart Home tab in the bottom menu of the Mi Home app.
For example, you can set up a system so that when temperatures rise above 25 degrees, a smart air conditioner or a smart window handle opens, and to implement such schemes, you need all the devices involved to be added to one account and preferably in the same location.
- ๐ก๏ธ Select the condition: "Temperature of the sensor above / below the specified value".
- โฐ Add a time limit so that the air conditioner doesn't turn on at night.
- ๐ก Specify the action: "Enable the device" or "Send notification".
- ๐ Set up. PUSH-Notification if the temperature has dropped critically (freezing protection).
Scenarios for property protection are particularly useful, such as setting up a notification to your phone if the temperature in your apartment drops below +10 degrees in winter, which may indicate a heating accident, and scenarios for comfort are also popular: turning on the humidifier when the humidity drops below 40%.
๐ก
Local automation is faster and more reliable than cloud automation, and try to create scripts that run inside the hub so that they work even when the Internet goes down.
Troubleshooting and frequent errors
Even with a clear follow-up, there can be technical difficulties. The most common problem is that the device is not in search mode. 90% of the time it is due to a dead battery or because the sensor has already been tied to another hub. Zigbee devices can usually only be connected to one control center at a time.
If the sensor has been used before, it needs to be reset to factory settings, and you need to hold the button on the case much longer than usual, about 10-15 seconds, until the indicator blinks several times or changes color, only after a complete reset, the old connection will break, and the device will become visible to the new gateway.
โ ๏ธ Note: When the sensor is reset, all accumulated data and measurement history will be deleted. Make sure you do not need stored statistics before performing this procedure.
Another cause of problems may be distance. Despite the claimed range, walls, especially bearing with rebars, and household appliances can greatly jam the signal. If the sensor does not connect, try to bring it close to the hub (10-20 cm) Also check if your Wi-Fi channel is overloaded if the hub is connected wirelessly.
In some cases, rebooting the Mi Home app itself or cleaning up the cache helps. If nothing helps, it makes sense to remove the hub from the application and configure it again, then try adding the sensor again. Updating the hub firmware to the latest version also often solves compatibility problems with new sensor models.