How to set up Xiaomi smart lamp: from connectivity to automation

Xiaomi smart lamps are not just a light source, but a full-fledged smart home system element that can be controlled from a smartphone, voice or schedule. However, many users face difficulties already at the first connection stage: the lamp does not find the network, flashes strange colors or refuses to synchronize with the application. In this article, we will examine all the stages of settings, from unpacking to creating complex automation scenarios, including solving typical problems.

Feature of Xiaomi lamps (Yeelight series, Mi) LED Mi Home compatible, in that they require not only a physical connection to the power grid, but also the right connection to the Mi Account ecosystem, without which you can't control brightness, color, or turn on the lamp by timer. We’ll look at customization through the official Mi Home app, alternative firmware for advanced users, and integration with Google Assistant, Alice, and Home Assistant.

If you've never worked with a smart device before, don't worry: it's as simple as possible. And for those who want to make the most of the lamp, we've added sections on custom firmware, cloud-free local management, and even self-repair for typical breakdowns. Let's start with the simplest one: connecting the lamp to the network.

1. Preparation for setting up: what to check before switching on the lamp

Before you screw the lamp into the cartridge, make sure you have everything you need. A common mistake of beginners is to try to plug the device in without pre-preparedness, which leads to failures during the synchronization stage.

  • πŸ”Œ Stable power: the lamp must be screwed into a working cartridge with a voltage of 220V (for Russia). Check that the light switch is in the position of the on-board - otherwise the lamp will not be able to connect to the Wi-Fi.
  • πŸ“Ά 2.4GHz Wi-Fi network: Xiaomi smart bulbs don’t work with 5GHz networks. If your router broadcasts both frequencies under the same name, divide them in the router settings.
  • πŸ“± Mi Home app: download the latest version from Google Play or App Store.Older versions may not support new lamp models.
  • πŸ” Mi Account: Sign up or sign in to an existing account.The lamp is tied to the account, not the phone!

If you have dual-band network, but the lamp can't find Wi-Fi, try:

  1. Turn off 5 GHz temporarily (in router settings).
  2. Make sure that the 2.4 GHz network name does not contain Cyrillic symbols or spaces.
  3. Manually set the Wi-Fi channel (recommended 1, 6 or 11 – they are least susceptible to interference).

⚠️ Note: If you use a guest or customer isolation network (optional) AP Isolation, the lamp won't be able to connect.

πŸ“Š What Xiaomi Smart Lamp Is It You Use?
Yeelight (colored)
Mi LED (white-light)
Philips Hue with Mi Home support
Another model.
I haven't bought it yet.

2. Step-by-step instruction: how to connect a Xiaomi lamp to Wi-Fi

When you're done, you go to the most important step, which is connecting the lamp to the network, and it takes no more than 5 minutes, if you follow the algorithm.

  1. Put the lamp in the cartridge and turn on the power. It should start flashing slowly white (for Yeelight Color) or yellow (for Mi). LED). If there is no flashing, check the cartridge and voltage.
  2. Open Mi Home and press. + β†’ Add the device. Select the Lighting category.
  3. Scanning: The app will automatically try to find the lamp. If this does not happen, press the device does not blink? and follow the prompts.
  4. Wi-Fi Connection: Select your 2.4GHz network and enter your password. The lamp should flash green (success) or red (error).
  5. Room binding: Assigns the lamp to the room (e.g., Living room) and save settings.

If the light flashes red at the Wi-Fi connection stage, check:

  • πŸ”„ Password Correctness (Yes, This is the Most Common Error!).
  • πŸ“‘ Wi-Fi signal: lamp should be no further than 10 meters from the router.
  • πŸ”’ Router settings: turn off WPA3 (use WPA2-PSK), MAC-filtering VPN.

Critical information: If the lamp flashes blue after a failed connection, it should be reset. To do this, turn it on / off 5 times in a row (with intervals of 1 second).

β˜‘οΈ Checklist of successful connection

Done: 0 / 4

3. Customization via Mi Home: Color, Brightness and Schedule Management

Once connected, the lamp will appear in the Mi Home main menu, tap its icon to open the control panel, and you can access the basic functions here:

  • 🎨 Color and temperature: slider to choose hue (for Yeelight Color) or temperature of light (2700K–6500K white-light).
  • πŸŒ“ Brightness: 1% to 100% adjustment. If it's below 10%, the lamp can flicker, which is normal.
  • ⏰ Schedule: set up automatic on/off time, for example, you can program the sunset at 21:00 and dawn at 7:00.
  • πŸ”„ Scenarios: Pre-setting (e.g. Reading – 70% brighter warm light).

To create a timetable:

  1. Open the lamp card. β†’ Schedule β†’ Add.
  2. Select the action: Turn on, off or Change color/brightness.
  3. Specify the time and days of the week (e.g., Pn-Pt, 8:00).
  4. Keep the rule. The lamp will follow the schedule even without the phone.

If you need to sync multiple lamps (like a chandelier), create a group in Mi Home:

  1. Hold the icon of one lamp. β†’ Choose the rest β†’ To form a group.
  2. All lamps in the group will be operated simultaneously.

πŸ’‘

If the lamp doesn't respond to commands from Mi Home, try restarting your phone or reinstalling the app. Often the problem lies in the cache.

4. Voice control: Alisa, Google Assistant and Siri

One of the key features of smart lights is voice control, and you need to tie the lamp to one of the voice assistants to do that.

AssistantRequirementsCommands for managementLimitations
Alice (Yandex)Yandex appendix + Mi Account is linked to Yandex.ServicesAlice, turn on the light in the living room, Alice, turn the light blue.Does not work with lamps (only one)
Google AssistantGoogle Home appendix + synchronization with Mi HomeOkay, Google, turn off the kitchen lamp, OK Google, set the brightness to 50%.Requires English-language lamp firmware for some models
Siri (Apple HomeKit)Home Assistant or HomeBridge Bridge (requires customization skills)Hey, Siri, turn on the night.Not officially supported, need workarounds

To connect to Alice:

  1. Open the Yandex application β†’ Devices β†’ Add the device.
  2. Choose Xiaomi and sign in through Mi Account.
  3. Allow access to the lamps.

For Google Assistant:

  1. In Mi Home, go to Profile β†’ Settings β†’ Google Assistant.
  2. Click Sync and confirm access.
  3. Open Google Home and add the device through + β†’ Set-up of the device β†’ There are devices already?.

⚠️ Warning: If the lamp stops responding to commands from Mi Home after syncing with Google Assistant, restart it (turn off/on power for 10 seconds.

5. Advanced settings: local management and custom firmware

The official Mi Home app limits the functionality of the lamps, for example, you can't:

  • πŸ”— Control the lamp without the Internet (all commands go through the cloud Xiaomi).
  • 🎚️ Set up a smooth on/off with millisecond accuracy.
  • πŸ”§ Integrate the lamp into Home Assistant or other systems without workarounds.

So the solution is to flash it to alternative software, like Tasmota or ESPHome, and it gives you:

  • πŸš€ Local control by protocol MQTT (cloudless).
  • πŸ”Œ Advanced automation (e.g., reaction to motion sensors).
  • πŸ›‘οΈ Enhanced security (no reliance on Xiaomi servers).

For firmware Tasmota will need:

  1. Break the lamp and connect to its chip ESP8266 through USB-TTL adapter.
  2. Download the firmware from the official website.
  3. Switch through esptool (team: esptool.py) write_flash 0x0 firmware.bin).
  4. Set up MQTT-broker (e.g. Mosquitto).

Warning: Firmware will void the warranty and can disable the lamp if you fail.If you are unsure of your skills, use Home Assistant with official firmware through Xiaomi Miio integration.

How to get back the original firmware after Tasmota?
The rollback will require the original firmware bin file for your lamp model, which can be extracted from the backup via Mi Home (if it was made before the firmware) or found on forums like this. 4PDA. The firmware is executed by the same esptool command, but with the original file.

Typical problems and their solutions

Even after successful setup, Xiaomi lamps can behave unstable.-5 problems and ways of solving them:

Problem.Possible causeDecision
The lamp is off.The power driver has burned or LED-chipIf you have 220V, but the lamp is not shining, you need to change the driver.
Not connected to Wi-Fi.Incorrect router settings or weak signalShut down. WPA3, install a fixed 2.4 GHz channel, restart the router.
Blinks random flowersFirmware failure or automation conflictReset the lamp (5 times to turn on / off), update the firmware through Mi Home.
Not responding to voice commandsSynchronization with Mi Account fell offUntie and re-tether the lamp in the settings of the voice assistant.
It's spontaneously shutting down.Overheating or capacitor failureCheck the temperature of the case. If it's hot, provide ventilation or replace the capacitors.

If the lamp does not hold the settings (for example, it resets color after turning off), the cause may be:

  • πŸ”‹ Weak capacitor in the power supply (needs soldering of a new one).
  • πŸ“‘ Poor Wi-Fi connection (lamp fails to keep state in the cloud).
  • πŸ”„ Firmware failure (try to update the software via Mi Home).

To diagnose hardware problems, you can use the test mode:

  1. Turn off / turn on the lamp 3 times in a row (with an interval of 1 second).
  2. After the third turn on, hold the button on the case (if any) for 5 seconds.
  3. The lamp will go into self-testing mode: flash red (driver error), green (Wi-Fi module) OK), blue (memory error).

πŸ’‘

If the lamp flashes red in test mode, it's a 100% hardware fault, and repairs are only possible with a soldering iron or a board change.

7.Integration with Home Assistant: Full control without cloud

Home Assistant is an open smart home platform that allows you to control Xiaomi lamps locally, without depending on Mi Home servers.

  1. Install Home Assistant on the Raspberry Pi, NAS, or Virtual Machine.
  2. In the configuration file configuration.yaml add:
light:


- platform: xiaomi_miio




name: "Xiaomi Yeelight"




host: 192.168.1.100 # IP- address of lamp




token: "YOUR_TOKEN_HERE" #Token from Mi Home

To get a token:

  1. In Mi Home, open up information about the lamp β†’ General settings β†’ About the programme.
  2. Click on the firmware version 5 times in a row until the token appears.
  3. Copy it in configuration.yaml.

When you reboot Home Assistant, the lamp will appear in the interface. Now you can:

  • πŸ“Š Create automation (for example, switching on when moving).
  • πŸ“ˆ Monitor energy consumption (if the lamp supports).
  • πŸ”§ Configure complex scenarios with other devices (e.g. synchronization with smart outlets).

⚠️ Note: If you use Home Assistant over cloud access (such as Nabu Casa), the lamp will still depend on the Internet. NGINX or Cloudflared.

8 Repair and upgrade: what to do if the lamp breaks

If the lamp stops working, don't throw it away. 80 percent of the time, it's self-solving.

  • πŸ’‘ It doesn’t shine, but the indicator is burning: LED-You have to take the lamp apart and ring the circuit with a multimeter. R1 (100 ohms).
  • πŸ”Œ It doesn't work at all: check the fuse (if you have one) and the capacitors on the board. Bloated capacitors should be replaced with new ones with the same capacity.
  • πŸ“‘ Not connected to Wi-Fi: the problem in the module ESP8266. Try to re-interpret it or replace it with a new one. ~300 rubles).

To disassemble the Yeelight lamp:

  1. Carefully put the diffuser with a plastic card (it is kept on the latches).
  2. Unscrew the screws of the board mounting (usually Torx) T5).
  3. Call the power chain: from 220V to the driver, then to LED-matrix.

If you want to upgrade the lamp, you can:

  • πŸ”‹ Replace the power supply with a more powerful one (for example, to increase brightness).
  • πŸŽ›οΈ Add an external controller (e.g. Wemos) D1 Mini) for extended control.
  • πŸ”„ Install the radiator on the driver if the lamp overheats.

Critical information: when replacing LED-Use the same power voltage (usually 3B for Yeelight) to run over the voltage, and burn instantly!

FAQ: Answers to Frequent Questions

Can you control a Xiaomi lamp without the internet?
Yes, but with the caveat: Mi Home is not, as all teams go through the Xiaomi cloud, through Home Assistant or local. API β€” Yes, if the lamp and the phone are on the same network. After flashing on Tasmota, yes, the control is on protocol. MQTT. For full autonomy, set up a local server (for example, on a Raspberry Pi).
Why does the lamp flash after it's turned off?
This is a typical problem for capacitive driver lamps: πŸ”Œ Switch illumination: even in the OFF position, a current is passing through the lamp, charging the capacitors. πŸ’‘ Low driver quality: cheap models have no residual current protection. Solutions: Replace the switch with a lightless model. Set the capacitor parallel to the lamp (e.g. 0.1 ΞΌF, 400V). Use a smart socket to completely shut down.
How to reset the Xiaomi lamp to factory settings?
There are two ways: Software Reset: In Mi Home, open the lamp settings. Select Delete the device. Confirm the deletion, the lamp will reset and flash yellow. Hardware reset (if the lamp does not respond): Turn off / turn on the lamp 5 times in a row (interval of 1 second). After the fifth on, hold the button (if any) 10 seconds. The lamp will flash red-green-blue and reset. After reset, the lamp must be reconnected to Wi-Fi.
Which Xiaomi lamps support color change?
In the line Xiaomi has several series with support RGB: Yeelight Color (models) YLDP02YL, YLDP06YL) β€” 16 million shades Yeelight Color Temperature - only warm/cold white (2700K–6500K). Mi LED Smart Bulb – only brightness and temperature. Before buying, check the model on the Yeelight website – there is a filter for the characteristics of the product.
Can I use a Xiaomi lamp on the street?
No, all Xiaomi Yeelight and Mi models LED protection-class IP20,: 🌧️ Not protected from moisture (water will lead to short circuits). πŸ’¨ Not protected from dust (can accumulate inside the case), for the street suitable specialized models, such as Yeelight Outdoor (if they are available) or lamps of other brands with a wide range of lights. IP65.