Yeelight plugin for homebridge(Rewrited)
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8221934 Jan 2, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Devices BugFix Nov 16, 2017
Helpers ComingSoon Oct 19, 2017
LICENSE Initial commit Oct 17, 2017 update to 0.0.11 Jan 2, 2018
index.js update to 0.0.11 Jan 2, 2018
package.json update to 0.0.11 Jan 2, 2018


npm version

Yeelight plugin for homebridge(Rewrited)

Thanks for nfarina(the author of homebridge), OpenMiHome, aholstenson(the author of miio), all other developer and testers.

欢迎加入我们的QQ群 545171648 讨论
QQ Group:545171648
Telegram Group:

Supported Types

  1. ColorLEDBulb(Yeelight智能灯泡)
  2. DeskLamp(Yeelight台灯)
  3. ColorLedStrip(Yeelight彩光灯带)
  4. CeilingLamp(Yeelight吸顶灯)
  5. WhiteBulb(Yeelight白光灯泡)


  1. Install HomeBridge, please follow it's README.
    If you are using Raspberry Pi, please read Running-HomeBridge-on-a-Raspberry-Pi.
    如果你能阅读中文,你可以阅读 homebridge非官方安装指南.
  2. Make sure you can see HomeBridge in your iOS devices, if not, please go back to step 1.
  3. Install packages.
  4. Install Plugin.

I suggest you to turn on UpdateTimer, it will not send too much heartbeat packet.

npm install -g miio homebridge-re-yeelight


"platforms": [
        "platform": "ReYeelightPlatform",
        "deviceCfgs": [{
            "type": "ColorLEDBulb",
            "ip": "",
            "token": "xxxxxxxxx",
            "Name": "LED Bulb",
            "updatetimer": true,
            "interval": 5
            "type": "ColorLEDStrip",
            "ip": "",
            "token": "xxxxxxxxx",
            "Name": "LED Strip",
            "updatetimer": true,
            "interval": 5
            "type": "DeskLamp",
            "ip": "",
            "token": "xxxxxxxxx",
            "Name": "Desk Lamp",
            "updatetimer": true,
            "interval": 5
            "type": "CeilingLamp",
            "ip": "",
            "token": "xxxxxxxxx",
            "Name": "Ceiling Lamp",
            "updatetimer": true,
            "interval": 5
            "type": "WhiteBulb",
            "ip": "",
            "token": "xxxxxxxxx",
            "Name": "White Bulb",
            "updatetimer": true,
            "interval": 5

Get token

Download miio2.db From your android device - path: /data/data/com.xiaomi.smarthome/databases/miio2.db
Use to read it
Or You can
Open command prompt or terminal. Run following command:

miio --discover

Wait until you get output similar to this:

Device ID: xxxxxxxx   
Model info: Unknown   
Address: 192.168.88.xx   
Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx via auto-token   
Support: Unknown   

"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" is token.
If token is "???", then reset device and connect device created Wi-Fi hotspot.
Run following command:

miio --discover --sync

Wait until you get output.
For more information about token, please refer to OpenMiHome and miio.

Version Logs


  1. add QQ and TG Group


  1. bug fix


  1. fix the bug caused by class name


  1. add support for WhiteBulb


  1. add support for CeilingLamp


  1. add Support for LedStrip And Rewrite code


  1. add Support for Desklamp


  1. No Change, Just emmmmmmmmmm


  1. add support for ColourLEDBulb.