Connecting the temperature and humidity sensor Xiaomi Mi2 Smartphone: 3 proven ways

Xiaomi Mi Temperature and Humidity Sensor 2 (or just a little bit more) Mi2) β€” One of the most popular smart home devices, because of its accuracy, compactness and low price, many users have difficulty connecting for the first time: the sensor is not detected in the application, constantly turns off or shows incorrect data. In this article, we will analyze all the current ways of synchronizing with the phone - from standard connection via Mi Home to alternative methods for advanced users.

Feature Mi2 It is based on Bluetooth Low Energy protocol (BLE), It's not Wi-Fi or Zigbee, like many other Xiaomi devices, which imposes a range limit of up to 10 meters in ideal conditions, and requires a smartphone or hub to be around at all times. Whether you’ve just unpacked the sensor or are trying to reconfigure it after resetting, this guide will help you avoid typical errors and save time.

1.Preparation of the Xiaomi sensor Mi2 plug-in

Before syncing with your phone, you need to make sure that the sensor itself is ready to work, unlike newer models (for example, the Mijia Bluetooth Temperature and Humidity Sensor 2 with a display), Mi2 It doesn't have any buttons or status indicators, and it activates automatically when you first contact an app:

  • πŸ“¦ Unpack the sensor and remove the protective film from the battery compartment (if any). CR2032, which is already installed in the factory.
  • πŸ”‹ Check the battery: if the sensor has been in storage for more than a year, replace it with a new one.
  • πŸ“± Update the firmware of the phone: for stable operation with BLE-Devices recommended Android 8.0+ or iOS 12+.
  • 🌐 Connect to the Internet: Mi Home requires a network to authorize and upload device profiles.

If the sensor has been used before, it needs to be reset.

  1. Remove the battery for 10 seconds.
  2. Put it back in, and the sensor will automatically reboot.
  3. Wait 1-2 minutes until it starts broadcasting the signal. BLE (On some phones, this can be checked through the Bluetooth menu in the system settings).

πŸ’‘

If the sensor does not respond to battery extraction, try gently wipe the contacts in the battery compartment with an alcohol wipe - oxidation can block power.

2. Standard connection via the Mi Home app

The official synchronization method is through the Mi Home app (renamed Xiaomi Home in some regions), which is suitable for most users, but has nuances related to the choice of server and software version.

Select the "Mainland China" region in the application settings|Enable Bluetooth and geolocation on your phone|Push "+" β†’ "Add the device" β†’ "Sensors" β†’ "Temperature and humidity"|Bring the phone to the sensor at a distance <50 centimeter|Wait for the device to appear in the list and confirm the addition-->

Step 1: Set up the application

Download Mi Home from Google Play or App Store.

  1. Sign up or sign in to your Xiaomi account (required! without an account, the device will not be linked).
  2. Go to Profile. β†’ Settings β†’ Region and select Mainland China. This is critical: when choosing Russia or Europe, the sensor may not appear in the list of available devices.
  3. Return to the main screen and press. + β†’ Add the device.

Step 2: Find and add a sensor

In the device category, select Sensors β†’ Temperature and humidity. The app will request Bluetooth and geolocation, allow both:

  • Hold the phone to the sensor at a distance of 30-50 cm.
  • Wait until a device with a name appears in the list. LYWSD03MMC (It's the internal designation of the model. Mi2).
  • Click on it and confirm the addition. The process can take up to 30 seconds.

Step 3: Configure the data display

Once connected successfully, the sensor will appear on the Mi Home home screen, where you can:

  • πŸ“Š View current temperature and humidity indicators.
  • πŸ”” Adjust notifications when you go beyond a preset limit (for example, if humidity drops below 40%).
  • πŸ“ˆ Exporting data history to CSV For analysis (available in the web version of Mi Home).

Mi Home (official appendix)|Home Assistant (for automation)|Alternative applications (e.g. SensorBlue)|Not yet plugged in.-->

3. Common mistakes and their solutions

Even when following the instructions, users often encounter problems, and below is a table of the most common errors and specific actions to correct them:

Mistake.Possible causeDecision
The sensor is not in Mi Home.Wrong region in the appendixChange region to Mainland China in your account settings
Connection interrupted by 50%Weak Bluetooth signalBring the phone closer to the sensor, make sure there is no interference (e.g., running microwaves)
The sensor shuts down in a few hours.Energy-saving phone modeAdd Mi Home to Battery Optimization Exceptions (on Android: Settings) β†’ Battery β†’ Optimization)
Temperature readings are overstated by 2-3Β°CThe Effect of Heat from the Phone BatteryPlace the sensor at least 1 meter away from the heat sources
The application asks to update the sensor firmwareOutdated device softwareConnect the sensor to the Xiaomi gateway (such as Mi Gateway 3) for an update

Important: If the sensor was previously linked to another Xiaomi account, it must first be removed from the old profile via Device Settings. β†’ Delete. Otherwise, the new connection will not be possible.

What if the sensor is detected but the data is not updated?
This is a typical problem when using custom firmware on your phone (like LineageOS) or if the system has turned off background access for Mi Home. Solution: 1. Check that the Android settings for Mi Home allow background location access and auto-start. 2. Restart the phone and sensor (remove the battery for 10 seconds). 3. If the problem persists, try connecting via another phone (like iPhone) - sometimes changing the platform helps.

4. Alternative ways of connecting (without Mi Home)

If the official app doesn’t fit (for example, due to region constraints or a desire to integrate the sensor into another smart home system), alternative methods can be used.

Method 1: Using Home Assistant (for automation)

Home Assistant is an open platform for smart home that supports Xiaomi Mi2 plugin ble_monitor. Advantages of this method:

  • πŸ“± Local work without depending on the cloud Xiaomi.
  • πŸ”„ Integration with other devices (e.g., automatic humidifier activation at low humidity).
  • πŸ“Š Advanced data visualization via Grafana or embedded dashboards.

To connect:

  1. Install Home Assistant on Raspberry Pi or other server (instruction: official documentation).
  2. Add the following lines to the configuration file: sensor: - platform: ble_monitor devices: - name: "Xiaomi Mi2" mac: "XX:XX:XX:XX:XX:XX" # Replace it with MAC-address of your sensor restore_state: true
  3. Reboot Home Assistant and check for sensor appearance in Developer Tools section β†’ States.

Method 2: Through SensorBlue (for Android)

SensorBlue app allows you to connect BLE-Xiaomi sensors are not tied to an account. This is convenient if you do not want to register with Mi Home or use the sensor temporarily:

  • πŸ” Supports multiple sensors at the same time.
  • πŸ“€ Exporting data to Google Sheets or CSV.
  • 🚫 No cloud sync – data is only stored on your phone.

Instructions:

  1. Download SensorBlue from Google Play.
  2. Run the scan. BLE-devices (Scan button in upper right corner).
  3. Select from the list LYWSD03MMC and press Connect.
  4. The sensor will be added to the list of devices where you can configure alerts and survey intervals (recommended 5-10 minutes to save battery).

πŸ’‘

Alternative ways of connecting are suitable for power users, but require additional skills (for example, working with the Internet). YAML For most tasks, the official Mi Home application is sufficient.

5. Optimization of the sensor: advice on placement and settings

To testify Xiaomi Mi2 have been accurate and the connection to the smartphone is stable, follow these guidelines:

  • πŸ“ Accommodation: Install the sensor at a height of 1-1.5 meters from the floor, away from direct sunlight, heating batteries and air conditioning. Avoid places with poor ventilation (for example, inside cabinets).
  • πŸ”„ Update interval: In Mi Home, the default sensor sends data every 5 minutes. To save battery, increase the interval to 10-15 minutes in the device settings.
  • πŸ“Ά Signal amplification BLE: If the sensor is at the edge of the coverage area, use the Xiaomi Bluetooth Gateway (such as the Mi Bluetooth Temperature and Humidity Sensor Hub) to relay the signal.
  • πŸ”‹ Battery monitoring: If the charge drops below 20%, the readings may become inaccurate. Replace the battery every 12-18 months (depending on the intensity of use).

For sensor calibration (if the readings seem inaccurate):

  1. Place it. Mi2 near a reference thermometer (e.g. mercury) for 24 hours.
  2. Compare the readings if the difference is greater than Β±1Β°C or Β±5% humidity, try resetting the sensor (remove the battery for 30 seconds).
  3. If the problem persists, check the sensor on another phone - a hardware defect is possible.

πŸ’‘

To test the sensor's accuracy, you can use a salt test: place it in a sealed bag with wet salt (humidity should stabilize at 75%). After 6-8 hours, compare the readings with the reference ones.

6.Integration with other Xiaomi devices

One of the key advantages Mi2 β€” The ability to create automation with other devices in the Xiaomi ecosystem:

  • 🌬️ Utilizer: Automatic on when humidity drops below 40%.
  • ❄️ Air conditioning: Switching modes when a set temperature is reached.
  • πŸ’‘ Smart lamps: Change in color temperature depending on the time of day and sensor indicators.
  • πŸ”” Notifications: Notifications to the phone if the temperature in the nursery exceeded 25Β°C.

To set up automation in Mi Home:

  1. Go to the Automation section β†’ Create β†’ Smart scene.
  2. Select the condition: Temperature > [value] or Humidity < [significance].
  3. Add an action (for example, turn on the humidifier).
  4. Save the script and activate it.

An example of complex automation:

⚠️ Warning: If you use a sensor to control the heater, set hysteresis (the difference between turning on and off) at least 2°C. For example, add at 20°C, turn off at 22°C. This will prevent frequent relay switching and extend the life of the equipment.

7. Prolongation of the life of the sensor

Xiaomi’s average service life Mi2 It's 3 to 5 years old, but if you use it properly, you can make it longer:

Factor.ImpactRecommendation
Frequency of the surveyThe more often the sensor transmits data, the faster the battery discharges.Set an interval of at least 10 minutes
Operating temperatureWorking at extreme temperatures (<0Β°C or >50Β°C) reduces the life of the sensorUse the sensor in the range 0-40Β°C
Environmental humidityConstant humidity >80% can cause contact corrosionFor the bathroom, use waterproof models (for example, Aqara Temperature and Humidity Sensor)
Battery qualityCheap batteries CR2032 They are quickly discharged and can leakUse batteries from Duracell, Energizer or Panasonic brands

If the sensor has stopped responding to the reset or shows clearly incorrect values (for example, temperature -50).Β°C), this may indicate a hardware malfunction:

  1. Try replacing the battery.
  2. Check the integrity of the body – cracks can lead to moisture.
  3. If nothing helps, contact Xiaomi’s support team (if warranty is available) or consider buying a new sensor.

FAQ: Frequent questions about Xiaomi Mi2

πŸ”Ή Can I connect the sensor to multiple phones at the same time?
No, Xiaomi. Mi2 It is only linked to one Mi Home account, but you can share access to the device through Sharing in the sensor settings (available to family members in the same region). Alternatively, use Home Assistant, where sensor data can be broadcast to multiple devices.
πŸ”Ή Why the sensor shows a temperature 2-3 degrees higher than the real?
This is a typical problem if the sensor is near heat sources (e.g., on a windowsill under the sun or next to the router). Solution: Move the sensor to a more neutral location. Check the calibration with a reference thermometer. If the difference persists, try resetting the sensor (remove the battery for 30 seconds).
πŸ”Ή How to export your data history from Mi Home?
The official app doesn't provide a direct export function, but there are workarounds: Use Home Assistant with Xiaomi Mi Home integration - the data will be stored in the database and available for export. For Android: use the Mi Home Data Export app (requires root rights). Manual method: Take screenshots of the graphics in Mi Home and process them through OCR-Services (e.g. Google Lens).
πŸ”Ή Does the sensor work with the iPhone?
Yes, but with limitations: πŸ“± Connection is possible only through Mi Home (the application must be installed on the iPhone). 🚫 Background data updates are worse than Android due to iOS limitations BLE-device. πŸ”„ For stable operation, it is recommended to use Xiaomi Gateway or Home Assistant.
πŸ”Ή Can I use a sensor without the internet?
Yes, but with reservations: πŸ“Ά In Mi Home, the first connection requires the Internet (to log in), and then the data will be stored locally on the phone. πŸ”„ When using Home Assistant or SensorBlue, you don’t need to use the Internet. ⚠️ Without the Internet, cloud notifications and testimony history in Mi Home are not available.