Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

homebridge-ikonke-light

0.0.2 • Public • Published

homebridge-ikonke-light

npm version

HomeBridge的控客灯插件。

注: 如果有bug请提交到 issuesQQ群: 107927710

支持的设备

1.K Light

安装说明

1.安装HomeBridge, 可以参考文件README
如果你是安装在树莓派里,可以参考Running-HomeBridge-on-a-Raspberry-Pi
2.确保你能在IOS设备的家庭app内搜到HomeBridge,如果不能请返回第一步。
3.安装ikonkeIO
4.安装本插件。

npm install -g homebridge-ikonke-light

配置说明

配置"ikonkeIO"为ikonkeIO目录下sh文件的绝度路径。
设备的"type"、"ip"、"mac"、"password"可以通过ikonkeIO获取,具体参考ikonkeIO项目。
"lightName"配置为配件的名字。
示例如下:

"platforms": [{
    "platform": "IkonkeLightPlatform",
    "ikonkeIO": "/home/pi/node_modules/ikonkeIO/ikonkeIO.sh",
    "deviceCfgs": [{
        "type": "klight",
        "ip": "192.168.88.20",
        "mac": "18-fe-56-d7-5d-ea",
        "password": "A?lz?=]G",
        "lightDisable": false,
        "lightName": "客厅次灯_高"
    }, {
        "type": "klight",
        "ip": "192.168.88.21",
        "mac": "18-fe-56-d8-5a-e6",
        "password": "[58DzqaX",
        "lightDisable": false,
        "lightName": "客厅次灯_中"
    }, { 
        "type": "klight",   
        "ip": "192.168.88.22",
        "mac": "18-fe-78-d1-0f-3e",
        "password": "aDU[7.AQ",
        "lightDisable": false,
        "lightName": "客厅次灯_低"
    }]
}]

版本更新记录

0.0.2

1.代码优化.

0.0.1

1.支持控制K Light设备.

install

npm i homebridge-ikonke-light

Downloadsweekly downloads

1

version

0.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability