How to connect a Xiaomi lamp to HomeKit: 3 working methods (without a hub and with Home Assistant)

Xiaomi smart bulbs are some of the most popular lighting devices in the smart home ecosystem, but their native integration with Apple's HomeKit is often questionable. Unlike Philips Hue or Nanoleaf, most Yeelight and Mi models are the most popular. LED They don't support HomeKit out of the box, but that doesn't mean they can't be connected: there are workarounds over Home Assistant, third-party bridges, or even branded hubs with firmware from the community.

In this article, we will discuss three proven integration methods, from the simplest (via Home Assistant) to alternative solutions for users without a server. LED Desk Lamp 1S) You can find solutions here, if you've tried to plug in the lamp and you get the message "Accessory is not responding" or "Can't add to HomeKit" - here you will find solutions.

1.Why does Xiaomi lamps not work directly with HomeKit?

The main reason is the lack of MFi (Made for) certification. iPhone/iPad) The company is focusing on its own Mi Home ecosystem and the Zigbee protocol (for devices with a hub), while Apple requires manufacturers to do so:

  • πŸ” Hardware support for the HomeKit chip (like in Nanoleaf or Eve lamps).
  • πŸ“œ Certifying every device at Apple, which costs money and time.
  • πŸ”„ Updates to the firmware with protocol support HAP (HomeKit Accessory Protocol).

The exceptions are rare models, for example, Xiaomi Mi. LED Smart Bulb (Zigbee) with firmware from third-party developers (for example, Zigbee2MQTT). However, even in this case, additional software is required for the bridge between Zigbee and HomeKit.

⚠️ Note: Yeelight lamps (e.g. Yeelight Color 2 or Yeelight) LED Strip Plus) use Wi-Fi and are not compatible with HomeKit without an intermediary, and can only be connected via Home Assistant or cloud services like HomeBridge.

πŸ“Š What kind of Xiaomi lamp do you use?
Yeelight Color
Mi LED Desk Lamp
Mi LED Smart Bulb (Zigbee)
Another model
I haven't bought it yet.

Home Assistant is an open platform for smart homes that can act as a bridge between Xiaomi and HomeKit.

  • πŸ”Œ Local management (without depending on the cloud).
  • πŸ› οΈ Support for almost all lamp models Xiaomi/Yeelight.
  • πŸ”„ Automation between devices of different brands.

The setup will require:

  1. Installed Home Assistant (on Raspberry Pi, NAS or in Docker).
  2. Xiaomi Miio or Yeelight integration (depending on the lamp model)
  3. The HomeKit Controller or HomeKit Bridge.

Install Home Assistant (version 2026.6 or later)|

Add integration of "Xiaomi Miio" through Settings β†’ Devices and services|

Get a device token through the Mi Home app (instruction below)|

Install the HomeKit Bridge extension from HACS|

Reboot Home Assistant after settings

-->

Step-by-step:

1. Get the device token:

Open the Mi Home app, find your lamp in the list of devices and copy it to Device ID And Token:

1. Go to profile β†’ β€œAbout the program” β†’ β€œDebugging options”.


2. Enable "Wi-Fi Debugging" and "Bluetoothbug."




3. Use the Miio Debug tool to get a token.

2. Add the lamp to the Home Assistant:

Go to Settings. β†’ Devices and services β†’ Add integration and select Xiaomi Miio. type in IP-Lamp address (find it in router), Device ID Token.

3. Set up the bridge in HomeKit:

Install the HomeKit Bridge expansion from HACS (Home Assistant Community Store after installation:

1. Go to Settings β†’ Additions β†’ HomeKit Bridge.


2. Click "Start" and scan the QR- code through the Home app on your iPhone.




3.The lamp will appear in HomeKit as an accessory.

Model lampProtocolRequired integration into HASupport for HomeKit
Yeelight Color 2Wi-FiYeelightYeah (over the bridge)
Mi LED Desk Lamp 1SWi-FiXiaomi MiioYeah (with token)
Mi LED Smart Bulb (Zigbee)ZigbeeZigbee2MQTTYeah (with firmware)
Yeelight LED Strip PlusWi-FiYeelightYes (limited)

⚠️ Note: If the lamp does not appear in HomeKit after you have set up the bridge, check it out: πŸ”Œ Connect Home Assistant and Lamps to a Wi-Fi Network. πŸ”„ Xiaomi Miio integration version (update via the HACS). πŸ“± Home Assistant permissions in router settings (open ports 8123 and 21063).

πŸ’‘

Home Assistant is the most reliable way to integrate, but requires constant server operation. For users without technical skills, HomeBridge is the best way to do this.

Method 2: Use HomeBridge (for users without Home Assistant)

HomeBridge is a lightweight server that emulates a HomeKit bridge on your computer or Raspberry Pi. Unlike Home Assistant, it does not require complex configuration, but has limitations:

  • ⚑ It only works when the device is on (for example, Mac mini or Raspberry Pi).
  • 🌐 Depends on the Xiaomi cloud (unless you use local plugins).
  • πŸ”§ Requires manual configuration of the configuration file.

To get started:

  1. Install HomeBridge on your device (instructions for Windows, macOS, Raspberry Pi).
  2. Install a plugin for Xiaomi:
npm install -g homebridge-xiaomi-miio

3. Set up. config.json:

{


"platforms": [




{




"platform": "XiaomiMiio",




"devices": [




{




"ip": "192.168.1.100",




"token": "YOUR_DEVICE_TOKEN",




"name": "Xiaomi Lamp"




}




]




}




]




}

4. Launch HomeBridge and add the lamp to HomeKit via the Home app on iPhone (will appear) QR-code).

πŸ’‘

If the lamp flashes after connecting to HomeKit, check the settings of the homebridge-xiaomi-miio plugin. Add the "pollingInterval" option: 3000 to config to reduce the frequency of the device's survey.

Method 3: Alternative bridges (for Zigbee lamps)

If your Xiaomi lamp is running on the Zigbee protocol (e.g. Mi) LED Smart Bulb (Zigbee), it can be connected to HomeKit via:

  • πŸŒ‰ Zigbee2MQTT + Home Assistant (recommended).
  • πŸ”Œ Branded hubs with alternative firmware (for example, CC2531 + Z-Stack).
  • 🍎 Prefabricated bridges like the Aqara Hub (limited support).

For Zigbee2MQTT need:

  1. USB-adapter CC2531 or ConBee II (~1500–3000 β‚½).
  2. Installed Zigbee2MQTT (instruction).
  3. Integration with Home Assistant or HomeBridge

Once set up, the lamp will be available in HomeKit as a standard Lightbulb device with support for:

  • 🎨 Colour adjustments (HSV).
  • πŸ”† Brightness (Brightness).
  • πŸ”„ Automation through Shortcuts or Automation in the Home.

⚠️ Attention: When in use Zigbee2MQTT Avoid connecting the lamp to the Xiaomi Gateway hub at the same time, which will lead to a network conflict.

How to check which protocol your lamp uses?
1. Look at the box or sticker on the lamp β€” if it says "Zigbee", it means it works on this protocol. 2. In the Mi Home app, go to the lamp settings: if there is a "Zigbee network", it is a Zigbee device. 3. Lamps with only Wi-Fi support (for example, Yeelight) do not have a hub and connect directly to the router.

5. Typical errors and their solutions

Even with the right setup, users face problems. Consider the most common:

Mistake.Reason.Decision
"Accessoir is not responding."The lamp is disconnected from the network or not in the same subnet.Check it out. IP-Lamp address and restart router.
"I couldn't add it to HomeKit."Wrong Token or Device ID.Receive the token again through Miio Debug.
The lamp flashes after connectingFirmware conflict or frequent requests from HomeBridge.Update the lamp firmware or increase pollingInterval.
No response from HomeKit teamsHome Assistant/HomeBridge doesn't work.Check the server logs (journalctl) -u homebridge).

If the lamp connects but does not maintain a state (for example, after turning off the socket), add a parameter to the HomeBridge configuration:

"restoreState": true

For Home Assistant, a similar setting is in the Xiaomi Miio integration configuration file.

6. Comparison of methods: which one to choose?

The choice of integration method depends on your technical skills and available equipment:

  • πŸ† Home Assistant is the best option for experienced users who are ready to configure the server.
  • πŸ–₯️ HomeBridge – suitable for those who have always enabled Mac or Raspberry Pi. Cons: dependence on the Xiaomi cloud (without local plugins).
  • πŸŒ‰ Zigbee2MQTT β€” It requires the purchase of an adapter, but gives you full control.

If you’re new to the servers, consider buying native-supported HomeKit bulbs (like Philips Hue or Nanoleaf), but for Xiaomi owners, Home Assistant integration remains the most flexible solution.

πŸ’‘

For maximum stability, use the Home Assistant. + Zigbee2MQTT (for Zigbee lamps or Home Assistant + Xiaomi Miio (for Wi-Fi lamps).

7. Additional features after connection

After successfully integrating the lamp into HomeKit, you can:

  • 🎬 Create scenes (for example, "Cinema" with dimmed lights).
  • ⏰ Adjust automation by time or geolocation (turn on lights when returning home).
  • 🎀 Manage your voice through Siri (Hey Siri, turn off the lights in the living room").
  • πŸ“± Use Shortcuts for complex scenarios (e.g. flashing a lamp when notifying you).

Example of automation in HomeKit:

  1. Open the Home app on your iPhone.
  2. Go to the Automation tab β†’ Create automation.
  3. Select a trigger (e.g., β€œPeople are coming”).
  4. Add the "Accessories Control" action and select the lamp.
  5. Set the parameters (color, brightness) and save.

For advanced users: In Home Assistant, you can create a script that will gradually change the color of the lamp depending on the time of day (for example, warm light in the evening and cold in the afternoon).

FAQ: Frequent questions

❓ Can I connect a Xiaomi lamp to HomeKit without Home Assistant?
Yes, with HomeBridge or cloud services like Yeti Smart Home, but these methods are less stable and rely on third-party servers, and Home Assistant is recommended for reliable operation.
❓ Why the lamp plugs in but doesn't respond to commands?
The reasons may be different: Lamp and server (Home) Assistant/HomeBridge) They're in different subnets. Block ports on the router. 8123 Outdated lamp firmware (update via Mi Home) Check server logs for errors.
❓ What Xiaomi lamps officially support HomeKit?
As of 2026, no Xiaomi lamp has official HomeKit support. All integration methods are based on workarounds through third-party software, Zigbee2MQTT for Mi LED Smart Bulb).
❓ Do you need to keep your Home Assistant on all the time?
Yes, if you want to operate the lamps remotely or through HomeKit, local commands (within the same network) will only work with an active server. ~2–3 W).
❓ Can I connect several Xiaomi lamps to HomeKit?
Yes, there are no limits on the number of lamps. In Home Assistant or HomeBridge, add each lamp as a separate device with a unique light. IP You can group them directly in the app "Home" (create a room or a zone).