Connecting Xiaomi thermostat to a smart home: full instruction with photos and tips

Xiaomi thermostats have become an integral part of modern smart home systems, allowing you to accurately control the temperature in the room using a smartphone. However, many users face difficulties when connecting for the first time: the device does not find a network, does not sync with the application or works unstable.

We will look at not only the basic settings through the Mi Home, but also alternative ways to connect to the Home Assistant or Apple HomeKit, and also analyze the typical errors that prevent the thermostat from functioning correctly, focusing on compatibility with boilers from different manufacturers and setting schedules to save energy.

What Xiaomi Thermostats Are and How to Choose Them

Xiaomi offers several models of thermostats, differing in functionality and method of connection.

  • πŸ”Ή Xiaomi Smart Thermostat E is a budget model with Wi-Fi support, suitable for most gas and electric boilers.
  • πŸ”Ή Xiaomi Aqara Smart Thermostat E1 β€” Extended version with support for Zigbee 3.0, compatible with Aqara and Home Assistant hubs.
  • πŸ”Ή Xiaomi Mi Smart Thermostat S – premium model with touch screen and support for Apple HomeKit (requires the hub Aqara Hub) M2).

When choosing, pay attention to:

  • πŸ”Œ Connection type: Wi-Fi (easier to set up) or Zigbee (stable but requires a hub).
  • πŸ”§ Boiler Compatibility: Check if the thermostat supports your model (e.g. Vaillant, Baxi, Ariston).
  • πŸ“± Ecosystem: If you already have Xiaomi or Aqara devices, choose the same brand model for seamless integration.

For most users, the best choice is the Xiaomi Smart Thermostat E, which is compatible with 90% of household boilers and does not require additional hubs. However, if you plan to build a complex smart home system, you should immediately take a model with Zigbee.

πŸ“Š What is the thermostat Xiaomi is using?
Xiaomi Smart Thermostat E
Xiaomi Aqara E1
Xiaomi Mi Smart Thermostat S
Other
I haven't bought it yet.

Preparation for connection: what will be needed

Before installing the thermostat, make sure you have everything you need:

ComponentAppointmentNotes
Xiaomi thermostatPrimary deviceCheck the complete set: there should be mounts and cables in the box
Smartphone with Mi HomeTo set upThe app should be the latest version (update in App) Store/Google Play)
Wi-Fi router 2.4 GHzConnection to the thermostat5GHz not supported! disable network splitting in router
Screwdriver, cutters.InstallationFor fastening to the wall and connecting wires

Important point: the thermostat cannot be connected directly to the 220V power grid. It must be controlled through a boiler that provides a low-voltage signal to it (usually a low-voltage signal). 5V or 12V). If your boiler does not support external thermostats, you will need an additional relay module (for example, Shelly 1).

⚠️ Note: If your boiler is powered by the network 220V, But it doesn't have a thermostat connector, so it can break down the equipment, so you can have a specialist install an intermediate relay.

Also pre-determine the location of the thermostat.

  • πŸ“ At an altitude of 1.2-1.5 meters from the floor (there are the most accurate temperature readings).
  • 🚫 Far from direct sunlight, batteries, cookstoves.
  • πŸ“Ά In the zone of confident reception of Wi-Fi (check the signal with your smartphone).

Check the compatibility of the thermostat with the boiler|

Disable the separation of networks 2.4/5 GHz router|

Prepare tools (screwdriver, cutters)|

Select the installation site (1.2-1.5 m from the floor)|

Make sure there is a low-voltage exit on the boiler-->

Step-by-step: connecting the thermostat to the boiler

The connection process is broken down into two stages: mechanical assembly and electrical connection. Follow the instructions in strict order.

Mechanical installation

Remove the thermostat's front panel (usually mounted on latches), attach the mounting plate to the wall, and pencil the drilling spaces, use the dowels from the kit, fix the plate and place the thermostat body on it.

2. Connecting wires

Open the terminal pad on the boiler and thermostat.

  • πŸ”΄ L (phase) - to the terminal L on the thermostat.
  • πŸ”΅ N (zero) - to terminal N.
  • ⚫ COM (General - to the boiler control contact (usually referred to as TH or room thermostat).

The colors of the wires may vary -- stick to the terminal markings -- if there's no thermostat connector on the boiler, use the relay module.

Boiler (220V) β†’ Relays (e.g. Shelly 1) β†’ Thermostat (5V/12V)

⚠️ Warning: If the boiler does not respond to thermostat commands after connecting, check the polarity of the wires. COM and NO/NC Some models require reverse logic (closing instead of opening).

Once connected, turn on the boiler power. The thermostat should catch fire, which means that the physical connection is done correctly.

What to do if the thermostat is not turned on?
1. Check the voltage at the terminals of the thermostat with a multimeter (should be 5V–12V). 2. make sure that the wires are not mixed up (especially COM and NO). 3. Try resetting the thermostat with the Reset button (usually on the back). 4. If the old model boiler, an additional power supply for the thermostat may be required.

Set up the thermostat through the Mi Home app

Now, to the software part, make sure that the smartphone has the latest update to the Mi Home app (formerly called Mi Smart Home).

Addition of a device

Open Mi Home, go to Devices section β†’ Add the device (+). Choose the category of Smart Home β†’ Thermostats and follow the instructions:

  1. Click Add and select your thermostat model.
  2. Hold the button on the thermostat for 3-5 seconds until the indicator blinks.
  3. Connect to the temporary Wi-Fi thermostat network (the name will be the form) Xiaomi_XXXX).
  4. Return to the app and select your 2.4GHz home network.

If the thermostat is not present, try:

  • πŸ”„ Reboot the router and smartphone.
  • πŸ“Ά Bring the thermostat closer to the router (within 1-2 meters).
  • πŸ”Œ Shut down. VPN firewall on the phone.

2. Basic setting

After connection:

  1. Set the name of the device (for example, "Bedroom Thermostat").
  2. Select the mode of operation: πŸ”₯ Heating – for gas/electric boilers. ❄️ Cooling – if connected to air conditioning.

temperature

16–28Β°C

You can set the schedule to automatically change the temperature over time, for example:

  • πŸŒ… 7:00–9:00 β€” 22Β°C (morning rise).
  • 🏠 18:00–23:00 β€” 21Β°C (home night).
  • πŸŒ™ 23:00–7:00 β€” 18Β°C (Night savings).

πŸ’‘

To keep the temperature more accurate, place the additional Xiaomi Temperature & Humidity Sensor nearby. In the thermostat settings, select it as a data source instead of the built-in sensor.

Integration with other smart home systems

If you're not just using the Xiaomi ecosystem, you can connect the thermostat to your Home Assistant, Apple HomeKit, or Google Home. Let's look at each option.

1. Connect to Home Assistant

This will require:

  • πŸ–₯️ Installed Home Assistant (on a Raspberry Pi or other device).
  • πŸ”Œ Mi Home integration or Xiaomi Miio integration.

Add to the configuration.yaml file:

miio:




username: YOUR_XIAOMI_ACCOUNT




password: YOUR_PASSWORD




servers:




cn # or ru, de, us depending on the region

After restarting Home Assistant, the thermostat will appear in the list of devices.

  • πŸ“Š Automation (e.g., turning off heating when opening a window).
  • πŸ“ˆ Calculate energy consumption schedules.
  • πŸ”„ Integration with other devices (e.g., turn on the heater at low temperature).

2. Connection to Apple HomeKit

Officially, only Xiaomi Mi Smart Thermostat S supports HomeKit, but for other models there is a workaround through the Aqara Hub M2:

  1. Connect the thermostat to the hub via the Aqara app.
  2. In Aqara, go to Settings. β†’ HomeKit and add hub.
  3. The thermostat will appear in the app Home on the iPhone.

For models without Zigbee support, you can use Home Assistant + HomeKit Bridge plugin.

3. Voice control (Alice, Google Assistant, Siri)

To control the thermostat voice:

  • πŸ—£οΈ Yandex Alice: Connect Mi Home to Yandex Smart Home.
  • πŸ€– Google Assistant: In Mi Home, go to Profile β†’ Settings β†’ Smart home. β†’ Google Assistant.
  • 🍎 Siri: Only via HomeKit (see paragraph above).

Examples of voice commands:

  • "Alice, set the temperature in the living room to 20 degrees."
  • "OK, Google, turn on the bedroom heating."

πŸ’‘

For stable operation of the thermostat with voice assistants, turn off the energy-saving mode for the Mi Home application in the smartphone settings.

Typical problems and their solutions

Even when installed correctly, the thermostat may not work properly, and we'll look at the most common errors and how to fix them.

Problem.Possible causeDecision
The thermostat does not connect to Wi-FiThe router only works on a 5 GHz networkEnable 2.4GHz support or turn off network splitting
The boiler doesn't respond to commandsIncorrect connection of wires COM/NOCheck the connection scheme (possibly need reverse logic)
Thermostat shows wrong temperatureEffects of External Heat SourcesMove the device or use an external sensor
App doesn't see the thermostatThe device is tied to another region in Mi HomeChange region to "Russia" or "China" in your profile settings

If the thermostat is periodically disconnected from the network, check:

  • πŸ“Ά Wi-Fi signal at the installation site (must be at least lower) -70 dBm).
  • ⚑ Boiler power stability (voltage surges can knock the connection down).
  • πŸ”„ Router settings: disable Band Steering and Fast Roaming.

⚠️ Note: If after updating the firmware thermostat stopped working, try to roll back to the previous version via Mi Home. β†’ Return the previous version.

How to reset the thermostat to factory settings?
1. Turn off the power for 10 seconds. 2. Hold the reset button (usually on the back) for 15 seconds until the light flashes. 3. Connect again via Mi Home as a new device.

Energy saving tips with Xiaomi thermostat

Thermostats can be adjusted correctly to reduce heating costs by 15 to 30 percent, and here are some proven ways to do this:

  • 🌑️ Use schedule: Lower temperature at night and when no one is home. Optimal night temperature 18-19Β°C.
  • 🏑 Zone heating: Install thermostats in each room and adjust the temperature separately (in the bedroom cooler, in the bathroom warmer).
  • πŸ”„ Adaptive mode: Enable Open Window Detection in thermostat settings.
  • πŸ“Š In Mi Home, check the statistics of the boiler and adjust the schedule.

Xiaomi thermostats support geofences – the device can automatically switch to economy mode when all residents leave the house (according to data). GPS Smartphones, to set up this function:

  1. At Mi Home, go to Automation. β†’ geozones.
  2. Create a zone around the house (radius 500-1000 m).
  3. Add the rule: "If everyone leaves the zone" β†’ set temperature 16Β°C".

Another useful technique is to use scenes, such as a scene called "Getting to Work" can simultaneously:

  • Reduce the temperature to 17.Β°C.
  • Turn off the heaters in the rooms.
  • Activate the "Absence" mode in the security system.

πŸ’‘

If you have a two-tariff electricity meter, set the thermostat to more intense heating at night (when the tariff is lower).

FAQ: Answers to Frequent Questions

Can you connect a Xiaomi thermostat to a boiler without a low-voltage output?
Yes, but you will need an extra relay (like Shelly). 1 Sonoff TH16). Relay connects to the network 220V, And the thermostat controls the relay through a low-voltage signal (220V) β†’ rela (220V) β†’ Thermostat (5V/12V) It is important to choose relays with normally open contacts (NO).
How to update the thermostat firmware if it doesn’t see updates?
If there are no updates available in Mi Home, but you know the new firmware is out: Change region in Mi Home to China (there are updates earlier), reset the thermostat (turn off power for 30 seconds). Check the updates again. If nothing works, wait for the official release for your region.
Why does Xiaomi’s thermostat show temperatures 2-3 degrees higher than real?
This is a common problem because of: Putting the thermostat next to the heat source (battery, cook stove); getting direct sunlight on the housing; incorrect calibration of the sensor; Solutions: Move the thermostat to another location; use an external temperature sensor (e.g. Xiaomi). MJYD02YL). Manually adjust the readings in the thermostat settings (paragraph Calibration of the sensor).
Can you control a Xiaomi thermostat without the internet?
Yes, but with limitations: πŸ“± Local control: via the Mi Home app in the same network with the thermostat (no cloud). πŸ–₯️ Home Assistant: If the thermostat is connected via Zigbee or local Miio integration. ❌ Voice assistants: Alice, Google Assistant and Siri require internet. Use Home Assistant with a local server for full offline control.
How to transfer the Xiaomi thermostat to another boiler?
Transfer process: Disconnect the thermostat from the old boiler. Reset it to factory settings (Reset button). Connect the wires to the new boiler according to the scheme (see "Connect to the boiler"). Add the thermostat again to the Mi Home (it will appear as a new device). If the new boiler has a different type of control (for example, instead of dry contact - a modulating signal), an additional adapter may be required.