Xiaomi Mijia 2 thermometer: how to connect to the gateway

Xiaomi’s smart temperature and humidity sensors have become the standard for building affordable climate control in an apartment. The Mijia Temperature and Humidity Monitor 2 (LYWSD03MMC) features an excellent E-ink screen and energy efficiency, but its integration into the smart home ecosystem requires the right approach. Many users have difficulty trying to tie the device directly to the cloud without passing the local gateway.

The challenge is that the sensor works on Bluetooth Low Energy (BLE) protocol, not Wi-Fi. This means that remote control and scripting without a smartphone requires an intermediary, and this intermediary is a gateway that translates Bluetooth signals into your router's network. In this article, we will discuss the configuration process, hardware selection and solution of typical pairing problems.

To get started, you’ll need not only the sensor itself, but also a stable 2.4GHz Wi-Fi network. Make sure your smartphone has a Mi Home app with a region that matches your account. The wrong region choice often causes devices to simply not appear on the list available to add.

Equipment and training required

Before you start the installation, it is important to make sure that there is a compatible equipment. LYWSD03MMC It doesn't have a built-in Wi-Fi module, so it can't connect directly to the router. You'll need a gateway device that supports Bluetooth Mesh or a direct connection. BLE-In the Xiaomi ecosystem, this function can be performed by various gadgets.

The most common gateway options are smart speakers, special hubs, or even some models of robot vacuum cleaners and projectors. If you have a Xiaomi Smart Home Hub (CN or Global version) or a Xiaomi Smart Speaker speaker, they will be the perfect control center.

⚠️ Note: The sensor is exclusively 2.4 GHz. If your router is broadcasting a single network for 2.4 and 5 GHz with the same name (Smart Connect), there may be errors when adding the device.

Also make sure that the sensor has a factory battery, usually a CR2032 type element, before inserting the device, remove the protective film from the contact, if any, and a weak battery charge can lead to unstable connection or inability to initially adjust.

πŸ“Š What gateway do you plan to use?
Special hub Xiaomi
Smart speaker
Robot vacuum cleaner
Smartphone as a gateway

Choosing the right gateway for the ecosystem

Not all gateways work equally well with second-generation temperature sensors. The key is to support Bluetooth Mesh protocol or have a built-in Bluetooth module with gateway function. Old Zigbee hubs without a Bluetooth module will not be able to see this thermometer.

The table below shows the most popular devices that are guaranteed to work as gateways for Mijia 2:

The deviceType of connectionSupport for scenariosStability
Xiaomi Smart Home HubWi-Fi + BT/BLEComplete.Tall.
Xiaomi Smart Speaker (Play/Pro)Wi-Fi + BTComplete.Medium
Mijia Multimode GatewayZigbee/BT/Wi-FiComplete.Tall.
Smartphone (Mi Home)BluetoothLimited.Low.

If you plan to use a smart speaker or multimedia gateway, make sure that the firmware device is updated to the latest version.Manufacturers often add support for new peripherals through the gateway software updates.

πŸ’‘

Use the official Xiaomi gateway with Bluetooth Mesh support for maximum sensor autonomy and minimal data transfer delay.

The process of adding a device to the Mi Home app

The pairing procedure is quite simple, but requires attention to the details of the interface. Open the Mi Home app and make sure the right region is selected in the upper right corner Β«+Β» to add a new device. The app will suggest scanning. QR-code or find the device automatically.

Hold your smartphone right up to the temperature sensor. The thermometer should show a Bluetooth icon or connection icon. In the app, click Add when the device is found. If the automatic search didn't work, select Sensors and find Mijia Temperature and Humidity Monitor 2 in the list manually.

During the setup process, the app will ask you to select the gateway through which the sensor will operate. Choose the gateway that is physically closest to the sensor's location, which will provide the best signal level. Once the gateway is selected, the synchronization process will begin, which can take 10 to 30 seconds.

β˜‘οΈ Checklist of connection

Done: 0 / 4

Once you add it successfully, you can rename the device and assign it a room, which is important for the proper voice control and logical distribution of devices across the application interface.

Setup of automations and scenarios

The key value of a smart thermometer is not to look at readings, but to automatically control the climate. The Mi Home app allows you to create complex scenarios based on temperature and humidity data. To do this, go to the Scenarios section and create a new one.

As a condition (If), select your temperature sensor, you can set trigger thresholds, such as "If the temperature is above 25Β°C" or "If the humidity is below 40%." Conditions for state change are also available, allowing you to respond to sudden jumps in the indicators.

The action (Then) is to choose to control other smart home devices, such as turning on a smart outlet that has an air humidifier connected to it, or running the air conditioner through an IR remote, and you can also notify your smartphone or voice messages through a speaker.

⚠️ Note: Scenarios linked to Bluetooth sensors are only executed if the gateway is online and has access to the cloud or local logic. Make sure the chosen gateway supports local scripting (Local Smart) if the Internet is unstable.

An example of a complex scenario
If the temperature is > 26 Β° C And the time from 12:00 to 18:00 β†’ Turn on the air conditioner at 23 Β° C. If the temperature is < 24 Β° C β†’ Turn off the air conditioner.

Solving Connectivity and Stability Issues

Sometimes users are faced with a situation where the sensor is displayed as β€œOffline” or the data is updated with a long delay, most often due to the peculiarities of the Bluetooth protocol, which sends data packets not constantly, but at certain intervals to save energy.

If you lose all communication, try removing the device from the application and adding it again by removing and inserting the battery, and moving the gateway closer to the sensor or installing an additional signal repeater if the distance is large, and walls and metal structures can significantly weaken the signal.

Check the firmware version of the sensor itself. The Mi Home app sometimes shows a notification of an available update when you open the device card. The firmware update can fix connection bugs and improve the stability of the device.

the ability to transmit data.

πŸ’‘

The stability of the sensor depends on the quality of the Bluetooth signal between it and the gateway, not on the speed of your Internet.

Alternative management and firmware methods

For advanced users, alternative sensor firmware is available, such as the ATC MiFlora project, which allows you to change the poll intervals, the format of Bluetooth advertising, and even calibrate the screen, but for standard use in conjunction with the official Xiaomi gateway, this is not required and may not be warranty.

Integration with other smart home systems, such as Home Assistant or HomeKit, is also possible through plugins and bridges, in which case the gateway can be a Raspberry Pi with installed Xiaomi Gateway 3 integration, which gives complete local independence from the manufacturer's servers.

However, for most users, the standard β€œSensor – Official Gateway – Mi Home” bundle is the most reliable and easy to set up, it does not require programming knowledge and provides sufficient functionality for household use.

Why can't the sensor see the gateway?
Make sure the gateway supports Bluetooth (not just Zigbee), check if the sensor is attached to another account, and try to bring the sensor as close as possible to the gateway during setup.
How often does the sensor send data?
In standard mode, updates occur about once a minute when the readings change, and at a stable temperature, the interval can be increased to save battery life.
Can I use a sensor without the internet?
Without the Internet, remote notifications and cloud-based scripts won’t work, but local scripts (if the gateway supports Local Smart) can work.
What's the range of the sensor?
In open spaces, Bluetooth can reach 10-15 meters. In a walled apartment, the effective range is usually 5-8 meters to the gateway.