How to Connect Xiaomi Mijia 2 to Phone and Wi-Fi: A Complete Guide to Error Solutions

Xiaomi’s Mijia 2 smart bulb (also known as the Yeelight LED Smart Bulb or Mi LED Smart Bulb 2) is one of the most popular lighting solutions in the Xiaomi ecosystem. It supports 16 million shades, brightness and color temperature adjustment, and integration with voice assistants. But before you enjoy all of these features, the device needs to be plugged in correctly. And here users often wonder why the lamp doesn’t find the network, how to reset or what to do if the Mi Home app can’t see the device.

In this article, we will look at all the ways Xiaomi Mijia 2 connects, from standard Wi-Fi sync to alternative methods using Bluetooth or third-party applications. We will focus on common errors (e.g. Error: -40403 or Unable to connect) and how to fix them. If you just unpacked the lamp or are trying to reconfigure it after resetting, this guide will help you avoid frequent problems and save time.

1.Preparation for connection: what to check before starting

Before you start synchronizing, make sure that all conditions are met, which will save you from most errors during the connection stage.

  • πŸ“± Smartphone on Android/iOS with the Mi Home app installed (version no lower) 6.0). You can download it from Google Play or App Store.
  • 🌐 Wi-Fi router with support for the standard 2.4 GHz (lamp does not work with 5 GHz.
  • ⚑ The Xiaomi Mijia 2 lamp is screwed into the cartridge and is on the network. It should flash white (standby connection mode).
  • πŸ”„ The region in Mi Home is set in China or Russia (depending on the version of the lamp firmware).

Important: If the lamp was previously connected to another device, it should be reset. To do this, turn off and turn on the power 5 times in a row at intervals of 1 second, after reset, the lamp will start flashing quickly yellow.

⚠️ Note: Some routers (such as TP-Link or Keenetic) are hidden by default SSID 2.4 GHz network, combining it with 5 GHz under one name, in which case create a separate network for 2.4 GHz in the router settings.

πŸ“Š What kind of Xiaomi lamps are in your home?
Only Mijia 2.
Yeelight (other models)
Philips Hue
Other smart lamps
I haven't bought it yet.

2. Standard connection via Mi Home (Step-by-step)

This is the main way of synchronization, which works 90% of the time. Follow the instructions carefully to avoid errors.

  1. Open the Mi Home app and log in (if you haven't already done so) and make sure the region is selected correctly (see Preparation).
  2. Click on the + icon (add device) in the upper right corner.
  3. Select Lighting, then search for the Mi LED Smart Bulb (or Yeelight) model.
  4. Keep the lamp on until it blinks quickly (pairing mode).
  5. Enter the password from your Wi-Fi network (2.4GHz) and wait until the connection is complete. the process can take up to 2 minutes.

If it goes well, the lamp will stop flashing and light up with white light, and the app will display its icon with control.

The lamp flashes white/yellow|Smartphone connected to Wi-Fi 2.4 GHz|Mi Home app updated|Region in Mi Home - China/Russia|Router does not block new devices-->

3. Alternative ways of connecting

If the standard method didn't work, try one of these options, which is helpful in cases where the lamp can't see the network or the application is not seeing the network.

Method 1: Connect via Bluetooth (for new versions of Mi Home)

Some Mijia 2 models support initial Bluetooth tuning.

  1. Turn on Bluetooth on your smartphone.
  2. In Mi Home, select Add Device β†’ Lighting β†’ Mi LED Smart Bulb (Bluetooth).
  3. Follow the instructions on the screen. Once paired, the lamp will automatically connect to Wi-Fi.

Method 2: Use the Yeelight application

If Mi Home stubbornly doesn't see the lamp, try the official Yeelight app (available for Android and iOS).The algorithm is similar but sometimes works more stable.

Method 3: Manual Wi-Fi data entry

For advanced users: if the lamp is visible on the network but not connected, you can try to enter Wi-Fi data manually through ADB (root access is required on Android), however, this method is risky and only suitable for advanced users.

How do I find out the version of the lamp?
In the Mi Home app, go to the lamp settings (icon) βš™οΈ) β†’ About the device β†’ If the version is older than 1.4.0, it is recommended to update it through the Software Update menu in the same section.

4. Typical errors and their solutions

Even with the right connection, there can be failures, and let's look at the most common errors and how to fix them.

Error Code/SituationReason.Decision
Error: -40403The lamp cannot connect to Wi-FiCheck that the 2.4 GHz network is correctly entered, the router does not block new devices
Unable to connectWeak Wi-Fi signal or interferenceBring the lamp closer to the router (up to 2 m) and try again.
The lamp flashes redFirmware error or hardware failureReset the lamp (5 times to turn on/off) and update the firmware via Mi Home
App fails to find lampLamp is not in pairing mode or conflict with other smart devicesTurn off other smart bulbs, reset Mijia 2 and repeat the search

⚠️ Note: If the lamp after connection is unstable (it turns off independently, does not respond to commands), check the energy saving settings on the router. Some models (e.g. Xiaomi Mi Router) turn off sleeper devices to save battery power – disable this feature in the router control panel.

5.Configure after connection: what can be done

Once synchronized successfully, the lamp's full capabilities will be unlocked, and here are the basic functions that you should configure right away:

  • 🎨 Color and brightness: in the Mi Home application you can choose any shade from the palette or set the color temperature (from warm). 2700K coldly 6500K).
  • ⏰ Schedule: automatically turn on/off lights over time (e.g., simulate the presence of a home).
  • πŸ”„ Scenarios: create combinations with other Xiaomi devices (for example, the lamp lights up when the motion sensor is triggered).
  • 🎀 Voice control: connect to Alice, Google Assistant or Siri through the app settings.

Tip: If the lamp is used in the bedroom, set up a smooth awakening. In Mi Home, select Schedule β†’ Add β†’ Awaken and set the time, brightness and duration of the light increase (for example, from 1% to 100% in 30 minutes).

πŸ’‘

To prevent the lamp from flickering during dimming (brightness adjustment), in the router settings, turn off the Band Steering function (combining 2.4 and 5 GHz networks).

6. Connect to third-party systems (Home Assistant, Yandex, Google Home)

Xiaomi Mijia 2 supports integration with popular smart home platforms.

Integration with Home Assistant

If you use Home Assistant, add the lamp through the Yeelight component:

  1. Open the configuration.yaml file.
  2. Add the lines: light: - platform: yeelight devices: 192.168.1.100: # Replace the IP lamp name: "Bedroom lamp" transition: 1000
  3. Reboot Home Assistant.

Connection to Yandex Alice

To control voice through Alice:

  1. In Mi Home go to Profile β†’ Settings β†’ Yandex.
  2. Log in and allow access to the devices.
  3. Tell Alice, "Put the sleeping lamp on."

⚠️ Note: When integrated with Google Home, the lamp may lose some of its features (e.g., color temperature control).This is a limitation of the Mi Home protocol - use the original app for full control.

7. Reset and flashing: if nothing helps

If the lamp stops responding or connecting, you may need to completely reset or update the firmware.

Hardware discharge

Follow the sequence:

  1. Turn the lamp off the network.
  2. Turn it on for 2 seconds, then turn it off.
  3. Repeat 5 times. The lamp should flash yellow and drop.

Firmware update

In Mi Home, go to lamp settings β†’ Device β†’ Software update. If a new version is available, install it. Importantly, do not turn off the lamp during the upgrade, this can lead to its β€œbricking” (loss of performance).

πŸ’‘

If the lamp doesn't flash after it's dropped, check the power supply, and it's probably the cartridge or the wiring that's the problem, not the lamp itself.

Frequently Asked Questions (FAQ)

The lamp is connected, but it's not responding to commands.
Check: Wi-Fi stability (reboot router); router power saving settings (turn off IGMP Snooping); upgrade lamp firmware and Mi Home app; if it doesn't work, remove the lamp from the app and plug it back in.
Can I connect the lamp without the Mi Home?
Yes, through Yeelight or a platform like Home Assistant, ioBroker, but you still need a Mi Home to set up the first setup (to get the token).
The lamp flashes red when you plug it in. Is that normal?
No, red flashing signals an error. Try: Reset the lamp (5 times turn on / off), update the firmware via Mi Home. Check compatibility with your router (some ASUS models block Xiaomi devices).
How to connect multiple Mijia 2 lights to one group?
In Mi Home: Go to Devices. Select lamps (hold each one for selection). Click Group and name (e.g., Living room) and all lamps in the group will be controlled synchronously.
Can I use a lamp without the internet?
Yes, but with limitations. Local control (on/off, color change) will work over Mi Home if the smartphone and the lamp are connected to the same Wi-Fi network. Remote access and voice commands require Internet.