Smart lamps, LED tapes and switches from Xiaomi have long ceased to be a curiosity — they have become an integral part of modern smart homes. But how exactly these devices interact with each other, what protocols are used for communication and why sometimes there are delays when turning on? If you are planning to build a lighting system based on the Mi Home ecosystem or have already encountered its features, this article will help to understand the technical nuances.
We won’t list the standard connection instructions (there are plenty of them on the official website), but will focus on the principles of operation: how lamps communicate with the hub, why you need a Mi Home Gateway for stable operation, and how devices with ZigBee support differ from those that work on Wi-Fi or Bluetooth Mesh.
Spoiler: Not all Xiaomi smart bulbs are equally useful. Some models require a mandatory connection to a Chinese server, others work only in tandem with the hub, and others lose functionality after updating the firmware.
1. Architecture of Xiaomi Smart Light System: What the Ecosystem Is Made of
At the heart of Xiaomi’s smart lighting is a modular ecosystem where each element plays a role.
- 💡 Light sources: lamps (Mi) LED Smart Bulb, Yeelight, LED tapes (Mi) LED Desk Lamp, Xiaomi Smart LED Strip), panels and sconces.
- 🔌 Control devices: switches (Mi Wireless Switch, Aqara Wall Switch), remotes, motion sensors.
- 📡 Hubs and Gateways: Mi Home Gateway (v1/v2/v3), Aqara Hub – Connecting devices and the cloud.
- ☁️ Cloud services: Mi Home/Mi Home Lite (applications), Xiaomi servers for remote management.
Key feature: most Xiaomi devices cannot work directly over Wi-Fi – they require an intermediate hub (gateway). LED Smart Bulb connects to Gateway via ZigBee protocol, and the gateway transmits commands to the cloud over Wi-Fi, which complicates the configuration, but makes the system more stable and energy efficient.
Exception: Yeelight lamps (e.g. Yeelight) LED Bulb, which supports direct Wi-Fi connectivity, has another drawback: when the internet is turned off, they stop responding to voice commands (like Alice or Google Assistant).
2. Communication protocols: ZigBee vs Wi-Fi vs Bluetooth Mesh
The protocol is responsible for stability, responsiveness, and even compatibility with other devices, and Xiaomi uses three main technologies:
| Protocol | Examples of devices | Pluses | Cons |
|---|---|---|---|
| ZigBee | Mi LED Bulb, Aqara Switch, Mi Gateway | Low power consumption, reliable network (mesh topology), no dependence on Wi-Fi | Requires a hub, limited range (10-20 m) |
| Wi-Fi | Yeelight Bulb, Mi Smart LED Ceiling Light | Direct connection to the router, high data transfer speed | Network loading, depends on the Internet for remote management |
| Bluetooth Mesh | Mi Bluetooth Mesh Light, Xiaomi Smart Sensor | No Wi-Fi dependency, low power consumption | Limited compatibility, possible delays |
ZigBee is the most common protocol in the Xiaomi ecosystem, and it runs at 2.4 GHz and uses a mesh topology, where each device can relay a signal. This increases reliability: if one node fails, the network will continue to work. However, for ZigBee devices, a hub (such as the Mi Home Gateway) is required, which acts as a bridge between the local network and the cloud.
Wi-Fi is convenient because it does not require additional gateways, but has two critical drawbacks:
- Devices are constantly knocking on the router, which can put a strain on the network (especially with a large number of lamps).
- When you disconnect the Internet, you lose access to cloud services (for example, to a voice assistant).
⚠️ Note: If you have Yeelight lamps connected directly to Wi-Fi and the router is configured to change IP-address (DHCP), Devices can get lost on the network after the router is restarted. Solution: fix them to static devices. IP router-setting.
3. How Control Works: From App to Voice Commands
Xiaomi’s smart light can be controlled in several ways:
- 📱 Mobile application (Mi Home or Yeelight) - basic functionality: on / off, brightness adjustment, color selection.
- 🎤 Voice assistants: Alice (Yandex), Google Assistant, Siri (via HomeKit, if the device is supported).
- 🖥️ Automation: through Mi Home Automation or third-party systems (Home Assistant, Node-RED).
- 🔘 Physical switches: Aqara Wall Switch or Wireless Switch).
The simplest scenario is that you click on a button in the Mi Home app, the command goes to the Xiaomi server, and from there to the hub (Gateway), which transmits it to the lamp via ZigBee. Response time is usually 0.5-1.5 seconds, but can increase with Internet problems.
A more complex case is local management (without the cloud), for example, if you use Home Assistant, you can configure direct access to the Mi Gateway hub via MiIO, which speeds up the system's response and works without the Internet, but this will require:
Get a device token (via Mi Home or Packet Capture)
Install Home Assistant or OpenHAB
Set up integration Xiaomi MiIO
prescribe IP-Hub address in configuration file-->
Voice control works through the cloud: when you say, "Alice, turn on the light in the living room," the command first goes to the Yandex server, then to the Xiaomi server, and then to the lamp, which can cause a delay of 2-3 seconds. To speed up the process, some users set up local commands through Home Assistant. + Node-RED.
Why do voice commands sometimes fail?
4.Nutrition and energy efficiency: why lamps flicker and warm
One of the common problems with smart lamps is dimming flickering, which is due to pulse-width modulation (PWM) that is used to control LEDs, and cheap models can have too low PWM frequency (100-200 Hz), which causes a noticeable flicker.
Another problem is overheating. Smart lamps (especially powerful ones like Mi). LED Ceiling Light has built-in drivers and chips that heat up when running for long periods of time.°C, the protection goes off, and the lamp can spontaneously turn off:
- 🔥 Do not install lamps in closed lamps without ventilation.
- 💨 Use models with aluminum radiators (e.g. Yeelight Pro).
- ⚡ Check the voltage in the network: if it is lower 200V, The lamp driver may not work smoothly.
Energy consumption of smart lamps is higher than that of conventional lamps LED, It's because of the built-in electronics, like the Mi lamp. LED Smart Bulb power 9W Standby mode consumes about 0.5W (It's not critical for home use, but if you have dozens of light bulbs, you'll have 5 to 10 kWh of extra light per year.
⚠️ Note: If the Xiaomi smart lamp started flashing after updating the firmware, try rolling it back to the previous version via Mi Home (Device About section). → Update of the PO → In some cases, new firmware contains bugs that affect PWM stability.
5. Compatible with other systems: Home Assistant, Apple HomeKit, Google Home
Xiaomi officially positions its devices as part of the closed Mi Home ecosystem, but in practice they can be integrated into other platforms.
| Platform | Supported devices | Connection method | Limitations |
|---|---|---|---|
| Home Assistant | Lamps, hubs, sensors | Xiaomi MiIO integration or ZigBee2MQTT | Device tokens needed, possible delays in cloud management |
| Apple HomeKit | Yeelight only (with HomeKit firmware) | Direct connection or via HomeBridge | Not all models are supported, manual adjustment is required |
| Google Home | Yeelight lamps, some Aqara devices | Through the cloud Mi Home or Yeelight | Internet dependency, synchronization errors are possible |
The most flexible option is the Home Assistant, which allows you to:
- 🔄 Manage devices locally (without the cloud).
- 📊 Create complex automations (for example, if the motion sensor is working and it is dark outside, turn on the light at 50% brightness»).
- 🔧 Integrate Xiaomi devices with other brands (e.g. Philips Hue or Sonoff).
To connect to Home Assistant, you will need:
- Get token devices (for example, through the Mi Home app) + Packet Capture on Android).
- Add Xiaomi MiIO integration to Home Assistant Configuration:
Example of configuration for Mi Gateway
miio:
devices:
- host: 192.168.1.100 #IP- Hub address
token: YOUR_TOKEN_HERE
model: gateway.v3Apple HomeKit officially only supports Yeelight lamps with the appropriate firmware. For other devices, you will have to use HomeBridge, the middleware that emulates HomeKit devices. config.json.
miio:
polling_interval: 5Typical problems and their solutions
Even Xiaomi’s perfectly tuned smart light system can fail, and let’s look at the most common ones.
- 🔴 Lamp does not connect to the hub: Check that the hub is on and connected to the same Wi-Fi network as the phone. Make sure the lamp is in pairing mode (usually you need to turn it on / off 5 times with a physical switch.
- 🔄 Delays on/off: If you use cloud management, go local (via Home Assistant). Check the quality of the ZigBee signal: there should be no thick walls or sources of interference between the hub and the lamp (microwaves, wireless phones).
- 💡 The lamp flickers or spontaneously turns off: Try rolling back the firmware (in Mi Home, select the device) → About the device → Update of the PO → Check the voltage in the network: if it is lower 200V, Use the stabilizer.
Problem with Cyrillic device names: If you name a lamp in Russian (e.g., "Bedroom Lamp"), voice assistants (Alice, Google Assistant) may not recognize it. Solution: use transliterate (Lampa_spalnia) orthodoxy.
The Mi Gateway hub doesn't find the device:
💡
If the Yeelight lamp is no longer responsive to commands, try resetting it to factory settings: turn it on/off 5 times in a row at intervals of 1 second.
7. Alternatives and Analogues: Which is Better than Xiaomi?
Xiaomi offers one of the most budget-friendly smart lighting options, but the system has drawbacks: hub dependency, firmware issues, limited compatibility.
| Brand | Pluses | Cons | Price (lamps) |
|---|---|---|---|
| Philips Hue | High quality light, stable operation, support for HomeKit | Expensive, requires a hub | 3,500 ₽ |
| Tuya Smart | Cheaper Xiaomi, broad compatibility, works without a hub | The build quality is worse, there may be problems with firmware | 800 ₽ |
| Aqara | Best compatibility with HomeKit, reliable ZigBee | More expensive Xiaomi, limited range of lamps | 1,500 ₽ |
| IKEA Tradfri | Low price, easy setup, hub included | Few functions, weak ecosystem | from 1,200 ₽ |
Philips Hue is the gold standard for smart lighting, but it's also priced at the right price, and the main advantage is stability: the lamps don't flicker, respond quickly to commands and support all major ecosystems (HomeKit, Google Home, Alexa). ₽.
Tuya Smart is the most budget-friendly option, but with a catch: Lamps are often sold under different brands (like Lohas or BlitzWolf), and their firmware can contain bugs. In addition, many Tuya devices “call home” to Chinese servers, which raises privacy questions.
Aqara, a subsidiary of Xiaomi, offers more robust solutions for HomeKit, such as the Aqara Hub, which supports up to 128 ZigBee devices and has a built-in siren speaker, but Aqara’s lamp range is more modest than Xiaomi’s.
IKEA Tradfri is a good option for those who want to save money, and a set of hubs and two lamps will cost less than one Philips Hue lamp, but the functionality is minimal: there is no support for dynamic scenes, and the color temperature is adjusted in only three modes.
💡
If you want maximum compatibility with Apple HomeKit, choose Aqara or Philips Hue. For a budget solution with acceptable quality, Xiaomi or the Apple HomeKit. IKEA Tradfri.