Hygrometer-thermometer Xiaomi Mijia Bluetooth Hygrothermograph 2 (LYWSD03MMC) It has become one of the most popular microclimate monitoring devices due to its accuracy, compactness and price, but many users have difficulty integrating it with Yandex's Alice voice assistant. The problem is that the device does not support direct synchronization with the Yandex ecosystem β workarounds are required through third-party services or smart home platforms.
In this article, we will analyze all working methods of connecting the sensor to Alice: from a simple solution through Mi Home and Yandex.Station to advanced methods using Home Assistant or the Internet. BLE-We'll focus on common errors (like when Alice "can't see" the device) and how to fix them. If you've already tried to set up integration and you get the message "Device is not supported," here's the solution.
First, decide what level of difficulty is right for you:
- πΉ Starting: Connecting through Mi Home + Yandex.Smart Home (minimum skills).
- πΉ Medium: Using Yandex IoT with manual device addition.
- πΉ Advanced: Setup via Home Assistant or ESPHome (requires technical knowledge).
Before you start, make sure your sensor is updated to the latest firmware, which is critical for compatibility. β Settings β About the device.
1.Preparation of the Xiaomi Mijia Hygrothermograph 2 sensor for connection
Before integrating with Alice, you need to make sure that the sensor itself is working properly and connected to the Xiaomi ecosystem, and without this step, further action is meaningless.
What needs to be done:
- π± Install the Mi Home app (available for Android and iOS).
- π Put the battery in. CR2032 There's a special slot on the back of the device.
- πΆ Turn on Bluetooth on your smartphone and allow Mi Home access to geodata (required!).
- π Add the sensor to the app: Profile β Add the device β Dashi β LYWSD03MMC.
If the sensor is not detected, try:
- Reboot Bluetooth on your phone.
- Remove and re-insert the battery.
- Make sure the distance between the phone and the sensor is less than 5 meters (no obstacles).
The sensor is added to Mi Home and displays data|Mi Home account is tied to the same region as Yandex|On the smartphone enabled Bluetooth and geolocation|The device is updated to the last firmware-->
Important! The region of your Mi Home account should match the region of your Yandex.Station. If you use a Chinese server (Mainland China), switch to Russia or Europe in your profile settings.
2. Method 1: Connect via Mi Home + Yandex.Smart home (the easiest one)
This is the official method that works for most Xiaomi devices, but with the Mijia Hygrothermograph 2, there are nuances. Alice does not support the sensor directly, so you will have to use a workaround through Yandex.Smart Home.
Step-by-step:
- Open the Yandex app on your smartphone and go to the Smart Home section.
- Click Add Add the device β Xiaomi.
- Enter the username and password from the Mi Home account (the same one that the sensor is attached to).
- Allow access to the devices. The system will scan the available gadgets.
If the sensor LYWSD03MMC If you don't appear on the list, it's not officially supported. In this case, go to Method 2 or Method 3.
What if Alice can't see the sensor?
- π Restart Yandex.Station (turn off power for 30 seconds).
- π± Remove the sensor from the Mi Home and add it again.
- π Make sure your Mi Home account is not linked to a Chinese server.
Through Mi Home. + Yandex.Smart home|Through Home Assistant|Through third-party services (e.g. IoT Link)|I haven't tried it yet.-->
Method 2: Manual addition via Yandex IoT (for power users)
If official synchronization doesnβt work, you can try adding a sensor manually through Yandex IoT, a smart device developer platform that takes a little more effort, but often works where the standard method fails.
Algorithm of action:
- Go to the Yandex IoT website and log in.
- Create a new Skill (click Create Skills) β Smart home).
- In the Devices section, click Add Device β Sensor.
- Fill in the fields: Device type: Temperature and humidity sensor. Manufacturer: Xiaomi. Model: LYWSD03MMC. ID devices: specify MAC-Sensor address (can be found in Mi Home in device settings).
Save the settings and wait for the sync (it can take up to 10 minutes).
Critical nuance: MAC-The sensor address should be in the format XX:XX:XX:XX:XX:XX (If you copy it from Mi Home without separators, integration won't work.
| Parameter | Meaning | Example |
|---|---|---|
| Type of device | sensor.temperature.humidity | Temperature and humidity sensor |
| Manufacturer | Xiaomi | Xiaomi (without quotes) |
| Model | LYWSD03MMC | Exact model name |
| ID of the device | MAC-address | 4C:65:A8:D1:12:F7 |
After adding, check if the device appears in the Yandex app (Smart Home section).If the sensor is displayed but does not update the data, try:
- π Reboot Yandex.Station.
- π΅ Temporarily turn off Bluetooth on your phone and turn it back on.
- π§ In Mi Home, update the sensor firmware (if available).
π‘
If the sensor never came along, try creating a new skill with a different name, LYWSD03MMC_v2).
Method 3: Integration through Home Assistant (for advanced)
If the first two methods fail, the most reliable, but difficult, method is to use Home Assistant (HA) It's a way of mediating between the sensor and Alice:
- π₯οΈ Server or computer (you can use Raspberry Pi).
- π‘ Bluetooth adapter (built-in or external).
- π οΈ Ready to set up Home Assistant.
Step-by-step:
- Install Home Assistant (instructions on the official website).
- Add Bluetooth Proxy integration: # In the configuration.yaml file bluetooth_proxy: active: true device: hci0 # or hci1, If you are using an external adapter
- Reboot Home Assistant.
- Add Xiaomi integration BLE through settings β Devices and services β Add integration β Xiaomi BLE.
- Select a sensor LYWSD03MMC from the list of detected devices.
- Configure Yandex Smart Home in Home Assistant: # In Configuration.yaml yandex_smart_home: client_id: yours_client_id client_secret: yours_client_secret notify: true Where client_id and client_secret You can get it in the personal account of the developer Yandex.
After setting up, the sensor should appear in Yandex.Smart home within 5-10 minutes.
- Check the Home Assistant logs for errors (Settings) β System system β Logs).
- Make sure the Bluetooth adapter is working correctly (check with the hciconfig command). -a terminally).
- Update Home Assistant to the latest version.
What if the Home Assistant canβt see the sensor?
5. Alternative methods: ESPHome and third-party gateways
If Home Assistant seems too complicated, you can use the following simpler solutions:
- π ESPHome: firmware for microcontrollers (e.g, ESP32), which allows the reading of data from LYWSD03MMC And transfer them to Yandex.Smart home.
- π‘ BLE-Gateways: Devices like Sonoff Zigbee Bridge (with Tasmota firmware) or Athom Smart Plug that can relay sensor data.
Example of settings via ESPHome:
- Install the ESPHome on ESP32 (instruction on the official website).
- Add to the device configuration a code to work with LYWSD03MMC: esp32_ble_tracker: scan_parameters: interval: 1.1s window: 1.0s active: true sensor: - platform: xiaomi_lywsd03mmc mac_address: "4C:65:A8:D1:12:F7" temperature: name: "Temperature" humidity: name: "Humidity" battery_level: name: "Battery Level"
- Sweep through the device and wait for the data to appear in the logs.
- Integrate ESPHome with Home Assistant or directly with Yandex IoT.
The advantages of this method:
- β It doesnβt depend on the Xiaomi cloud.
- β It works even if the sensor is not officially supported.
- β You can connect multiple sensors at the same time.
Cons:
- β Requires the purchase of additional equipment (ESP32 lock).
- β You need basic skills with firmware.
π‘
ESPHome is one of the most flexible solutions for integrating unofficial devices into the Yandex ecosystem, which is suitable if you are willing to take the time to set up, but want complete control over data.
Typical errors and their solutions
Even when you set it up properly, users often face problems, and let's look at the most common errors and how to fix them.
1. Alice says, "The device is not supported."
β οΈ Warning: This error occurs if the sensor is not added to Mi Home or is tied to a Chinese server.Solution: Check the region of your Mi Home account (should be Russia or Europe). Remove and add the sensor again. Update the sensor firmware (if available).
2. The sensor is connected, but does not update the data.
- π Check the battery charge (if the voltage is lower) 2.8V, substitute).
- πΆ Make sure the sensor is within range of Bluetooth (maximum 10 meters without obstacles).
- π Reboot Yandex.Station or smartphone.
3.In Home Assistant, the sensor is displayed as "unavailable"
β οΈ Attention: The problem may be Bluetooth device conflict. Solution: Disable all unnecessary Bluetooth gadgets near the server. Check that there are no duplicate integrations in the system (for example, simultaneously Xiaomi). BLE Update Home Assistant and plugins to the latest versions.
4.Yandex.Smart home doesn't see sensor after manual addition
- Check that ID The device is correctly indicated (with colons).
- Make sure that the Yandex IoT skill is published (Active status).
- Wait up to 15 minutes β sometimes synchronization takes time.
7. Comparison of methods of connection: which one to choose?
To make the choice easier, we will bring all the methods into one table:
| Method | Difficulty | Equipment required | Reliability | Is it for beginners? |
|---|---|---|---|---|
| Mi Home + Yandex.Smart home | β (simple) | Smartphone, Yandex.Station | Low (often not working) | Yes. |
| Yandex IoT (manual add-on) | ββ (middle-of-the-road) | Smartphone, MAC-sensor | Medium | Yes. |
| Home Assistant | βββ (difficult) | server/Raspberry Pi, Bluetooth adapter | Tall. | No. |
| ESPHome | ββββ (difficult) | ESP32, soldering iron (optional) | Very high. | No. |
Selection recommendations:
- π If you are a beginner, start with Method 1 or Method 2.
- π οΈ If you are willing to spend time on setting up β choose Home Assistant.
- π‘ If autonomy and control are important, try ESPHome.
Remember, there is no one-size-fits-all solution. If one method doesn't work, try another. For example, for some users, the sensor only connects successfully through the Mi Home after being reset to the factory settings (the Reset button on the back of the sensor).