|
发表于 2017-8-26 21:42:16
|
显示全部楼层
我的s1接入homekit了,方法供你参考:
一、升级树莓派node版本(我升到8.4最新版本)并安装Homebridge
sudo apt-get update
sudo apt-get upgrade
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs git libavahi-compat-libdnssd-dev
sudo npm install -g --unsafe-perm hap-nodejs node-gyp homebridge homebridge-homeassistant
cd /usr/lib/node_modules/homebridge/
sudo npm install --unsafe-perm bignum
cd /usr/lib/node_modules/hap-nodejs/node_modules/mdns
sudo node-gyp BUILDTYPE=Release rebuild
二、添加homebridge的config.json配置文件
{
"platforms": [{
"platform": "broadlinkS1C",
"name": "S1C",
"ip": "10.0.0.XX",
"stayMode": "disarm",
"awayMode": "full_arm",
"nightMode": "part_arm",
"alarmSound": true,
"notificationSound": false,
"motionTimeout": 30
}]
}
保存后重启,应该就能在hk里看到s1了 |
评分
-
查看全部评分
|