Why Alice Can't See Xiaomi Sensor and How to Fix It
You bought a temperature and humidity sensor Xiaomi (models) LYWSD03MMC, LYWSD02 or MHO-C401), But Alice refuses to see it? It's not the device that's the problem -- 90 percent of the cases are due to misintegration between the Mi Home and Yandex Smart Home ecosystems. In this article, we'll look at three proven ways to connect, including workarounds for devices without official support.
The main problem is that Xiaomi and Yandex use different data exchange protocols, and even if the sensor is successfully added to the Mi Home, Alice will not see it without additional manipulations. We tested all the current methods on firmware from 2023-2026 and identified those that work stably (including solutions for sensors with custom firmware).
Method 1: Official connection via Mi Home + Yandex Smart Home
This is the easiest method, but it only works for Yandex-enabled sensors (see the list of compatible models below). If your device is on this list, you're lucky: integration will take no more than 5 minutes.
Algorithm of action:
- π± Install the Mi Home app (version no lower than 6.5.400) and log in.
- π Add a sensor to Mi Home via Devices β Add the device β Sensors. β Temperature/humidity.
- π Go to Profile. β Settings β Smart home. β Yandex and Link Accounts.
- π£οΈ Open the Yandex app, go to the Smart Home β Devices β Add β Xiaomi.
Make sure the sensor is charged (battery) CR2032)
Update Mi Home to the latest version
Connect your phone to a 2.4 GHz network (sensors donβt work with 5 GHz)
Turn it off. VPN/proxy in the phone settings-->
β οΈ Note: If the sensor does not appear in Yandex Smart Home after the account bundle, check the region in Mi Home. It must be Russia (not China or Europe). You can change the region in the profile settings, but this will result in the reset of all devices!
| Sensor model | Support for Yandex | Need a hub? | Notes |
|---|---|---|---|
| LYWSD03MMC (Bluetooth) | β Yes. | β No. | It works through Mi Home, but you need firmware 2023+ |
| MHO-C401 (Zigbee) | β Yes. | β Yes (needs Xiaomi Gateway) | Requires locking to the gateway at Mi Home |
| LYWSD02 (Wi-Fi) | β No. | β No. | An alternative method is required (see Method 3). |
| ClearGrass CGDK2 (clone) | β οΈ Partially. | β No. | We need to re-flash it on custom firmware. |
Method 2: Connecting through third-party services (Home Assistant, IoBroker)
If your sensor isn't officially supported, you'll have to use an intermediate server, and the most reliable options are Home Assistant or IoBroker, which act as a bridge between Mi Home and Yandex Alice, transferring data from one protocol to another.
For Home Assistant, the instructions are as follows:
- Install Home Assistant on the Raspberry Pi, NAS, or Virtual Machine.
- Add Xiaomi Mi integration through Settings β Devices and services β Add integration.
- Enter the username/password from Mi Home (required to enable) API China in account settings).
- Install the Yandex Smart Home expansion through HACS.
- Link accounts in the add-on settings.
β οΈ Warning: When setting up Home Assistant, disable two-factor authentication in Mi Home β it blocks access to the Home. API. Also make sure that yours is yours. IP Xiaomi is not blocked (Chinese servers are often banned from Russian) IP).
How to check if yours is blocked IP Xiaomi?
The algorithm is similar for IoBroker, but you will need to:
- π₯οΈ Install adapter-mi-home and adapter-yandex-smart-home.
- π Get Token from Mi Home via mihome.dev.
- π Set up entity synchronization between adapters.
Home Assistant|IoBroker|Yandex Smart Home|Other|I don't use it.-->
Method 3: Flashing the sensor to alternative firmware (ATC, PVVX)
If the first two methods did not work, the last measure remains - reflash the sensor on custom firmware with support MQTT or HTTP API. This will allow you to transfer data directly to Yandex Smart Home via Yandex IoT.
The most popular firmware for LYWSD03MMC and LYWSD02:
- π¦ ATC MiThermometer supports MQTT, Home Assistant, InfluxDB.
- π¦ PVVX Custom Firmware adds HTTP API and compatibility with Tasmota.
- π¦ OpenMQTTGateway β universal firmware for devices on ESP8266.
Flashing process:
- Download the firmware from GitHub (for LYWSD03MMC Choose a version BLE).
- Unpack the sensor (neatly lid with a knife or mediator).
- Connect the contacts. GND, TX, RX ce USB-TTL adapter (voltage) 3.3V!).
- Run the firmware through esptool: esptool.py --port COM3 write_flash 0x0 firmware.bin
- Set up. MQTT in the sensor web interface (opens on 192.168.4.1 after firmware).
β οΈ Note: Flashing will void warranty and can cause the sensor to fail if you fail. If you've never worked with esptool, you better consult a specialist. Also note that once you've firmware, the sensor will stop working in Mi Home - only through the help of a new device. MQTT.
π‘
Before the firmware, take a picture of the location of the contacts on the sensor board. This will help avoid short circuits when connecting. USB-TTL adapter.
Addressing common mistakes
Even if you connect it properly, it might not be showing up in Alice or giving out incorrect data.-5 problems and solutions:
1. Alice says "The device is unresponsive"
Reasons:
- π The battery sat down (even if the sensor flashes, the voltage could subside).
- πΆ Weak signal. Bluetooth/Wi-Fi (sensor should not be further away 10 m from the lock).
- βοΈ Synchronization failure between Mi Home and Yandex.
Solution: Reboot the Xiaomi gateway (if used), check the battery with a multimeter (should be) β₯2.8V), Reconnect the sensor to Mi Home.
Data are updated once an hour (instead of 5 minutes)
This is Xiaomi's limit to save battery life. To change the interval:
- In Mi Home, go to the sensor settings β Update mode β Choose Often.
- For the stitched sensors, change the parameter update_interval configurably MQTT.
3 Alice shows temperature with error +5Β°C
Typical sensor problem LYWSD03MMC Firmware 2020-2022 Solutions:
- Update the firmware through Mi Home (if the sensor is original).
- Add the correction to Home Assistant: template: - sensor: name: "Temperature Corrected" unit_of_measurement: "Β°C" state: "{{ states('sensor.lywsd03mmc_temperature')|float - 5 }}"
4.The sensor disappeared from the Yandex Smart Home after the update
This is because the access token is reset, to restore:
- Untie your Xiaomi account in the Yandex Smart Home settings.
- Remove the sensor from the Mi Home and add it again.
- Repeat the account linking procedure.
5. "Device not supported" error
If your sensor model is not on the compatible list (see table above), use:
- π The bypass through Home Assistant (Method 2).
- π§ Flip-on ATC/PVVX (Method 3).
- π οΈ Emulation of supported device through MQTT (requires programming skills).
π‘
If the sensor is not officially supported, the only working options are Home. Assistant/IoBroker Official support from Yandex is unlikely for older models.
How to set up voice commands for the sensor
Once the connection is successful, you have to configure voice control, and Alice understands the following types of queries:
| Team team. | Example | What's he doing? |
|---|---|---|
| Request for indicators | "Alice, what's the temperature in the nursery?" | It's now coming from the sensor. |
| Contingent scenarios | "Alice, turn on the humidifier if the humidity is below 40%." | Starts the script when the condition is met |
| Historical data | "Alice, show me the weekly temperature chart." | Opens the schedule in the Yandex application |
| Alerts | "Alice, remind me if the room gets hotter than 25 degrees." | Creates a notification when the threshold is exceeded |
To create automation (e.g., turn on the heater when the temperature drops):
- Open Yandex Smart Home β Scenarios β Create a script.
- Select the condition: Temperature [sensor name] < 20Β°C.
- Add the action: Turn on [heater].
- Save the script and activate it with the voice: "Alice, start the heat."
β οΈ Attention: The scenarios only work if the sensor is online. If the connection to the sensor is interrupted (for example, the battery is dead), the automation will stop working.
Comparison of Connection Methods: What to Choose?
What's the best way to do this? Let's compare them by key parameters.
| Criteria | Official (Mi Home) | Home Assistant/IoBroker | Flip-flashing |
|---|---|---|---|
| Difficulty setting up | β (5 minutes) | βββ (1-2 hours) | ββββ (kerb-risk") |
| Compatibility | Supported models only | Any sensors Xiaomi | Any sensors on ESP8266 |
| Stability | β Tall. | β Medium (depending on the server) | β οΈ Low (possible bugs) |
| Additional functions | β Only basic. | β Graphs, integrations, scripts | β Full control through MQTT |
| Dependence on the cloud | β Yes. + Yandex) | β No (local work) | β No. |
Selection recommendations:
- π For beginners: Official method (if the model is supported).
- π οΈ For advanced users: Home Assistant + MQTT.
- π§ For enthusiasts: Refashioning on ATC/PVVX (If you need maximum flexibility).