Integration of Xiaomi hygrometer with humidifier: step-by-step adjustment

Many Mi Home ecosystem owners are faced with the question of how to make disparate devices work in concert to create the perfect microclimate. Often users buy a humidifier and a separate humidity sensor, not realizing that their direct mating is technically impossible without the use of middleware. In fact, the key to success lies not in finding a hidden interface button, but in the competent configuration of automation through a cloud service or a local gateway.

In this article, we will discuss a detailed algorithm of actions that will turn a set of gadgets into a single smart system. It is important to understand that the humidifier itself does not “see” the hygrometer directly, all commands are processed by the Xiaomi Cloud server or local hub. It is the Mi Home application that acts as a dispatcher who reads the readings from the sensor and gives the command to turn the steam generator on or off.

Before you start setting up, make sure that all devices are connected to the same Wi-Fi network and tied to one account. It is critical that the account region in the Mi Home app is the same for all devices, otherwise scripting will not be available. If the humidifier is located in the China region and the humidity sensor is added to the Russia region, the system simply will not let you choose them in the same chain of action.

The principle of operation of the sensor-executor bundle

A fundamental mistake for beginners is to try to find the “connect sensor” feature in the humidifier’s menu itself. These menus are usually only designed to configure the Wi-Fi module or clean up, but not to pair the periphery. Xiaomi’s ecosystem uses the “Star” architecture, where each device independently connects to the router or gateway, and the logic of their interaction is prescribed software.

When you set up automation, you create a rule: "If device A (hygrometer) has a value below X, then device B (humidifier) needs to turn on." This check cycle occurs at a certain frequency, usually once a minute or less, to save battery power of the sensor. Reaction delay is normal and depends on the quality of the signal ZigBee or Bluetooth.

There are two main types of sensor connectivity that affect the system's response speed: ZigBee sensors require a gateway that takes over the logic processing, making it faster and more reliable even when the Internet is off. Bluetooth sensors (BLEs) often require a phone nearby or a dedicated Bluetooth-enabled gateway, as they "sleep" most of the time to save energy.

⚠️ Note: If your humidifier works only through Bluetooth (without Wi-Fi module), you will not be able to create full-fledged automation with remote control over the Internet without buying an additional Bluetooth gateway.

For complex scenarios where instant response is required, it is preferable to use devices with Wi-Fi or ZigBee 3.0 support. This will ensure stable data transfer even at long distances between rooms. In the case of older models of humidifiers without Wi-Fi support, the only option is to use an IR remote or smart socket, which we will talk about in the next sections.

📊 What is the communication protocol of your humidity sensor?
ZigBee (loose needed)
Bluetooth (BLE)
Wi-Fi (rarely for sensors)
I don't know / Other

Preparation of equipment and installation of the application

The first step is to install the current version of the Mi Home app (or Xiaomi Home in new versions).The program interface is periodically updated, partition names change, so using the old version can lead to confusion.

Once installed, add all devices to the network. Go to add devices and follow the instructions on the screen. Humidifiers usually require you to press the button combination (often these are mode and power buttons at the same time) before the sound signal or the Wi-Fi indicator flashes.

For hygrometers, the procedure is simpler: models with ZigBee need to remove the insulating tape from the battery compartment and press the reset button if the device is not found automatically. Bluetooth models are detected automatically by the application when you are within a radius of 5-10 meters from a smartphone with Bluetooth enabled.

☑️ Checking before setting up

Done: 0 / 4

Make sure that each device has the right room assigned.While this seems like a formality, it will help you quickly navigate your script list in the future, especially if you have a lot of gadgets.The room name can also be used in voice assistants if you plan to control the climate with your voice.

Creating automation in the Mi Home app

This is the central stage of the setup, where we program the behavior of the system. In the bottom menu of the application, find the Scripts tab (or Smart Home, depending on the translation version) and select the creation of new automation. The interface will suggest selecting a condition ("If...") and an action ("That...").

As a condition, choose your hygrometer. In the list of triggers, you need to find the item associated with humidity. Usually, options are available: "Humidity below...", "Humidity above..." or "Humidity has changed." To maintain comfort, we need the option "Humidity below," for example, 40%.

Then we go to action, you pick a humidifier and you pick an "Enable" action, but a simple "If dry -> Turn on" bundle will cause the humidifier to work forever until you manually turn it off, so you need to create a second automation or add a shutdown condition.

A more intelligent approach is to create a two-condition scenario or use the "Delay" function, but the most reliable method in a standard application is to create two separate automations: one turns the device on at low humidity, the second turns off when it reaches the norm (for example, 60%).

ParameterValue to inclusionSignificance for switching offRecommendation
HumidityLess than 40%More than 60%Optimal range 40-60%
Delay.0 minutes.10-15 minutes.I need to stabilize the readings.
Time to work.Round the clockRound the clockOr on schedule (night/day)
Repeat.One-horseOne-horseSo you don't spam notifications.

When setting thresholds, it is important to consider the inertia of the humidifier. The air in the room does not become wet instantly, so it can take 15-20 minutes between turning on and growing the hygrometer readings. Hysteresis (the difference between turning on and off) should be at least 10-15% so that the device does not twitch back and forth.

Why doesn't the humidifier turn off immediately?
The humidifier continues to work for some time after the shutdown command, as there is water left in the tube system and filter that continues to evaporate.This is normal, and the hygrometer readings can grow for another 5-10 minutes after the fan stops.

Setting up a smart socket for old models

If your humidifier is just a barrel without Wi-Fi support and control from your phone, the situation does not become a dead end. In this case, the Xiaomi hygrometer can control a smart socket that has the humidifier on. The logic remains the same: the sensor sees dryness -> the socket delivers current.

To do this, you'll need a humidifier with a mechanical power button that keeps it going after the power goes out, so if you put the switch to the on position and the lights in the house blink, the device should start itself when the electricity comes in. Check this function before you buy the power outlet.

In the Mi Home app, create automation: If humidity < 40%" -> "Smart socket: Turn on. And the reverse: "If humidity > 60%" -> "Smart socket: Turn off." It's a versatile solution that works with any technology, from steam generators to heaters.

⚠️ Note: When using a smart socket, make sure that the power button on the humidifier is physically fixed in the "On" position, otherwise, after the power supply is supplied, the device may remain in standby mode.

This has its advantages: you can use a hygrometer to control any appliances that are not part of the Xiaomi ecosystem, but you lose the ability to fine-tune the evaporation rate or night lighting mode if they are not mechanically controlled.

💡

Use a smart power-monitoring outlet so you can track how much electricity the humidifier uses in a month and notice if it starts consuming more than normal (a sign of scale or malfunction).

Use of extended scenarios and conditions

Standard settings allow you to create simple bundles, but the Mi Home app offers more flexible tools: You can add time of day conditions to keep the humidifier from buzzing at night, or tie work to a Home/Not Home status through the phone's geolocation.

For example, it makes sense to set the scenario to: "If the time is 23:00 to 07:00 and the humidity < 50% -> Enable the night mode of the humidifier." Night mode usually involves the minimum fan speed and turned off the backlight, which is critical for a comfortable sleep.

You can also combine data from other sensors, and if you have a window-opening sensor, you can add a condition: "If the window is open, you can add a condition -> Turn off the humidifier. This will prevent wasted electricity and the device from working for wear when the draught walks in the room.

For advanced users, the Home Assistant platform is available, which allows you to connect devices from different brands and create incredibly complex logical chains. However, for most users, the Mi Home functionality is quite enough to create a stable microclimate.

Typical problems and their solution

Despite its apparent simplicity, users often face situations where automation doesn't work, and the most common reason is status desynchronization, and the app can show that the humidifier is off even though it's buzzing, or vice versa, and in such cases, reconnecting the device to the network helps.

Another common problem is the hygrometer's sticking, and sensors, especially budget ones, can take a long time to show the old value if the humidity in the room has changed dramatically, like you just washed the floors, but the sensor is still writing 30 percent, and it helps to neatly air or move the sensor.

If notifications come but the actions don't work, check the app's access rights. On Android, the system can "kill" the Mi Home background process to save battery, causing scenarios to stop running.

⚠️ Note: Do not place the hygrometer directly near the humidifier (close) 1 The wet vapor stream immediately after exiting the device has local 90-100% humidity, which will cause the sensor to falsely operate and turn off the system, although the rest of the room is dry.

Sequence of failures:

  • 🔄 Restart router and gateway (if ZigBee is used).
  • 📱 Check for updates for the humidifier plugin in the Mi Home store.
  • 🔋 Replace the battery in the hygrometer even if the indicator shows full charge (voltage can leak under load).
  • 🗑️ Remove and recreate the automation, sometimes script configuration files get corrupted.

💡

The stability of a smart home is 90% dependent on the quality of the Wi-Fi signal and the correct location of the sensors, not the complexity of the settings.

Questions and Answers (FAQ)

Can I connect the Xiaomi hygrometer to another brand’s humidifier?
Directly through the other brand’s native app, no. However, if another brand’s humidifier connects to the Mi Home (via integration or Xiaomi’s smart socket), you can create a bundle, and if the humidifier doesn’t make friends with the Xiaomi ecosystem at all, only a smart IR or smart socket will help.
Why does the humidifier turn on, but turn off after a minute?
Most likely, the dry tank protection has worked, or the automation settings have the hysteresis set incorrectly, and also check if the "Operation Time" condition is not limited in interval, or the sensor is not in the zone of direct steam hit.
Do you need the Internet to work with automation?
If devices are connected directly over Wi-Fi, then you need the Internet to run scenarios created in the cloud. If you use a ZigBee gateway with local automation (not all models support), then scripts can be executed without access to an external network, but the initial setup requires the Internet.
How often should I change the battery in the hygrometer?
When you're actively working in automation mode (frequent status surveys), a CR2032 battery can sit down in 4-6 months. Normally, the sensors last for years.