Xiaomi weather station: how to connect to the phone and smart home in 10 minutes

Xiaomi's weather station is not just a temperature-measuring gadget, it's a full-fledged microclimate monitoring center in the home, and it can track humidity, atmospheric pressure, and levels. COβ‚‚ And you can even predict the weather, but before you can use all these features, you have to plug the device in correctly, and here many people have a problem: the app can't see the weather station, the sensors don't sync, the data gets lost after the firmware update.

In this article, we will discuss all ways to connect Xiaomi weather stations (including Mijia models). LYWSD03MMC, ClearGrass CGDK2 Aqara TVOC) We will focus on typical errors that interfere with stable operation, and give a checklist for quick diagnosis of problems.

If you've just unpacked the box and you don't know where to start, don't worry. It takes 10 minutes to connect, if you follow the step-by-step instructions, and if you've already got experience with Xiaomi devices, you can go straight to the Advanced Settings or Error Solving section.

Important: the instructions in this article are relevant for firmware 2023-2026, if your weather station is released before 2020 (for example, for example, the weather station is not available for the first time, LYWSD02), Some steps may be different – note the section on outdated models.

What weather stations Xiaomi supported

Xiaomi has produced several generations of weather stations, and not all of them connect the same way.

  • πŸ“± Mijia LYWSD03MMC β€” The most popular version with Bluetooth 5.0, supports external temperature/humidity sensors.
  • 🌑️ ClearGrass CGDK2 β€” budget version with a basic set of sensors (without a COβ‚‚), Compatible with Mi Home and Aqara Home.
  • πŸ’¨ Aqara TVOC β€” Advanced station with air quality sensor (TVOC), It is a part of the Aqara brand but uses the same ecosystem.
  • ⚑ Mijia LYWSD02 β€” 2018, requires manual addition to Mi Home via regional server.

If your model is not listed, check its name on the box or in the documentation. Weather stations branded Yeelight or Viomi may have a different connection algorithm.

Xiaomi weather stations with index "CN" in the title (e.g, LYWSD03MMC-CN) Officially intended for the Chinese market and require the region to change in Mi Home to China for proper operation.

πŸ“Š What kind of weather station Xiaomi you use?
Mijia LYWSD03MMC
ClearGrass CGDK2
Aqara TVOC
Another model.
I haven't bought it yet.

What you need to connect

Before you start setting up, make sure you have everything you need:

  • πŸ“± Smartphone on Android 8.0+ or iOS 12+ (For Mi Home).
  • πŸ”‹ Charged weather station (most models run on batteries) AAA or battery 18650).
  • πŸ“Ά A stable Internet connection (Wi-Fi or mobile network) for synchronization with the cloud.
  • πŸ”„ Mi Home (or Aqara Home for the respective models) app downloaded from the official store.

For Bluetooth models (for example, LYWSD03MMC) will be required:

  • πŸ”΅ Bluetooth 4.2 enabled+ smartphone.
  • πŸ“ Location of the phone within a radius of 5-10 meters from the weather station (walls and partitions can degrade the signal).

⚠️ Warning: If you use an iPhone, turn off the "Continuous Bluetooth" feature in the charge saving settings before connecting.

To integrate with Home Assistant or other smart home systems, you will need to:

  • πŸ–₯️ A server or device with a Home Assistant installed (e.g., Raspberry Pi).
  • πŸ”‘ Token from your Mi Home account (if you plan to use cloud sync).

β˜‘οΈ Preparation for connection

Done: 0 / 5

Basic connection via Mi Home

This is the easiest way that most users can use. Follow the instructions Step-by-step:

Step 1: Installation of the application and registration

Download Mi Home from Google Play or the App Store. If you don't already have a Xiaomi account, register via email or phone number. Importantly, link your account to the same region as your weather station (usually China or Europe).

Step 2: Adding a device

  1. Open Mi Home and click "Add Device" (Icon "+" top-right).
  2. Select the category "Sensors" β†’ "weather station".
  3. If your model doesn’t appear in the list, search by name (for example, LYWSD03MMC).
  4. Click "Next" and follow the instructions on the screen.

Step 3: Synchronize over Bluetooth

For Bluetooth models (for example, LYWSD03MMC):

  1. Make sure the weather station flashes a blue light (if not, press and hold the reset button for 5 seconds).
  2. In the application, confirm the search for the device and wait for the connection.
  3. After successful synchronization, assign a name to the weather station (for example, "Home Weather") and select a room.

For Wi-Fi models (e.g. Aqara) TVOC):

  1. Connect to the temporary Wi-Fi network that the weather station creates (network name usually begins with the Xiaomi_).
  2. Return to Mi Home and wait for the device to be automatically detected.
  3. Select your main Wi-Fi network and enter your password.

Step 4: Configure the data display

Once connected, open the weather station card in Mi Home. Here you can:

  • πŸ“Š Set up alerts for critical values (e.g. humidity below 30%).
  • πŸ”„ Update the firmware (if an update is available).
  • πŸ“€ Export data to Google Sheets or other services via automation.

⚠️ Warning: If the data is updated with a delay (every 10-15 minutes) after the connection, check the energy saving settings on the phone. Some manufacturers (such as Huawei or Xiaomi) limit the background work of the Mi Home.

πŸ’‘

For stable weather station operation, turn off battery optimization for the Mi Home app in the phone settings.

Advanced settings: Home Assistant and third-party systems

If you're using Home Assistant, OpenHab, or another smart home system, Xiaomi's weather station can be integrated via a local protocol or cloud.

Method 1. Local Bluetooth connection (without cloud)

This method is suitable for LYWSD03MMC and other models with Bluetooth LE. You'll need it:

  • πŸ–₯️ Device with Home Assistant and Bluetooth adapter (e.g. Raspberry Pi 4 with module) BCM43438).
  • πŸ“¦ ESPHome or Bluetooth Proxy.

Instructions:

  1. Install ESPHome in the Home Assistant.
  2. Add the following code to the yaml configuration (replace). MAC_ADDRESS to the actual address of your weather station): esp32_ble_tracker: scan_parameters: interval: 1100ms window: 1100ms active: true sensor: - platform: xiaomi_lywsd03mmc mac_address: "MAC_ADDRESS" temperature: name: "Temperature" humidity: name: "Humidity" battery_level: name: "Battery Level"
  3. Reboot Home Assistant and check for new sensors in the Devices section.

Method 2: Cloud Integration with Mi Home Token

If the local method is not suitable (for example, due to a weak Bluetooth signal), you can use the cloud-based method. API Xiaomi:

  1. Get your Mi Home account token via miot-spec.org.
  2. Add the following code to configuration.yaml: xiaomi_miot: username:!secret mi_user password:!secret mi_pass devices: - id: "DEVICE_ID" # Unique. ID weather-stations: "YOUR_TOKEN"
  3. Indicate. DEVICE_ID (You can find it in Mi Home via Device Settings β†’ General information").

The advantage of the cloud method is stability, but the data is updated less often (every 5-10 minutes). Local Bluetooth provides updates every 10 seconds, but requires a close hub location.

How to find out MAC-weather-station?
Open the nRF Connect application (Android/iOS) Or Bluetooth Scanner. Turn on the scan and find a device called LYWSD03MMC similar. MAC-address will be in format XX:XX:XX:XX:XX:XX.

Typical errors and their solution

Even with the right connection, Xiaomi’s weather station may not work properly, and here are the most common problems and ways to fix them:

Problem.Possible causeDecision
The weather station is not located in Mi HomeDisparity between the account and device regionChange the region in Mi Home to China or Europe (depending on the model)
Data is updated every 30 times+ minuteEnergy saving on the phone or in the applicationTurn off battery optimization for Mi Home and add it to exceptions
Temperature readings are overstated by 2-3Β°CThe Effect of Heat from Station ElectronicsPlace the device away from direct sunlight and home appliances
Synchronization with Home Assistant is not workingWrong Token or DEVICE_IDCheck the token through miot-spec.org and reboot Home Assistant
The weather station is constantly shut down.Weak Bluetooth signal or discharged batteriesReplace the batteries and make sure the phone is within a 5-meter radius.

If your problem is not listed in the table, try resetting the weather station to the factory settings.

  1. Press and hold the reset button (usually located on the back) for 10 seconds until the indicator blinks quickly.
  2. Remove the device from the Mi Home and add it again.

⚠️ Warning: After resetting all alert settings and data history will be deleted. If the weather station is connected to Home Assistant, you will need to reconfigure the integration.

πŸ’‘

If the weather station shows incorrect humidity (for example, 99% under normal conditions), wipe the sensor with a dry wipe - it may accumulate condensation.

Connecting legacy models (LYWSD02 others)

Xiaomi weather stations released before 2020 (e.g, LYWSD02 or LYWSD01MMC), You may not be able to support the current Mi Home version:

Step 1: Change region in Mi Home

  1. Open Mi Home and go to Profile β†’ Settings β†’ Region".
  2. Choose "Mainland China"
  3. Leave the account and log in again.

Step 2: Manual addition of the device

If the automatic search does not work:

  1. Press "Add device" β†’ "Other".
  2. Enter the model name manually (for example, LYWSD02).
  3. Follow the instructions on the screen, holding the button on the weather station until the indicator flashes.

Step 3: Update the firmware (optional)

For some older models, Xiaomi is releasing alternative firmware with support for Home Assistant. LYWSD02 can be installed ATC1441 through a community instruction, that will allow:

  • πŸ”„ Update data every 10 seconds (instead of 10 minutes).
  • πŸ“‘ Transfer data over Bluetooth 5.0 instead of the outdated protocol.
  • πŸ”§ Set up sensor calibration.

Warning: Firmware will void the warranty and may cause the device to fail if it fails.

Automation with Xiaomi weather station

Weather station data can be used to create smart scenarios, and here are some examples:

  • 🌬️ Smart humidifier: Automatically turn on the humidifier if the humidity drops below 40% (via Mi Home or Home Assistant).
  • πŸ”₯ Heating control: Send notifications to your phone if the temperature in the nursery rises above 25Β°C.
  • πŸšͺ Ventilation: Automatically open smart-drive windows if the level COβ‚‚ exceeds 1000 ppm (for models with sensors) TVOC).
  • β˜” Weather forecast: Integration with OpenWeatherMap to compare home data with street data.

To set up automation in Mi Home:

  1. Open the Automation section (Icon) βš™οΈ bottom-screen).
  2. Press "Add" β†’ "Smart scene".
  3. Select a condition (e.g., "Temperature") > 28Β°C) and action (e.g. β€œSwitch on air conditioning").

In Home Assistant, automation is configured through YAML-configuration or visual editor Node-RED. Example code for a humidifier:

automation:


- alias: "Low humidifier"




trigger:




platform: numeric_state




entity_id: sensor.humidity




below: 40




action:




service: switch.turn_on




entity_id: switch.humidifier

πŸ’‘

To make the automation work accurately, use 10-15-minute averages, rather than instant readings, to avoid false positives.

Frequent questions

Can I connect Xiaomi weather station without Mi Home?
Yes, but with limitations. For Bluetooth models (e.g, LYWSD03MMC) You can use applications like SensorBlue or Home Assistant with local integration. TVOC) You need to use Mi Home or Aqara Home to set up your first setup.
Why does the weather station show a temperature 2-3 degrees higher than the real one?
This is a typical problem due to the heating of the electronics inside the enclosure. Solutions: Place the station away from direct sunlight and household appliances. Use an external temperature sensor (if the model supports the connection of additional sensors). Set up the calibration manually via alternative firmware (e.g, ATC1441).
How to export data from a weather station to Excel or Google Sheets?
Export methods: Through Mi Home: Manually copy data from history (inconvenient for long-term monitoring). Through Home Assistant: Use the Google Sheets Exporter or InfluxDB add-on to record data. IFTTT: Set up an applet that sends temperature/humidity values to Google Sheets when you change.
How many batteries do you need for a weather station and how long do they last?
Depends on the model: LYWSD03MMC: 1 battery CR2032, It lasts 1 to 1.5 years in standard use. CGDK2: 2 batteries AAA, The service life is 6-12 months. TVOC: In-built battery, charging lasts for 2-3 weeks (depending on the frequency of updates). Tip: use high-quality alkaline batteries (for example, Duracell or Energizer) - they hold a charge longer with low power consumption.
Can I use Xiaomi weather station on the street?
Most models are not designed for street use, as: The body has no protection against moisture (IP-rating IP20). Sensors are not designed for extreme temperatures (operating range: from 0)Β°C to 50Β°C) Direct sunlight distorts temperature readings, except that if the weather station is under a canopy or in a protected place (for example, on a balcony), it can be used to monitor street temperature.