Xiaomi Temperature Sensor Connection: From Unpacking to Smart Home Integration

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:

ModelProtocolprecision (°C)Additional functionsCompatibilityPrice (≈)
Aqara Temperature and Humidity Sensor E1Zigbee 3.0±0.3Humidity, pressure, screenHome, Home Assistant, HomeKit (via Hub)1 200 ₽
MiJia Bluetooth Temperature Sensor 2Bluetooth LE±0.3Humidity, magnetic attachmentMi Home, Home Assistant (with plugin)800 ₽
Xiaomi Mijia Honeywell Smoke DetectorZigbee±0.5Smoke, temperature, sound alarms.Mi Home, Home Assistant1 800 ₽
Aqara FP2Thread±0.2Humidity, pressure, radius of 150 mHomeKit, Matter, Home Assistant2 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.

📊 What is the Xiaomi Temperature Sensor You Are Using?
Aqara (Zigbee)
MiJia (Bluetooth)
Another brand
I haven't bought it yet.
I don't know what to choose.

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)

  1. Open Mi Home and go to Profile → Settings → Add the device.
  2. Select the Gateways category and your hub model (e.g. Aqara Hub) M2).
  3. Connect the hub to the outlet and wait for the yellow indicator to blink.
  4. Follow the instructions in the application (select Wi-Fi network and enter a password).

Step 2: Adding a sensor

  1. Return to Add Device and select the category "Sensors» → «Temperature and humidity».
  2. Make sure the sensor is on (the indicator flashes 1 time per second).
  3. Click “Next” and bring the sensor to the hub at a distance of 10-20 cm.
  4. Wait for the hub’s beep and the device appears in the list.

Step 3: Set up notifications

After connection:

  1. Go to the sensor card in Mi Home.
  2. Click on "Automation» → «Add a rule».
  3. Select a condition, such as: "Temperature" > 28°C».
  4. 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:

  1. Open the web interface Zigbee2MQTT (usually http://[IP_hub]:8080).
  2. Go to the Settings → Permit join and enable Device Search Mode.
  3. Remove and insert the battery into the sensor (for resetting).
  4. Wait for the device to appear on the list. Name it (e.g., name it, temperature_balcony).
  5. In Home Assistant, the sensor will automatically appear in the Entities section.

Method 2: Mi Home Token (for Bluetooth models)

For MiJia Bluetooth sensors:

  1. Get your Mi Home account token through the mihome-bin tool.
  2. 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: 60

How do you know? MAC-Bluetooth address?
1. Install nRF Connect. 2 on Android. Enable scanning and find a device called LYWSD03MMC (or similar to your model. 3. MAC-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

  1. Connect the sensor to the Home Assistant (see previous section).
  2. Install the HomeKit Bridge addon.
  3. In the addon settings, add the essence of the sensor (for example, sensor.temperature_balcony).
  4. 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:

  1. Install the homebridge-mi-aqara plugin:
  2. 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 causeDecision
"Device not found" at Mi HomeSensor outside the hub or Bluetooth range is offBring the sensor to the hub for 10-20 cm, check the battery
Sensor is connected, but does not show dataSynchronization failure or low battery chargeReboot the hub, replace the battery, check the firmware
“I couldn’t add a device to my Home Assistant”Incorrect token or MAC-addressGet a new token through mihome-bin, check it out MAC
The sensor shuts down in a few days.Weak signal. Zigbee/Bluetooth clutterSet a signal repeater or move the hub closer
In HomeKit, the sensor is displayed as “Unavailable”Problems with the Home Assistant Bridge → HomeKitRestart 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.

FAQ: Frequent questions about Xiaomi temperature sensors

Can I connect the Xiaomi sensor without a hub?
Only Bluetooth models (such as the MiJia Bluetooth Temperature Sensor 2) work without a hub, connecting directly to a smartphone. E1) Hub requirements (Aqara Hub, Xiaomi Gateway, etc.).
How to reset the sensor to factory settings?
For most models: Remove the battery for 10-15 seconds. Push back in and hold the reset button (if any) for 5 seconds until the indicator blinks 3 times. FP2: Press the button on the body 10 times in a row.
Why does the sensor show an inaccurate temperature?
Possible causes: 🔋 Replace the battery with a new one (replace it with a new one). 🌡 Placement near heat sources (battery, window in the sun). 📡 Network interference Zigbee/Bluetooth (move the hub). 🔄 Calibration failure (reset the sensor and reconnect).
Can I use the Xiaomi sensor on the street?
Most Xiaomi sensors are not designed for the street (the operating temperature range is usually the same). -10°C..+50°C, protection IP44). Outdoor use: Place the sensor in a sealed box with vents. Use extended range models, such as the Aqara Outdoor Sensor (-30°C..+70°C).
How to export sensor data to Excel or Google Sheets?
Methods: Through Home Assistant: Install Google Sheets addon. Set up automatic data export from the sensor entity. Through Mi Home: Use the service IFTTT to send data to Google Sheets. Set up the trigger: IF the temperature has changed → table.