Why you need a temperature sensor from Xiaomi and how it works
Xiaomi’s temperature sensors (including the Aqara and MiJia brands) have become an integral part of today’s smart home systems. ±0.3°C, but often equipped with additional sensors of humidity, pressure or movement, their main advantage is the wireless integration into the Mi Home ecosystem and third-party platforms like Home Assistant or Apple HomeKit (via hubs).
In this article, we will look at all the ways Xiaomi temperature sensors can be connected, from basic settings through the official application to advanced automation scenarios, and focus on common errors (e.g., “Device not found” in Mi Home) and how to fix them. If you plan to use the sensor to monitor the microclimate in a nursery, greenhouse or server room, here you will find current connection schemes and tips for optimizing work.
Modern sensor models (e.g. Aqara Temperature and Humidity Sensor) E1 MiJia Bluetooth Temperature Sensor 2 supports different communication protocols – Zigbee, Bluetooth LE It's not just the way you connect, it's also the way you're going to be stable in the long run.
What Xiaomi Temperature Sensors Are: Model Comparisons
Xiaomi’s range of temperature sensors includes more than 10 models, differing in communication protocol, accuracy, design and compatibility, and here is a current comparison of the most popular devices for 2026:
| Model | Protocol | precision (°C) | Additional functions | Compatibility | Price (≈) |
|---|---|---|---|---|---|
| Aqara Temperature and Humidity Sensor E1 | Zigbee 3.0 | ±0.3 | Humidity, pressure, screen | Home, Home Assistant, HomeKit (via Hub) | 1 200 ₽ |
| MiJia Bluetooth Temperature Sensor 2 | Bluetooth LE | ±0.3 | Humidity, magnetic attachment | Mi Home, Home Assistant (with plugin) | 800 ₽ |
| Xiaomi Mijia Honeywell Smoke Detector | Zigbee | ±0.5 | Smoke, temperature, sound alarms. | Mi Home, Home Assistant | 1 800 ₽ |
| Aqara FP2 | Thread | ±0.2 | Humidity, pressure, radius of 150 m | HomeKit, Matter, Home Assistant | 2 500 ₽ |
Key differences:
- 🔹 Zigbee sensors (e.g., Aqara) E1) require a hub (e.g. Aqara Hub) M2 Xiaomi Gateway 3, but it offers a stable connection over long distances.
- 🔹 Bluetooth models (e.g. MiJia) BT 2) connect directly to the smartphone, but have a limited range (~10 m) and frequent communication interruptions.
- 🔹 Thread devices (e.g., Aqara) FP2) Compatible with Matter and work without a hub, but cost more.
Preparation for connection: what will be needed
Before you start setting up, make sure you have everything you need. The minimum set depends on the type of sensor:
- 📱 Smartphone with Android 8.0+ or iOS 12+ (For Mi Home).
- 🔌 Hub (for Zigbee devices): Aqara Hub M2, Xiaomi Gateway 3 or similar.
- 🔋 Power: Most sensors are battery-operated CR2032 (kitted).
- 📶 Stable Wi-Fi (for hub) or Bluetooth (for direct connections).
Install the Mi Home app (App) Store/Google Play)|Charge your smartphone to 50%+|Prepare the hub (if necessary) and connect it to the network|Check the battery in the sensor (remove the protective film)|Stay within the network area (close) 5 m to hub/phone)-->
Important for Bluetooth models: if the sensor has already been paired with another device, it should be reset. To do this, remove the battery for 10 seconds, then insert back. After reset, the indicator (if any) should flash 3 times.
⚠️ Note: Aqara sensors with Zigbee protocol do not connect directly to the phone - they necessarily require a hub. If you try to add such a device through the Mi Home without a hub, the application will give an error "Can not find the device».
Connection via Mi Home: step-by-step instructions
The official Mi Home app is the easiest way to connect a temperature sensor. Let's take the example of Aqara Temperature and Humidity Sensor. E1 (For other models, the steps are similar).
Step 1: Adding a Hub (if required)
- Open Mi Home and go to Profile → Settings → Add the device.
- Select the Gateways category and your hub model (e.g. Aqara Hub) M2).
- Connect the hub to the outlet and wait for the yellow indicator to blink.
- Follow the instructions in the application (select Wi-Fi network and enter a password).
Step 2: Adding a sensor
- Return to Add Device and select the category "Sensors» → «Temperature and humidity».
- Make sure the sensor is on (the indicator flashes 1 time per second).
- Click “Next” and bring the sensor to the hub at a distance of 10-20 cm.
- Wait for the hub’s beep and the device appears in the list.
Step 3: Set up notifications
After connection:
- Go to the sensor card in Mi Home.
- Click on "Automation» → «Add a rule».
- Select a condition, such as: "Temperature" > 28°C».
- Specify the action: sending a notification to the phone or turning on the air conditioner (if it is connected to the system).
💡
If the sensor is not located, try restarting the hub (remove the plug for 10 seconds) or changing the region in Mi Home to China (in profile settings).
Home Assistant Connection: Alternative to Mi Home
If you use Home Assistant, Xiaomi sensors can be integrated through plugins. Zigbee2MQTT Or Xiaomi Miio, let's look at both.
Method 1: Through Zigbee2MQTT (for Zigbee sensors)
It will require:
- 🖥 hub CC2531, CC2652 or Aqara Hub (in firmware mode) Zigbee2MQTT).
- 📦 Installed Home Assistant with Addon Zigbee2MQTT.
Instructions:
- Open the web interface Zigbee2MQTT (usually http://[IP_hub]:8080).
- Go to the Settings → Permit join and enable Device Search Mode.
- Remove and insert the battery into the sensor (for resetting).
- Wait for the device to appear on the list. Name it (e.g., name it, temperature_balcony).
- In Home Assistant, the sensor will automatically appear in the Entities section.
Method 2: Mi Home Token (for Bluetooth models)
For MiJia Bluetooth sensors:
- Get your Mi Home account token through the mihome-bin tool.
- Add to configuration.yaml Home Assistant:
sensor:
- platform: mitemp_bt
mac: 'XX:XX:XX:XX:XX:XX' # MAC- sensor address
name: "Balcony temperature"
force_update: true
period: 60How do you know? MAC-Bluetooth address?
⚠️ Note: When using Mi Home Token, Xiaomi can block an account for “suspicious activity” if questioned too often API. Recommended interval of requests - no more than 1 time in 5 minutes.
Integration with Apple HomeKit and other systems
Xiaomi sensors don't have native HomeKit support, but they can be connected through intermediate hubs or plugins. Let's look at the working ways.
Method 1: Through Home Assistant + HomeKit Bridge
- Connect the sensor to the Home Assistant (see previous section).
- Install the HomeKit Bridge addon.
- In the addon settings, add the essence of the sensor (for example, sensor.temperature_balcony).
- Scan it. QR-Home Assistant code in the Apple Home app.
Method 2: Aqara Hub M2 (officially)
- 🔌 Connect the Aqara Hub M2 Mi Home.
- 📱 In the Aqara app, go to Hub Settings → Apple HomeKit.
- 🔐 Scan it. QR-code from the Hub in the Apple Home app.
- 📊 All sensors connected to the hub will automatically appear in HomeKit.
Method 3: Through the HomeBridge plugin (for advanced)
If you are using HomeBridge on Raspberry Pi:
- Install the homebridge-mi-aqara plugin:
- Add in. config.json:
💡
The most stable way to integrate with HomeKit is to use the Aqara Hub M2. It is officially certified by Apple and does not require homemade solutions.
Typical errors and their solutions
When connecting Xiaomi temperature sensors, users often face typical problems, and here is a table of the most common errors and how to fix them.
| Mistake. | Possible cause | Decision |
|---|---|---|
| "Device not found" at Mi Home | Sensor outside the hub or Bluetooth range is off | Bring the sensor to the hub for 10-20 cm, check the battery |
| Sensor is connected, but does not show data | Synchronization failure or low battery charge | Reboot the hub, replace the battery, check the firmware |
| “I couldn’t add a device to my Home Assistant” | Incorrect token or MAC-address | Get a new token through mihome-bin, check it out MAC |
| The sensor shuts down in a few days. | Weak signal. Zigbee/Bluetooth clutter | Set a signal repeater or move the hub closer |
| In HomeKit, the sensor is displayed as “Unavailable” | Problems with the Home Assistant Bridge → HomeKit | Restart the HomeKit Bridge addon, check logs |
Additional advice:
- 🔄 If the Aqara sensor stops responding, try reconnecting it to the hub: in Mi Home, delete the device, then add it again.
- 📶 For stable operation of Zigbee-network avoid placing a hub near sources of interference: microwaves, Wi-Fi routers at a frequency of 2.4 GHz.
- 🔋 Battery CR2032 If the readings become inaccurate, replace it until it is completely discharged, this will prevent calibration failure.
⚠️ Warning: If the sensors stopped working after the hub firmware update, roll back to the previous version of the software via the recovery mode (instructions are in the documentation for the hub). New firmware sometimes contains bugs that affect compatibility with older devices.
Advanced use cases
Xiaomi’s temperature sensors can be used not only to monitor, but also to automate a smart home.
1. Control of microclimate in children
- 🌡 Install the Aqara sensor E1 near-bed.
- 📱 Set up the rule in Mi Home: If the temperature is < 20°C → heater.
- 🔔 Add a notification: IF THE TEMPORATION > 25°C → inform.
Automatic ventilation of the greenhouse
- 🌿 Place the MiJia Bluetooth sensor inside the greenhouse.
- 🤖 In Home Assistant, create a script: If the temperature is > 30°C And humidity. > 70% → open the fan for 15 minutes.
- 📊 Use Grafana charts to analyze weekly dynamics.
3. Monitoring of the server room
- 🖥 Install Aqara FP2 (Thread-enabled near servers.
- ⚡ Set up integration with Telegram bot: IF the temperature > 28°C → send a message to the admin.
- 🔌 Connect a smart socket to the air conditioner for automatic switching on when overheating.
💡
For accurate monitoring, use multiple sensors in one room, such as one near the floor and one under the ceiling, to help detect the layering of the temperature and avoid false positives.