mirror of
https://github.com/kenzok8/small-package
synced 2025-01-05 11:36:47 +08:00
.. | ||
files | ||
Makefile | ||
README.md |
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
- Mi Philips Light
MiPhilipsSmartBulb(米家飞利浦智睿球泡灯)
MiPhilipsTableLamp2(米家飞利浦智睿台灯二代)
MiPhilipsCeilingLamp(米家飞利浦智睿吸顶灯) - Mi Outlet
MiPlugBase(米家智能插座基础版)
MiPlugBaseWithUSB(小米智能插座_USB版)
MiIntelligencePinboard(米家智能插线板)
MiQingPinboard(青米智能插线板_五孔位版)
MiQingPinboardWithUSB(青米智能插线板_USB版)
MiPlugBaseEnhanced(米家智能插座增强版) - Mi Yeelight
ColorLEDBulb(Yeelight智能灯泡)
DeskLamp(Yeelight台灯)
ColorLedStrip(Yeelight彩光灯带)
CeilingLamp(Yeelight吸顶灯) - Mi Vaccum
MiRobotVacuum(小米扫地机器人)
MiRobotVacuum2(石头扫地机器人)
... others ing and I don't own all of these devices to test....
Installation
- 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.
- Click
Install
button to check the environment, like node, node-gyp ,npm and miio. - If all success, you can continue to configuration step.
Configuration
There are three kind of service models you can choose:
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.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.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.