How to connect Xiaomi nightlight to the network and smart home: full instructions with photos and videos

Xiaomi nightlights are some of the most popular smart home devices due to their combination of compactness, energy efficiency and wide integration capabilities. However, their connection often raises questions for beginners: the Mi Home app does not see the device, the indicator flashes in an obscure color, the nightlight refuses to work with the Google Assistant after changing the router. In this article, we will analyze all the current ways of connecting, from classic via Wi-Fi to alternative methods using Bluetooth Mesh and third-party firmware.

Xiaomi nightlife devices (such as Mi LED Desk Lamp, Yeelight Bedside Lamp, or Mijia Smart Night Light 2) have multiple protocols, which gives flexibility but also makes it harder to set up. We'll look at not only the basic steps, but also the solutions to problems: what to do if a device is not detected on a 5GHz network, how to reset to factory settings without a Reset button, and why a nightlight can fall off from HomeKit after an iOS update.

Important: the instruction is relevant for Mi Home firmware version 6.5.400 and later (2026). If you have an older version of the application, some menu items may differ. To check the version, go to Profile → Settings → About the program.

1.Preparation for connection: what to check before starting

Before you start setting up, make sure that all the conditions are met, which will eliminate 80% of the typical errors.

  • 📱 Smartphone on Android 8.0+ or iOS 12+. Older versions of the OS may not support Bluetooth Low Energy (BLE), pre-binding.
  • 📶 Router with support for 2.4 GHz. Xiaomi nightlights do not work on the 5 GHz network (except for models marked Dual Band in characteristics).
  • 🔌 If the nightlight is powered by a battery (e.g. Mijia Portable Night Light), make sure it is charged at least 30 times%.
  • 🌐 Stable Internet. To log in to Mi Home and download the device’s firmware, you will need access to Xiaomi servers (domain api.io.mi.com).

If you are connecting the nightlight for the first time, make sure it has not been previously linked to another Mi Account. Otherwise, a reset will be required (instruction in Section 5). Also check if your router blocks connections to IoT devices - some models (such as the TP-Link Archer C6) by default limit traffic for "unknown" gadgets.

📊 What kind of night Xiaomi you have?
Mi LED Desk Lamp
Yeelight Bedside Lamp
Mijia Smart Night Light 2
Other (write in the comments)
I haven't bought it yet.

2. Connect via Mi Home app: step-by-step guide

This is the most reliable and official way. Follow the instructions in strict order.

  1. Install the Mi Home app from Google Play or the App Store. Sign in or create a new Xiaomi account.
  2. Add the device: press “+” in the upper right corner → “Add device” → select the category “Lighting”.
  3. Choose a nightlight model from the list. If your model is not available, try the "Other device" option (suitable for Yeelight).
  4. Connect to the network: the application will prompt you to go to the Wi-Fi settings. Connect to the network that the nightlight will use (only 2.4 GHz!).
  5. Activate Nightlight Coupling: For Mi LED Desk Lamp: Hold the 5-second switch until the indicator flashes yellow. For Mijia Smart Night Light 2: press and hold the touchpad for 8 seconds (the indicator blinks blue).

Wait for completion

2 minutes.

If the error “Can not add the device” appears at the connection stage, check:

  • 🔄 Reboot the router and smartphone.
  • 📵 Make sure your smartphone is off. VPN and energy saving mode (they can block background activity of Mi Home).
  • 📡 Try connecting to another 2.4GHz network (e.g., distribute internet from your smartphone).

Is the router running in 2.4 GHz mode verified?

Is the VPN on your smartphone disabled?

Is the device charged (if the battery is charged)?

Is the Mi Home app updated to the latest version?-->

3. Alternative ways of connecting

If the standard method doesn’t work, try one of these options:

MethodSuitable modelsPlusesCons
Through Bluetooth (BLE)Mijia Smart Night Light 2, Yeelight Bedside Lamp ProNo Wi-Fi, fast bindingLimited functionality (no remote control)
Through Home AssistantAll models with Mi Home supportWorking without Xiaomi cloud, high stabilityComplicated configuration, you need a server
Through Tuya ConvertNightlights on a Tuya chip (such as some OEM-version)Allows you to provide alternative softwareRisk of “bricking”, loss of guarantee

For Bluetooth connection:

  1. Turn on Bluetooth on your smartphone.
  2. In Mi Home, select “Add Device” → “Bluthuse Devices”.
  3. Activate the night light pairing mode (see Section 2).
  4. Confirm the connection in the application.

⚠️ Note: When connected via Home Assistant, the nightlight will only work on the local network. VPN Use Nabu Casa (Payment Service).

4. Post-connection setup: scripts, voice assistants, schedule

After successfully adding a nightlight to Mi Home, you can customize it to your needs:

  • 🌓 Automatic turn on time: go to the device settings → «Schedule» → Add a rule (e.g., "On at 22:00, off at 6:00»).
  • 🎤 Voice control: For Google Assistant: link Mi Home account in Google Home settings. For Alice (Yandex): use Xiaomi Smart Home skill. For Siri: add a nightlight to HomeKit via Mi Home (iOS 14 required)+).
  • 🔄 Automation scenarios: for example, “If motion (Xiaomi Motion Sensor), turn on the nightlight at 30% brightness».

For models with RGB-backlit (for example, Yeelight Bedside Lamp) additional settings are available:

  • 🎨 Color schemes: Choose one of the preset modes ("Reading", "Relaxing", "Party") or create your own shade.
  • 🌡️ Color temperature: adjustment from 2700K (warm 6500K (cold).
  • 🔥 Effects: Blinking, smooth color change, synchronization with music (Yeelight only).

💡

If the nightlight doesn't respond to voice assistant commands, check if the cloud option is enabled in the device settings in Mi Home. Without it, remote commands won't work.

5. Resetting and problem solving

If the nightlight does not connect or works incorrectly, reset:

  • 🔄 Soft reset (retains account binding): Turn off the nightlight for 10 seconds. Turn back on and hold the power button for 15 seconds until the indicator flashes red.

Hard discharge

  1. Press and hold the power button for 20 seconds (for Mijia Smart Night Light 2 – 25 seconds).
  2. The indicator should flash green, then red.
  3. After resetting, the nightkeeper will create its own access point. Xiaomi_XXXX — Connect to it to re-set up.

Common mistakes and their solutions:

Mistake.Reason.Decision
The indicator flashes orangeI couldn’t connect to Wi-Fi.Check the password from the network, reboot the router
Nightfall doesn't respond to commandsLost connection to the cloudReconnect the device to Mi Home
The app shows "Offline"Router blocks IoT trafficTurn off AP Isolation in router settings

⚠️ Note: If the nightlight does not create an access point after resetting Xiaomi_XXXX, Check if it has custom firmware (such as Tasmota) in place, and if you want to restore it, you'll need to stitch the original software through the back door. USB-TTL adapter.

6.Integration with other smart home systems

Xiaomi nightlife can be connected not only to the native Mi Home, but also to other platforms:

  • 🏠 Home Assistant: Install the Xiaomi Miio component HACS. Get the token device with this script. Add a nightlight to configuration.yaml: light: - platform: xiaomi_miio Name: "Night Xiaomi" host: 192.168.1.100 token: YOUR_TOKEN_HERE
  • 🍎 Apple HomeKit: In Mi Home, go to your device settings → «HomeKit. Scan it. QR-nightlight code or enter a handcode.

Google Home

  1. In the Google Home app, click “+” → “Set up your device” → “Are there devices already?”
  2. Choose Xiaomi and log in.

For advanced users, if you use Node-RED, you can control the nightlight through MQTT.

  1. Install Mi Home MQTT Bridge on the server.
  2. Set up the topics for management (example: mihome/nightlight/set).
  3. Send commands in format JSON: { "power":"on", "brightness": 50, "color_temp": 4000 }
How to get a device token without an official API?
This will require: 1. Install the Packet Capture app on Android and start snipping Mi Home traffic. 2. Find a request in the logs to api.io.mi.com with the did parameter (ID 3. Remove token from server response (32 character string). ⚠️ This method violates Xiaomi’s terms of use and may result in account blocking.

7. firmware update and recovery after failures

Xiaomi’s nightlife firmware updates automatically through Mi Home, but sometimes requires a manual update, for example if the device:

  • He's not responding to commands.
  • It's spontaneously shutting down.
  • It does not support new features (e.g. integration with Matter).

For manual updates:

  1. In Mi Home, go to the nightlight settings → “Firmware Update”.
  2. If the update is not available, check your account region (some firmware comes out first for China Mainland).
  3. For forced update: Download the latest firmware from the official website (Section "Forum» → «Firmware. Unpack the archive and rename the file to miio_firmware.bin. Place the file in the root of the microSD card (for models with support, such as Yeelight). paste the card in the night and hold the power button. 10 seconds.

⚠️ Attention: Do not interrupt the update process! If the nightlight is stuck in the firmware stage (the indicator burns blue for more than 10 minutes), disconnect it from the network, wait 30 seconds and try again. If the problem repeats, contact Xiaomi with the logs from Mi Home (section "Feedbacks»).

💡

Update firmware via microSD supports only models with a memory card connector (for example, Yeelight Bedside Lamp Pro). For other nightlife, use only the update via Mi Home.

FAQ: Frequent questions about connecting Xiaomi nightlife

The nightlight is switched on, but it shuts off. What's the problem?
This is a common mistake when using a 5GHz network or if the router blocks multicast packets. Solutions: Switch the router to 2.4GHz mode (turn off 5GHz temporarily). In the router settings, enable IGMP Snooping option (usually in the LAN or Multicast section). If you use a Mesh system (for example, TP-Link Deco), temporarily connect the nightlight directly to the main router.
Can I connect a nightlight without the Mi Home app?
Yes, but with limitations: Through Home Assistant (requires a token device); through Tuya Convert (only for Tuya chips); through Bluetooth (feature will be limited); without Mi Home, you will lose access to cloud features (remote management, voice assistants).
The night light flashes green and doesn't connect.
A green flashing indicator means that the device is in network testing mode. This happens if: The router uses the network. WPA3 (switch over WPA2-PSK). It's online. MAC-filter (add) MAC-Whitelisted night address) Too weak Wi-Fi signal (move nightlight closer to router) Solution: reset (section 5) and reconnect.
How to connect a nightlight to multiple Mi Home accounts?
Officially, one device can only be linked to one account. However, there are workarounds: Family Access: in Mi Home, go to device settings → Sharing and add a second user. Home Assistant: connect a nightlight to a server and set up access for multiple users via a web interface. IFTTT: create an applet that will duplicate commands from one account to another.
Does Xiaomi Nightlight Support Matter Protocol?
For 2026, only new models (e.g., Xiaomi Smart Lamp 2 Pro) support Matter through a firmware update. To check: Open Mi Home and go to device settings. If there is a "Matter" option, follow the instructions to add to Google Home or Apple Home. If there is no option, check for firmware updates. Older models (until 2022) will not receive Matter support.