How to Manage Xiaomi Lamp: From Connection to Automation

Xiaomi lamps have become an integral part of the smart home ecosystem thanks to the combination of affordable pricing, extensive customization and integration with popular voice assistants. However, many users face difficulties already at the connection stage: the device is not detected in the application, flashes differently than expected, or refuses to respond to commands. This article will help to understand all the nuances from basic configuration to creating complex automation scenarios.

We’ll look at not only the standard ways to manage the Mi Home or Xiaomi Home, but also alternative methods: voice commands, third-party apps like Home Assistant, and hidden features that the manufacturer does not mention.

Model Choice: Which Xiaomi Lamp to Buy for Your Tasks

Xiaomi’s range of smart lamps includes more than 15 models, differing in brightness, color temperature, support. RGB For basic lighting, monochrome options like the Xiaomi Mi will work. LED Smart Bulb (white, 6500K), a. to create an atmosphere β€” RGB-Yeelight lamps (e.g., Yeelight Color 2 with 16 million shades).

Key selection criteria:

  • πŸ”¦ Brightness: from 400 to 800 lm - for the bedroom enough minimum values for the living room need a reserve.
  • 🎨 Color palette: monochrome lamps are cheaper, but RGB allow you to adjust the lighting to the mood.
  • πŸ”Œ Sock type: E27 (standard E14 (minion – check compatibility with your lights.
  • πŸ“Ά Communication protocol: most lamps are enough Wi-Fi 2.4 GHz, but there are models with support for Zigbee (requires a hub).

Pay attention to Xiaomi Mi LED Smart Bulb Essential – budget model with white light (2700–6500K), It's a good fit for most household tasks. RGB-backlight, consider Yeelight LED Strip Plus – flexible tape with Wi-Fi control.

⚠️ Note: Xiaomi Lamps with Zigbee Support (e.g. Aqara Smart Bulb)>) They require a Xiaomi Gateway, and without it, they won't even work on a local network.

Connecting Xiaomi Lamp to Mi Home app

The connection process starts with the installation of the official Mi Home app (available for Android and iOS). Importantly, the lamp should be in pairing mode - to do this, turn it on the socket and wait for a quick blink (usually 3 times per second). If the lamp does not blink, reset (instruction below).

Step-by-step:

  1. Open Mi Home and log in (or create an account).
  2. Click + β†’ Add the device in the upper right corner.
  3. Select the Lighting category, then the model of your lamp.
  4. Confirm the flashing lamp and wait for the pairing to be completed (usually 10–30 seconds).
  5. Assign a room to the lamp (such as a "bedroom") and save the settings.

If the lamp is not detected:

  • πŸ”„ Restart your router – sometimes the problem is blocking new devices.
  • πŸ“Ά Check that the smartphone is connected to the 2.4 GHz network (Xiaomi lamps do not work with 5 GHz).
  • πŸ”Œ Try another power source – some socket blocks can filter signals.

Make sure the lamp flashes in pairing mode

Connect your phone to 2.4 GHz Wi-Fi

Disable VPN or proxy on your phone

Check what's on the router. DHCP-->

Xiaomi lamps do not support direct mode AP (access point) β€” they always connect through the router. If you don't have Wi-Fi, you can't control it.

Control of the lamp through voice assistants

Xiaomi lamps are compatible with Google Assistant, Alice (Yandex) and Siri (via HomeKit with workarounds).

Instructions for Google Assistant:

  1. Open the Google Home app.
  2. Press + β†’ Set up the device β†’ Are there devices already?
  3. Select Xiaomi from the list and log in.
  4. Allow access to the devices and wait for synchronization.

Examples of voice commands:

  • πŸ’‘ "Okay, Google, turn on the bedroom lamp at 50% brightness"
  • 🌈 "Alice, turn the lights in the living room blue"
  • πŸ•’ "Hey Siri, turn off all the lights in 30 minutes"

To work with Alice, you will need the Yandex Smart Home application, you need to add a Mi Home account in the Smart Home section. β†’ Add the device β†’ Note: Alice supports only basic commands (on/off/change brightness), but does not control color in the RGB-lamp.

Google Assistant

Alice (Yandex)

Siri (Apple HomeKit)

I don't use voice control.-->

⚠️ Note: By linking your Mi Home account to Google Assistant, all Xiaomi devices will be managed through Google.This could create a vulnerability if your Google account is compromised!

Creation of scenarios and automation

One of the key benefits of smart lamps is the ability to automate their operation. The Mi Home app has basic scenarios (like Turning off the lights when leaving home), but for complex logic, it’s better to use Home Assistant or Node-RED.

Examples of useful automation:

  • β˜€οΈ Simulating the dawn: a smooth increase in brightness from 6:00 to 7:00.
  • πŸšͺ No-Home Mode: Accidentally turning on/off lights in your absence.
  • 🎬 Cinema: when the TV is turned on, the lamps turn into a warm red color.
  • πŸ’€ Night mode: automatic dimming after 22:00.

To set up in Mi Home:

  1. Go to the Automation section β†’ Create.
  2. Select a trigger (time, geolocation, state of another device).
  3. Add an action – for example, turn on the lamp β†’ Set brightness 30%.
  4. Save the script and test it out.

For advanced users: In Home Assistant, you can create a script that will change the color of the lamp depending on the weather (for example, blue in the rain) or notifications on the phone (red when an important letter is sent). YAML-configuration:

automation:


- alias: "Lamp responds to weather"




trigger:




platform: state




entity_id: weather.home




action:




service: light.turn_on




target:




entity_id: light.xiaomi_bulb




data:




rgb_color: >-




{% if states('weather.home') == 'rainy' %} [0, 0, 255]




{% elif states('weather.home') == 'sunny' %} [255, 255, 0]




{% else %} [255, 255, 255]




{% endif %}

Solving typical problems with Xiaomi lamps

Even after a successful connection, users face errors: the lamp does not respond to commands, spontaneously turns off or loses connection. Let's consider the most common cases and how to fix them.

Problem.Possible causeDecision
The lamp is off.No power or a burnt driverCheck the socket, try another lamp. If it doesn't work, replace the driver (requires a soldering iron)
Does not respond to commands from the applicationLoss of Wi-Fi connectionRestart router, check lamp connection in Mi Home β†’ Devices
Spontaneous shutdownOverheating protection is activatedMake sure the lamp is not in a closed plafond. Let it cool for 10-15 minutes
Color settings are not retainedFirmware failureReset the lamp (5 on/off) and update the software via Mi Home

If the lamp is permanently disconnected from Wi-Fi, check the router settings:

  • πŸ”„ Disable Band Steering (it can force devices to 5 GHz).
  • πŸ“‘ Install a fixed Wi-Fi channel (such as 6 or 11) instead of Auto mode.
  • πŸ”’ Enable compatibility mode with 802.11 b/g/n (turn off 802.11n only).
What to do if the lamp is stuck in update mode?
If the lamp flashes yellow or green for more than 10 minutes: 1. Turn it off for 30 seconds. 2. Turn it back on and wait for the process to complete (another 5-10 minutes). 3. If it doesn't work, reset (5 times on/off) and repeat the update. Don't interrupt the upgrade process - this can lead to the lamp "bricking"!

Resetting the Xiaomi lamp to factory settings

Reset is required when the lamp is not connected to the application, the Wi-Fi password is forgotten or the device is unstable. The procedure differs depending on the model, but the general principle is the same: repeatedly switching on / off the power.

The universal method (works for most models):

  1. Put the lamp in the socket.
  2. Turn it off for 2 seconds, then turn it back on. Repeat this action 5 times.
  3. After the fifth switch on, the lamp will start flashing quickly - this is a signal to reset.
  4. Wait until the lamp starts to blink slowly (conjugation mode).

For Yeelight lamps, an alternative method is:

  1. Hold the button on the lamp body (if any) for 5-10 seconds.
  2. The lamp will flash 3 times - this is a confirmation of the reset.

Once reset, the lamp needs to be reconnected, as it was when it was first used, and all the scripts and settings that you saved will be lost.

πŸ’‘

If the lamp doesn't drop, try using another power source. USB-The ports do not provide sufficient current for discharge.

Advanced settings: local management and alternative firmware

The official Mi Home app has limitations, such as not operating a lamp without the Internet or integrating it with systems like Home Assistant without the cloud. LAN or.

For local management:

  1. Find out. IP-address of the lamp in the router (section) DHCP Clients).
  2. Use protocol commands. TCP port 55443. Example of a command to include: echo -n '{"id":1,"method":"set_power","params":["on", "smooth", 500]}' | nc -w1 [IP_lamp] 55443

Alternative firmware (such as OpenBeken or Tasmota) allows:

  • πŸ”§ Manage a lamp without a cloud Xiaomi.
  • πŸ“Š Get detailed telemetry (temperature, energy consumption).
  • πŸ”„ Integrate with MQTT for IoT projects.

⚠️ Note: Installing custom firmware will void the warranty and may cause permanent damage to the lamp. Before firmware, back up the original software via ESPHome Flasher or similar tools.

πŸ’‘

Local control speeds up the lamp's response to commands (no cloud latency) and works without the Internet, but it requires network and terminal skills.

Energy efficiency and lifetime of Xiaomi lamps

The average lifetime of Xiaomi lamps is 15,000-25,000 hours (using 3 hours a day will last 10-20 years).

  • πŸ”₯ Overheating: closed plafonds reduce the service life by 30-40%.
  • ⚑ Power quality: voltage surges destroy driver.
  • πŸ”„ On/off frequency: Each cycle reduces the life of 0.01%.

Advice on extension of service:

  • πŸ’‘ Use Night Light mode instead of completely shutting down (less driver load).
  • 🌑️ Install the lamp in a ventilated place (optimal temperature 20–25)Β°C).
  • πŸ”Œ Connect through a network filter to protect against voltage surges.

The power consumption of Xiaomi lamps varies from 5 to 10 watts depending on the model. For comparison: a conventional incandescent lamp consumes 60 watts, and a conventional incandescent lamp consumes 60 watts. LED-lamp without smart functions - 7-9 watts. Thus, a smart lamp costs 10-20% more, but this is compensated by the capabilities of automation.

FAQ: Frequent questions about Xiaomi lamps

Can you control a Xiaomi lamp without the internet?
Yes, but with reservations. On the local network, the lamp will respond to commands from the Mi Home app if the phone and the lamp are connected to the same router. However, for voice assistants (Google Assistant, Alice), the Internet is mandatory - they go to the Xiaomi cloud. Full offline management will require an alternative firmware (for example, Tasmota) or a local server like Home Assistant.
Why does Xiaomi not support 5GHz Wi-Fi?
Xiaomi lamps use chips ESP8266 or ESP32, They do not physically support the range 5 GHz. It's designed to make the device cheaper and increase the signal range (2.4 GHz is better through walls if your router only works in mode 5 GHz, you will have to buy a separate access point for the 2.4 GHz or switch on mixed mode (b/g/n) router-setting.
How to sync several Xiaomi lamps?
In the Mi Home app, you can create a group of devices: Go to Devices. Click Add Group and select lamps. Assign a name to the group (like "Living Room") and save. After that, the commands will be applied to all the lamps in the group at the same time. To synchronize color and brightness, use the script in Automation with the device state change trigger.
What if the Xiaomi lamp does not save the settings after switching off?
This problem is typical for lamps connected through a phase-break switch (not zero). When you turn off the power completely, the lamp forgets the state: πŸ”Œ Replace the switch with a wireless switch (e.g. Xiaomi Wireless Switch). πŸ’‘ Use the Always On mode (leaving the switch in the "On" position) by controlling only through the application. πŸ”§ Reconnect the wires in the switch so that phase breaks, not zero.
Can I use Xiaomi lamps on the street?
No, all Xiaomi lamps are for internal use only. They don't have moisture protection (IP-rating IP20) For the street, consider specialized models, such as the Yeelight Outdoor String Light. IP65). If you still need to light up a balcony or veranda, make sure the lamp is under the canopy and is not directly exposed to rain or snow.