Skip to content

Latest commit

 

History

History

luci-app-homebridge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

luci-app-homebridge

Used for setup Homebridge on Openwrt platform

Now only test on x86_64 platform

Thanks for LEDE, homebridge project and YinHangCode

Pre-Requirements

Openwrt must support Node module, and make sure have enough space to install node plugins.

Get token

If you want to use homebridge platform, at least you should know how to get token and ip from the hardware first.
If you don't know how to get them, check below guidance first:
Token of devices

Supported Devices

  1. Mi Philips Light
    MiPhilipsSmartBulb(米家飞利浦智睿球泡灯)
    MiPhilipsTableLamp2(米家飞利浦智睿台灯二代)
    MiPhilipsCeilingLamp(米家飞利浦智睿吸顶灯)
  2. Mi Outlet
    MiPlugBase(米家智能插座基础版)
    MiPlugBaseWithUSB(小米智能插座_USB版)
    MiIntelligencePinboard(米家智能插线板)
    MiQingPinboard(青米智能插线板_五孔位版)
    MiQingPinboardWithUSB(青米智能插线板_USB版)
    MiPlugBaseEnhanced(米家智能插座增强版)
  3. Mi Yeelight
    ColorLEDBulb(Yeelight智能灯泡)
    DeskLamp(Yeelight台灯)
    ColorLedStrip(Yeelight彩光灯带)
    CeilingLamp(Yeelight吸顶灯)
  4. Mi Vaccum
    MiRobotVacuum(小米扫地机器人)
    MiRobotVacuum2(石头扫地机器人)

... others ing and I don't own all of these devices to test....

Installation

  1. If you used for x86_64 platform, download the ipk and install with:

opkg install xxx.ipk

If you used other platform, maybe can have a try first.
if failed, please let me know the problem or you can download the package and try to compile by yourself.
  1. Click Install button to check the environment, like node, node-gyp ,npm and miio.
  2. If all success, you can continue to configuration step.

Configuration

There are three kind of service models you can choose:

  1. Main, which will only start main service and use the configs which not indicate Independent, this will useful for the platform with little memories or cpu, but also you will face a problem:
    If one hardware met problems like couldn't connet to the local network, other hardware won't response well too, because of the architecture of homekit.
  2. Independent, will start multiple homebridge services for every config indicate with Independent tag at the same time, and won't meet the problem mentioned above, but will use lots of memories and cpu, please check your hardware at this model.
  3. Main + Independent, will also start multiple homebridge services for every config indicate with Independent, as for the configs that not tag will 'Independent' will run at the main service, you can think this as a combine of Main and Independent configs.

Others

If you meet problems, please feel free to let me know.