How to connect Xiaomi temperature and humidity sensor to Alice: 3 working ways (2026)

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 modelSupport for YandexNeed 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:

  1. Install Home Assistant on the Raspberry Pi, NAS, or Virtual Machine.
  2. Add Xiaomi Mi integration through Settings β†’ Devices and services β†’ Add integration.
  3. Enter the username/password from Mi Home (required to enable) API China in account settings).
  4. Install the Yandex Smart Home expansion through HACS.
  5. 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?
Open the terminal and execute the command: ping api.io.mi.com If the ping passes (response type 64 bytes from...), it's okay. If not, use it. VPN with access to Hong Kong or Singapore for setting up.

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:

  1. Download the firmware from GitHub (for LYWSD03MMC Choose a version BLE).
  2. Unpack the sensor (neatly lid with a knife or mediator).
  3. Connect the contacts. GND, TX, RX ce USB-TTL adapter (voltage) 3.3V!).
  4. Run the firmware through esptool: esptool.py --port COM3 write_flash 0x0 firmware.bin
  5. 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:

  1. Untie your Xiaomi account in the Yandex Smart Home settings.
  2. Remove the sensor from the Mi Home and add it again.
  3. 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.ExampleWhat'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):

  1. Open Yandex Smart Home β†’ Scenarios β†’ Create a script.
  2. Select the condition: Temperature [sensor name] < 20Β°C.
  3. Add the action: Turn on [heater].
  4. 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.

CriteriaOfficial (Mi Home)Home Assistant/IoBrokerFlip-flashing
Difficulty setting up⭐ (5 minutes)⭐⭐⭐ (1-2 hours)⭐⭐⭐⭐ (kerb-risk")
CompatibilitySupported models onlyAny sensors XiaomiAny 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).

FAQ: Frequent questions about connecting Xiaomi sensor to Alice

Can I connect the sensor without a Xiaomi gateway?
Yes, but only if the sensor is Bluetooth-powered (e.g, LYWSD03MMC) or Wi-Fi (for example, LYWSD02). For Zigbee sensors (e.g, MHO-C401) You can also use third-party gateways like Sonoff Zigbee or CC2531, This will require additional adjustments to Zigbee2MQTT.
Why does Alice show the temperature in Fahrenheit instead of Celsius?
This is a synchronization bug between Mi Home and Yandex. To fix: Open Mi Home and check the units of measurement in the sensor settings. If there's Celsius, but Alice shows Fahrenheits, untie and reconnect the accounts. For Home Assistant, add a conversion in config: - sensor: name: "Temperature Celsius" unit_of_measurement: "Β°C" state: "{{ (states('sensor.lywsd03mmc_temperature')|float - 32) * 5/9 | round(1) }}"
How to reset the Xiaomi sensor to factory settings?
Reset: Remove the battery for 10 seconds. Insert the battery back and immediately press the button on the sensor (if any) for 5 seconds. Wait for the indicator to blink (usually blue or red). LYWSD03MMC firmware ATC Reset is performed via the web interface (192.168.4.1) in the Settings section β†’ Reset.
Can I connect multiple sensors to one Alice?
There are no restrictions on the number of sensors, but the main thing is that: All sensors are tied to one Mi Home account. The sensor names in Mi Home and Yandex Smart Home were not repeated. Zigbee sensors had enough free slots on the gateway (maximum 32 devices per Xiaomi Gateway).
What if the sensor is connected, but the data is not updated?
The problem may be on the side: Xiaomi: Check if your account is blocked (sometimes this happens when you add / remove devices often). Yandex: Remove and re-add the sensor to the Smart Home. Network: Make sure that the Xiaomi gateway is connected to the Internet (the indicator should burn green, not orange). If nothing helps, try changing the server in Mi Home (in the profile settings, select Singapore instead of Russia).