How to set up Xiaomi’s smart light: from connectivity to automation

Xiaomi smart lights are not just a light source, but a full-fledged element of the smart home ecosystem that can transform the atmosphere of your home. However, many users face difficulties already at the stage of the first turn on: why the lamp does not connect to Wi-Fi, how to sync it with the Mi Home or Google Assistant, and what to do if the color reproduction is distorted? This article will help you understand all the nuances from basic settings to creating complex automation scenarios.

We will not only look at standard models like Xiaomi Mi. LED Smart Bulb or Yeelight (which, incidentally, also belong to the Xiaomi ecosystem), but also more advanced solutions with Matter support and integration into Apple HomeKit. For example, why a light can flicker when dimming, or why it suddenly disconnects from the network. If you plan to use the light in conjunction with motion sensors or voice assistants, here you will find step-by-step instructions based on the latest firmware updates from 2026.

1. Preparation for setting up: what to check before turning on

Before you start connecting, make sure that all conditions are met, which will save you most of the problems during the pairing phase.

Network requirements: Xiaomi fixtures only work with 2.4GHz Wi-Fi. If your router broadcasts two networks (2.4 and 5GHz) under the same name (SSID), Separate them in the router settings, otherwise the device will not be able to connect. MAC-filter and there are no restrictions on the number of connected devices.

  • πŸ“¦ Delivery kit: lamp, manual (often in Chinese), power adapter (if it is a desktop model.
  • πŸ“± Smartphone: Mi Home (at least 6.5.400) or Xiaomi Home for the European region is installed. Yeelight models may require a separate app.
  • πŸ”Œ Power: If it is a ceiling light, check the compatibility of the cartridge (usually) E27 or E14). For table lamps, use the original power supply unit.
  • 🌐 Region in Mi Home: Select Russia or Europe in your profile settings – this affects the available features (for example, voice control in Russian).

If you plan to use a light with Home Assistant or other automation systems, prepare an access token or data for integration in advance. For Matter-enabled models (e.g. Xiaomi Smart) LED Bulb M2) You may need to update your firmware through Mi Home before connecting to third-party platforms.

πŸ“Š What type of Xiaomi smart lighting fixture you use?
Desktop lamp.
Ceiling lamp
LED ribbon
Smart light bulb (E27/E14)
I haven't bought it yet.

2. Connecting the luminaire to the Mi Home app

The pairing process may vary depending on the model, but the overall scheme remains similar. Consider the universal algorithm for most Xiaomi and Yeelight devices.

First, plug the lamp into the socket or plug it into the cartridge. Wait for it to flash white (attachment mode). If there is no blinking, turn off and turn on the power 3 times at intervals of 2 seconds. For models with a button on the case (for example, Yeelight Moonlight), hold it for 5 seconds until the indicator blinks.

β˜‘οΈ Preparation for connection

Done: 0 / 5

Further on in the Mi Home app:

  1. Press + β†’ Add the device.
  2. Select the Lighting category.
  3. Find your model in the list (if it is not, select Another device and enter the name manually).
  4. Confirm that the lamp is flashing and follow the instructions on the screen.
  5. Select your Wi-Fi network (2.4GHz only!) and enter your password.

If the process is stuck at the "Connect to the network" stage, check:

  • πŸ”„ Is the router overloaded (try to disable other devices).
  • πŸ“Ά Wi-Fi signal: lamp should be no further than 5 meters from the router during the setup stage.
  • πŸ”’ Are there any special symbols in the name of the network (for example, #,!) – they can cause errors.
What to do if the lamp does not flash?
If the lamp does not flash after turning on, try: 1. Unscrew it and screw it back (for light bulbs). 2. Hold the button on the case for 10 seconds (for models with a button). 3. Reset the settings: turn off the power for 10 seconds, then turn it on and immediately turn off 5 times in a row. If nothing helps, check the voltage in the network (should be 220V). Β±10%).

3. Basic setting: brightness, color temperature and modes

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

  • πŸ’‘ Brightness: adjustable by slider. Note that at values below 20%, some models may start to flicker, which is a feature of power drivers.
  • 🎨 Color temperature: from warm (2700K) coldly (6500K) For the bedroom, 3,000 is recommended–4000K.
  • 🌈 Colour (RGB): Only available for multicolor models (e.g. Yeelight Color) use a color wheel or ready-made scenes (Reading, Party, etc.).
  • ⏱️ Timer: You can program automatic on/off schedule.

Color Rendering Tip: If colors seem unnatural, check the Color Space settings in the additional lamp settings. RGB instead HSV.

ParameterRecommended valuesNote
Brightness to read60–80%Avoid maximum brightness, it tires your eyes.
Color temperature for work4000–5000KCold light increases concentration.
Night mode.2700K, 10% brightnessUse from 22:00 to 7:00 for better sleep.
Color for meditationBlue or green, 30% brightnessIt helps to relax.

For models that support Music Mode (e.g. Yeelight Aurora), you can synchronize lighting with music.

  1. Open the lamp control panel.
  2. Click on the note icon 🎡.
  3. Select the sound source (phone microphone or connected device).
  4. Set up sensitivity and color gamut.

πŸ’‘

If the lamp periodically "forgets" the brightness settings, check the "Restore state after turning on" option in the additional Mi Home settings. Turn it off if you want the lamp to always turn on with the latest parameters.

4.Integration with voice assistants and third-party systems

One of the key features of Xiaomi smart lights is the ability to control voice and integrate with other platforms.

4.1 Voice control via Alice, Google Assistant or Siri

To connect to Yandex Alice:

  1. Open the Yandex application with a tied account.
  2. Go to Devices β†’ Add the device β†’ Xiaomi.
  3. Sign in through your Mi Home account.
  4. Select the lamp from the list of available devices.

Now you can use commands like:

  • "Alice, turn on the lights in the living room by 50%."
  • "Alice, make the lights warm in the bedroom."

For Google Assistant or Apple HomeKit (if the model supports Matter):

  • πŸ”— In Mi Home, go to the lamp settings β†’ Other services β†’ select the desired platform.
  • πŸ“± Follow the instructions on the screen for bundling accounts.
  • πŸ—£οΈ After synchronization, use commands like β€œOK Google, turn off the lights in the kitchen".

4.2 Connection to Home Assistant

If you use Home Assistant, add Xiaomi Miio integration:

  1. In configuration.yaml add: light: - platform: miio name: "Xiaomi Bulb" host: IP_Address Lamps token: Yours_TOKEN
  2. Get a token through the Mi Home app (use tools like Mi Home Token Extractor).
  3. Reboot Home Assistant.

After that, the lamp will appear in the interface, and you can create automations, for example:

  • πŸŒ… Turn on the lights at sunset.
  • πŸšͺ Turn off the lamp when opening the door (in conjunction with the sensor).
  • πŸ’€ Gradually extinguish the light before bedtime.

πŸ’‘

For stable work with Home Assistant, use static IP-The address for the lamp in the router settings will prevent communication loss after the network reboot.

5. Automation and scripts: from timers to complex triggers

The true power of smart lights is evident in automation. There are two types of scenarios available in Mi Home: simple (one action) and advanced (with multiple conditions).

5.1. Creating a timer

To turn the lamp on and off on a schedule:

  1. Open the lamp control panel in Mi Home.
  2. Press the timer. β†’ Add.
  3. Choose the time, days of the week and the parameters (brightness, color).
  4. Save the setting.

Example of a useful scenario:

  • 🌞 Simulating presence: accidentally turning on lights at different times in the evening.
  • πŸŒ™ Night: dim warm light from 23:00 to 6:00.
  • β˜• Morning rise: gradual increase in brightness from 7:00 to 7:30.

5.2 Advanced Automation with Triggers

To create complex scenarios:

  1. At Mi Home, go to Automation. β†’ Create β†’ Customized.
  2. Select a trigger (e.g. Motion Sensor, Time, Weather).
  3. Add a condition (optional, for example, "if someone is home").
  4. Select the action for the lamp (turn on, change color, etc.).

Examples of advanced scenarios:

Trigger.ConditionsAction.
Traffic sensor in the corridorTime between 18:00 and 23:00Turn on the lamp in 70% warm light
Level. COβ‚‚ above 1,000 ppmSomeone's home.Blink green (light to air)
Doorbell (Xiaomi camera)Dark time of the dayTurn on the light in the hallway for 2 minutes

For supported models IFTTT (For example, Yeelight can create applets for integration with other services, for example:

  • πŸ“§ Turn on the light when receiving a letter from an important sender.
  • πŸ† Blink the lamp when your favorite team wins (through integration with sports services).

πŸ’‘

If automation is not working smoothly, check network latency. In router settings, prioritize traffic for Xiaomi devices (QoS).

Typical problems and their solutions

Even after successful configuration, users are faced with errors, and let's look at the most common ones and how to fix them.

6.1 Lamp does not connect to Wi-Fi

If the process of pairing ends in an error:

  • πŸ”Œ Check the power: some models (e.g. Xiaomi Philips Eyecare) require stable voltage.
  • πŸ“Ά Wi-Fi problems: Turn off WPA3 in the router settings (use) WPA2-PSK). If the network name contains Cyrillic, rename it Latin. Try connecting to a mobile access point (if the lamp firmware permits).
  • πŸ“± Reset the lamp: turn it off for 10 seconds, then turn it on and off 5 times.

The lamp flickers or spontaneously switches off

Causes of flickering:

  • πŸ’‘ Poor power: check the voltage on the network with a multimeter. 12V (For example, LED tapes) use a power supply with a power reserve. +20%.
  • πŸ“‘ Wi-Fi interference: If the lamp is connected to a heavy-duty network, switch it to a separate 2.4 GHz channel (e.g., a 1 or 11 channel).
  • πŸ”„ Firmware conflict: update the lamp software via Mi Home (Device Settings section) β†’ Update).

If the lamp is turned off after a few minutes:

  • Check the Energy Saving settings in Mi Home – disable the Auto Shutdown option when inactivity.

6.3 Color effects don't work

If the lamp does not change colors or displays them incorrectly:

  • 🎨 Color reset: in lamp settings, select Reset to factory color settings.
How to check the serviceability LED-matrix?
Turn the lamp on at maximum brightness and shine it with your smartphone camera. If you see dark dots or stripes on the screen, some of the diodes have failed. It's incorrigible, it needs to be replaced.

The lamp does not respond to commands

If the light does not respond to commands from the app or voice assistant:

  1. Check your internet connection (the lamp must be online in Mi Home).
  2. Reboot the router.
  3. In Mi Home, go to Device Settings β†’ Network settings β†’ Check the connection.
  4. If the lamp is offline, remove it from the app and add it again.

πŸ’‘

If the problem recurs regularly, try fixing it. IP-lamp-point DHCP-Reservation routers, which will prevent conflicts when assigning addresses.

7. Optimization of energy consumption and extension of service life

Smart lamps consume more energy than conventional ones, but this consumption can be optimized: average consumption in standby mode is 0.5-1 watts, with maximum brightness - 5-12 watts (depending on the model).

Ways to reduce consumption:

  • ⏱️ Use timers: Turn off the light when it is not needed (for example, during the day).
  • πŸŒ“ Adaptive brightness: set up automatic brightness decrease in daylight hours.
  • πŸ”Œ Turn off power: If the lamp is not used for a long time (for example, during a vacation), unscrew it or disconnect it from the outlet.
  • πŸ”„ Update your firmware: Newer versions often optimize power consumption.

How to extend the service life:

  • πŸ› οΈ Avoid frequent ons and offs (at least 5 minutes interval).
  • β˜€οΈ Do not use a lamp at a temperature above 40.Β°C (for example, in closed plafonds without ventilation).
  • πŸ’§ For wet rooms (bathroom, kitchen) choose models with a protection class IP44 higher.

Average service life LED-Xiaomi lamps: 15,000-25,000 hours (about 5-7 years with 8 hours a day:

  • Use at maximum brightness.
  • Frequent voltage surges.
  • Operation in high humidity conditions (without adequate protection).

8. Alternative firmware and advanced features

For power users who lack standard functionality, there are alternative firmware such as Tasmota or ESPHome that allow:

  • πŸ”“ Remove Xiaomi’s cloud dependency (all data is processed locally).
  • πŸ“Š Add support for additional protocols (MQTT, Zigbee).
  • ⚑ Improve response to commands (reduced delay).
  • πŸŽ›οΈ Customize the effects of lighting.

How to flash a lamp on Tasmota:

  1. Disassemble the lamp case and find contacts for firmware (usually this is the case). TX, RX, GND, 3.3V).
  2. Connect the programmer (for example, FTDI) PC.
  3. Download the Tasmota firmware for your model (for example, tasmota-yeelight.bin).
  4. Use the esptool utility to download the firmware: esptool.py --port COM3 write_flash 0x0 tasmota-yeelight.bin
  5. After the firmware set up Wi-Fi and MQTT via the Tasmota web interface.

⚠️ Warning: Firmware alternative software voids the warranty and may cause the device to fail:

  • Check the compatibility of your model with the selected firmware.
  • Use a stable diet (better through a UPS).
  • Make a backup of the original firmware.

After firmware, you can control the lamp through Home Assistant without the Xiaomi cloud, as well as use it in scenarios with other devices on the Internet. ESP8266/ESP32.

πŸ’‘

Alternative firmware is especially useful for older lamp models that are no longer supported by official updates.

FAQ: Frequent questions about setting up Xiaomi lights

Can I use a Xiaomi lamp without the internet?
Yes, but with limitations. The lamp will run on a local network, but the initial setup will still require the Internet (to log in to Mi Home), once connected, you can control it via the app on the same network as the phone, and full autonomy will require the firmware of alternative software (such as Tasmota).
Why does Xiaomi not support 5GHz Wi-Fi?
Most Xiaomi smart devices (including lamps) use Wi-Fi-based modules ESP8266 or ESP32, It's designed to reduce cost and power consumption. If your router is broadcasting both networks under the same name, the lamp won't be able to connect, but you have to split the networks.
How to reset the Xiaomi lamp to factory settings?
The method depends on the model: For lamps without a button: turn off and turn on the power 5 times in a row at intervals of 1 second. For lamps with a button: hold it for 10 seconds until the lamp flashes yellow. For Yeelight: in the application go to the device settings β†’ General. β†’ Reset. Once reset, the lamp will flash white, you can plug it back in.
Can you control the Xiaomi lamp via Siri or Apple HomeKit?
Yes, but only if the model supports the Matter protocol (e.g. Xiaomi Smart). LED Bulb M2). To do this: Update the lamp firmware via Mi Home. In your device settings, select Add to Apple HomeKit. Scan QR-The old models will require a bridge, such as Home Assistant with HomeKit integration.
Why does Xiaomi not save the settings after switching off?
This is due to setting up Restore state after turning on in Mi Home. If the option is disabled, the lamp will turn on with factory settings. To fix: Open the lamp settings in Mi Home. Go to Additional settings β†’ Post-enabled status. Select Restore last state. If no option is available, update the device firmware.