- 积分
- 241
- 金钱
- 221
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 241
- 金钱
- 221
- HASS币
- 0
|
1、运行Putty
sudo npm install -g homebridge
sudo npm install -g homebridge-broadlink-rm
备注:(环境 nodejs==7.9.0 npm==4.5.0)
2、在HB中 sudo nano config.json
备注:范本文件网址
https://github.com/lprhodes/home ... /config-sample.json
3、运行homebridge
4 添加好HB后,发现Learn按键, 点击按下Learn 键,此时RM PRO灯处于橙色状态,把要学习的红外/或者射频的遥控器按键按下让RM PRO学习
5、查看HEX码(HomeKit 16进制码)
查看日志运行:sudo journalctl --no-pager -u homebridge --since today
6、找到Hex码
7、编辑config.json 中,里面有之前的HA.HB,HB后面加入博联RM
8、关于添加格式
9、可以看到以下选项时说明已经搞定
10、愉快的享受夏天吧!
##########我是分界线################
{
"bridge": {
"name":"Homebridge",
"username":"B8:27:EB:15:45:A5",
"port": 51888,
"pin": "123-88-678"
},
"platforms": [
{
"platform":"HomeAssistant",
"name":"HomeAssistant",
"host":"http://ip:8123",
"password":"raspberry",
"supported_types": [
"garage_door",
"binary_sensor",
"cover",
"fan",
"input_boolean",
"light",
"rollershutter",
"lock",
"media_player",
"scene",
"sensor",
"switch"
]
},
{
"platform":"Camera-ffmpeg",
"cameras": [
{
"name": "Cameraxiaofang",
"videoConfig": {
"source":"-rtsp_transport tcp -re -i rtsp://ip:554/unicast",
"maxStreams":2,
"maxWidth":1920,
"maxHeight":1080,
"maxFPS": 10
}
}
]
},
{
"platform": "BroadlinkRM",
"name": "Broadlink RM",
"homebridgeDirectory":"/var/homebridge",
"accessories": [
{
"name":"air-conditioner",
"type":"air-conditioner",
"data": {
"off":"26004e00000128901611161017341736161017101710161116351710171017341710171016111611161017101710171116101734171017101611161116101710173417101735161017101735171017000d0500000000000000000000",
"temperature30": {
"pseudo-mode":"heat",
"data":"26004e00000128901611161116361610161116111611161116351710171016351710161116111611161017101710171017101635171017101611161116101710173417101734171017101735161116000d0500000000000000000000"
},
"temperature22": {
"pseudo-mode": "cool",
"data": "26004e00000128901734171017101735171017101611161116101636161017101710171017101710161116111611161116111535171017101710171016111611163516111635161116111635161116000d0500000000000000000000"
}
}
}
]
}
]
} |
|