Xiaomi nightlight connection to iPhone: full instruction with error solutions

Xiaomi’s smart nightlights are not just soft light sources, but full-fledged elements of the smart home ecosystem that can integrate with the iPhone through official apps or third-party services. The device is not detected, the Mi Home app is bugged, and sync with Apple HomeKit is unstable. In this article, we will discuss all the current ways to connect Xiaomi nightlife (including the Yeelight Bedside Lamp, Mi models). LED Desk Lamp and Mi Bedside Lamp 2) with iPhone, and also solve the typical problems that arise in the process.

It’s important to understand that the connection algorithm depends on the communication protocol your nightlight supports: Wi-Fi, Bluetooth or Zigbee (for devices running through the Xiaomi Gateway).We’ll look at each option separately, and also tell you how to add a nightlight to Apple Home to control over Siri or automate by time. If you’ve already tried to connect and got an error, at the end of this article there is a section on fault diagnosis and how to fix them.

1.Preparation: What it takes to connect Xiaomi nightlight to iPhone

Before you start setting up, make sure you have everything you need:

  • πŸ“± iPhone with iOS 14.0 or later (for stable work with Mi Home and HomeKit).
  • πŸ’‘ Xiaomi nightlight with smartphone connectivity support (check the model on the box or in the instructions).
  • πŸ“Ά Stable Internet connection via 2.4 GHz Wi-Fi (most Xiaomi smart devices don’t work with 5 GHz networks).
  • πŸ”Œ Charged device (if the nightlight is powered by a battery) or connected to a socket.

One of the applications will also be required:

  • πŸ“² Mi Home (Official Application from Xiaomi for Smart Devices Management).
  • 🏠 Apple Home (if you plan to integrate with the Apple ecosystem).
  • πŸ”„ Home Assistant or HomeBridge (for advanced users who want to bypass the Mi Home restrictions).

Important! If your nightlight only supports Zigbee (like the Xiaomi MiJia Bedside Lamp), you will also need a Xiaomi Gateway that will act as a bridge between the device and the smartphone. Without a gateway, such models cannot be connected directly to the iPhone.

πŸ“Š What kind of night Xiaomi you have?
Yeelight Bedside Lamp
Mi LED Desk Lamp
Mi Bedside Lamp 2
Other (write in the comments)
I haven't bought it yet.

2. Connect via the Mi Home app (main method)

This is the most versatile method that works for most Xiaomi nightlife models. Follow the instructions Step-by-step:

  1. Install the Mi Home app from the App Store and sign up (or sign in to an existing Xiaomi account).

Critical point: if the nightlight is not detected, check:

  • πŸ”Œ Is it connected to the socket (or charged if wirelessly connected).
  • πŸ“Ά Does 2.4GHz Wi-Fi work (turn off 5GHz in router settings for connection time).
  • πŸ“± Did you allow Mi Home to access Local Network and Bluetooth in your iPhone settings (Settings) β†’ Mi Home β†’ Local area network).

Install Mi Home from the App Store|

Select the region "Russia" in the settings|

Connect the night light to power|

Turn off 5GHz Wi-Fi on the router|

Allow access to the Local Network in iOS-->

Yeelight Owners’ Tip: If your lamp supports the Yeelight App, try connecting through it – the functionality is often wider than in the Mi Home. For example, Yeelight offers advanced lighting scripts and music sync.

3. Integration with Apple HomeKit (to manage via Siri)

To control Xiaomi’s nighttime voice via Siri or turn it on schedule in Apple Home, you’ll need additional customization. Unfortunately, not all models officially support HomeKit, but there are workarounds:

Method 1: Official support (for compatible models)

Some Xiaomi nightlife devices (like the Yeelight Bedside Lamp Pro) have built-in HomeKit support to connect them:

  1. Open the Mi Home app and make sure the device is already added and working.
  2. Go to the nightlight settings (stick it in the main menu) β†’ βš™οΈ Settings β†’ Add to Apple HomeKit).
  3. Scan it. QR-Enter the 8-digit code in the Apple Home app.

Method 2: HomeBridge (for incompatible models)

If your nightlight doesn't support HomeKit directly, you can use middleware called HomeBridge, which is a solution for advanced users, because it requires:

  • πŸ–₯️ Computer or Raspberry Pi running HomeBridge.
  • πŸ”§ Installation of the plugin mihome-platform or yeelight-platform.
  • πŸ”‘ Mi Home Access Token (Opened through special services such as Mi Home Token Extractor).

Warning: Using HomeBridge may violate Xiaomi’s warranty and require a server to run continuously.If you’re not sure about your skills, it’s best to limit yourself to managing through Mi Home.

How to get a token for HomeBridge?
1. Install the Packet Capture app on your Android device or HTTP Toolkit. 2. Log in to Mi Home and intercept the request with the token (look for the serviceToken line). 3. Insert the token into the HomeBridge config. ⚠️ This method does not work on all versions of Mi Home and may require the application to roll back.

4. Zigbee nightlife connectivity (via Xiaomi Gateway)

Models like the Xiaomi MiJia Bedside Lamp or Aqara Bedside Lamp use the Zigbee protocol and cannot connect to the iPhone directly. They require a Xiaomi Gateway (such as the Xiaomi Mi Smart Home Gateway or the Aqara Hub) and customization algorithm:

  1. Add the gateway to Mi Home via Add the device β†’ Locks.
  2. Activate the pairing mode on the gateway (hold the 3 second button until you hear a voice message).

Important! The gateway should be connected to the same Wi-Fi as your iPhone. If you have multiple gateways (for example, for different rooms), make sure that the nightlight is added to the correct Zigbee network.

Model night-timerProtocolNeed a lock?Support for HomeKit
Yeelight Bedside LampWi-Fi❌ No.βœ… Yes (via HomeBridge)
Mi LED Desk LampWi-Fi❌ No.❌ No.
MiJia Bedside LampZigbeeβœ… Yes.❌ No.
Aqara Bedside Lamp T1Zigbeeβœ… Yes.βœ… Yes (via Aqara Hub)

πŸ’‘

If you have multiple Xiaomi Gateways, give them unique names in Mi Home (e.g. Bedroom Gateway, Kitchen Gateway) and make it easier to manage devices in different rooms.

5. Setup of automation and scenarios

One of the big things about smart nightlife is automation, and you can configure Mi Home and Apple Home:

  • ⏰ Schedule: Time-on/off (for example, 30 minutes before the alarm clock).
  • πŸŒ“ Adaptive lighting: changing brightness and color depending on the time of day.
  • πŸ”„ Scenarios: turning on the nightlight when the motion sensor is triggered or the door is opened.
  • 🎡 Music sync (available in Yeelight App for some models).

Example of settings in Mi Home:

  1. Open the app and select your nightlight.
  2. Go to Automation. β†’ Add.
  3. Select a trigger (such as Time or Motion Sensor).
  4. Enable the night light with the desired parameters (brightness, color temperature).

Example at Apple Home:

  1. Open the app Home and click + β†’ Add automation.
  2. Choose the time of day or people come and go.
  3. Specify the nightlight as the target device and set the settings.

πŸ’‘

For stable automation, make sure your iPhone has enabled geolocation and background activity for Mi Home and Home apps.

6. Solving common problems

If Xiaomi’s nightlight doesn’t connect to your iPhone, check out the following:

⚠️ Attention! If you connect through Mi Home and you have a "Device not responding" error, try resetting the nightlight to factory settings. 10-15 seconds until the indicator starts to flash quickly.

Problem.Possible causeDecision
Nighttime not found in Mi HomeIncompatible Wi-Fi network (only 5 GHz)Switch the router to 2.4GHz mode or create a separate network for smart devices.
The "failed to connect" errorWeak Wi-Fi signal or firewall lockBring the nightlight closer to the router or turn off MAC-filtering.
Nightlight connected but not responding to commandsThe device is tied to another region in Mi HomeChange the region to Russia or China (Mainland) and reconnect the device.
HomeKit doesn't see nightlight after addingThere is no official support for HomeKitUse HomeBridge or check for device firmware updates.

Additional advice:

  • πŸ”„ If the nightlight was previously connected to another Mi Home account, reset it and try again.
  • πŸ“± Update the Mi Home app and nightlight firmware to the latest version.
  • 🌐 If you use VPN, Disable it for the duration of the connection – it can block access to Xiaomi servers.

7. Alternative management methods (without Mi Home)

If you don’t want to use Mi Home, there are a few alternatives:

1.Yeelight app (for Yeelight lamps)

More functional than Mi Home, it supports:

  • 🎨 Extended color schemes (including dynamic effects).
  • 🎡 Synchronization with music (blinking in the beat of a melody).
  • ⏱️ Timers and alarm clocks with a smooth awakening.

2. Voice assistants (Alice, Google Assistant)

Xiaomi nightlights can be connected to:

  • πŸ—£οΈ Yandex Alice (through the Mi Home skill).
  • πŸ€– Google Assistant (via Mi Home integration).
  • 🍎 Siri (only if you add a night in your Apple Home).

Team example for Alice:

Alice, turn on the bedroom nightlight at 50% brightness.

3. Local management through Home Assistant

For those who want full control without cloud services, Home Assistant is a great option.

  • πŸ”§ Manage devices locally (without depending on Xiaomi servers).
  • πŸ“Š Create complex automations with other smart devices in mind.
  • πŸ›‘οΈ Increase privacy (data does not go to the cloud).

How to connect a nightlight to Home Assistant?
1. Install Home Assistant on Raspberry Pi or another server. 2. Add Xiaomi Miio integration via HACS. 3. Enter IP-Address and device token (received via Mi Home Token Extractor). 4 Night will appear in the Home Assistant interface as a separate device.

FAQ: Frequent questions about connecting Xiaomi nightlife to iPhone

❓ Can you connect Xiaomi night to iPhone without Wi-Fi?
Yes, but only if the model supports Bluetooth (e.g. Mi Portable) LED In this case, the control will be available only within a radius. ~10 meters from a smartphone.For most nightlifers, Xiaomi Wi-Fi is a must.
❓ Why does the nightlight flash red after connecting?
A red flashing indicator usually indicates a network connection error. Check: Correct Wi-Fi password entered. Internet availability (nightlight should "call" to Xiaomi servers). Region in Mi Home (try changing to China).
❓ How to reset the Xiaomi nightlight to factory settings?
For most models: Turn off the nightlight. Press the power button and plug it into the power outlet. Hold the button. 10-15 For Zigbee devices: reset is done through the Xiaomi Gateway (hold the button on the gateway). 5 seconds until you hear a voice confirmation).
❓ Can you control the night Xiaomi with several iPhones?
Yes, if all devices are authorized to one Mi Home account, you can also set up a shared account: In Mi Home, select a nightlight and click on it. βš™οΈ Settings β†’ Sharing. Type in an email or another user's phone, and they'll get an invitation, and they'll be able to control the device from their iPhone.
❓ Why Xiaomi Nighttime Doesn't Work with Apple HomeKit?
The reasons may be: The model doesn't support HomeKit officially (check specs); the device is tied to another region in Mi Home (try changing to China); there is no latest firmware update (check in Mi Home); Solution: use HomeBridge or check if there are alternative firmware for your model that supports HomeKit (for example, Yeelight).