Smart light Xiaomi: how the system works and the principles of its operation

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).

📊 What kind of smart home ecosystem do you use?
Xiaomi Mi Home
Aqara
Tuya Smart
Home Assistant
Another.

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:

ProtocolExamples of devicesPlusesCons
ZigBeeMi LED Bulb, Aqara Switch, Mi GatewayLow power consumption, reliable network (mesh topology), no dependence on Wi-FiRequires a hub, limited range (10-20 m)
Wi-FiYeelight Bulb, Mi Smart LED Ceiling LightDirect connection to the router, high data transfer speedNetwork loading, depends on the Internet for remote management
Bluetooth MeshMi Bluetooth Mesh Light, Xiaomi Smart SensorNo Wi-Fi dependency, low power consumptionLimited 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:

  1. Devices are constantly knocking on the router, which can put a strain on the network (especially with a large number of lamps).
  2. 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?
The reason most often lies in an unstable Internet connection or conflict. IP-For example, if you have a double address. NAT (Two routers on the network, cloud services may not see the devices, so you can set up port overlay or switch the router to bridge mode).

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.

PlatformSupported devicesConnection methodLimitations
Home AssistantLamps, hubs, sensorsXiaomi MiIO integration or ZigBee2MQTTDevice tokens needed, possible delays in cloud management
Apple HomeKitYeelight only (with HomeKit firmware)Direct connection or via HomeBridgeNot all models are supported, manual adjustment is required
Google HomeYeelight lamps, some Aqara devicesThrough the cloud Mi Home or YeelightInternet 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:

  1. Get token devices (for example, through the Mi Home app) + Packet Capture on Android).
  2. 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.v3

Apple 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: 5

Typical 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.

    BrandPlusesConsPrice (lamps)
    Philips HueHigh quality light, stable operation, support for HomeKitExpensive, requires a hub3,500 ₽
    Tuya SmartCheaper Xiaomi, broad compatibility, works without a hubThe build quality is worse, there may be problems with firmware800 ₽
    AqaraBest compatibility with HomeKit, reliable ZigBeeMore expensive Xiaomi, limited range of lamps1,500 ₽
    IKEA TradfriLow price, easy setup, hub includedFew functions, weak ecosystemfrom 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.

    FAQ: Answers to Frequent Questions

    Can you use Xiaomi smart bulbs without a hub?
    Only Yeelight lamps (e.g. Yeelight) LED Bulb can work without a hub – they connect directly to Wi-Fi. Other devices (e.g. Mi) LED Smart Bulb requires Mi Home Gateway or Aqara Hub to communicate over ZigBee.
    Why does Xiaomi’s lamp not respond to voice commands via Alice?
    There are several reasons: the lamp is connected via the hub, and it has no connection to the Xiaomi cloud (check the Internet).In the Mi Home settings, integration with Yandex.Alice is not included (profile section). → Smart home. → Yandex. The device is named in Russian — rename it in English or transliterate.
    How to reset Xiaomi smart lamp to factory settings?
    The method depends on the model: For Mi LED Smart Bulb: Turn on/off the lamp 5 times in a row (with intervals of 1 second). For Yeelight: hold the button on the case (if any) for 5 seconds or use the command in the Yeelight app. For Aqara: press and hold the button on the hub for 10 seconds.
    Can you connect Xiaomi lights to Home Assistant without the cloud?
    Yes, but you need to: Get a token device (for example, through Mi Home) + Packet Capture. Add Xiaomi MiIO integration to Home Assistant. Use ZigBee devices ZigBee2MQTT adapter-wise CC2531 or ConBee II. For more information, see Home Assistant Documentation.
    Why Xiaomi smart bulbs flicker when dimming?
    This is due to pulse-width modulation (PWM), which is used to adjust brightness. In cheap lamps, the PWM frequency is too low (100-200 Hz), which leads to noticeable flickering. Solutions: Buy a high-pWM lamp (from 1 kHz, for example, Yeelight Pro). Do not use dimming below 20% brightness. Check the voltage on the network - if it is lower 200V, flicker.