我在我的Raspberry Pi 3(运行拉斯宾)上成功地安装了家桥和家桥巢。
在将config.json文件复制到适当的目录并运行homebridge命令后,我得到以下错误:
~$ homebridge *警告程序“节点”使用了Avahi的Apple兼容层。警告请修复您的应用程序以使用Avahi!WARNING的本机API以获得更多信息,请参见名为“DNSServiceRegister()”的程序“节点”http://0pointer.de/avahi-compat?s=libdns_sd&e=node WARNING,该程序在Avahi的Apple兼容层中不受支持(或仅部分支持)。警告请修复您的应用程序使用本机API的Avahi!警告*获得更多信息,请参阅sd&e=node&f=DNSServiceRegister 2018-3-4 14:29:38加载插件:居家桥2018年-4 14:29:29:38注册平台‘家桥-巢’nest‘2018-3-4 14:29:29-2018-2018-4 14:29:29:38装载有1个附件和1个平台的config.json。2018-3-4 14:29:38 --2018年-3-4 14:29:38装载1个平台.2018-3-4 14:29:38启动巢平台.2018-3-4 14:29:38取巢装置。2018-3-4 14:29:38装载1个附件./usr/lib/node_modules/homebridge/lib/api.js:64抛出新错误(“请求的附件”“+ name + "‘没有被任何插件注册);^ 错误:所请求的附件“Nest”没有被任何插件注册。在(/usr/lib/node_modules/homebridge/lib/api.js:64:13) at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:264:42) at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:86:38) at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10) at Object。(/usr/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Function.Module.runMain (模块)。js:684:10)在启动时(bootstrap_node.js:187:16)在bootstrap_node.js:608:3 pi@raspberrypi:~ $
我的config.json文件如下所示:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"accessories": [{
"accessory": "Nest",
"name": "Nest"
}],
"platforms": [{
"platform": "Nest",
"clientId": "ID from Nest Dev",
"clientSecret": "secret code from Nest Dev",
"code": "code generated from Nest Dev"
}]
}敲我的头!如有任何指示,将不胜感激。
发布于 2018-03-15 18:12:11
这事解决了!
我不得不删除json文件中的“附件”部分。重新启动现在可以工作了。
发布于 2021-06-25 16:50:52
您应该检查居家桥巢GitHub页面。看起来他们更新了配置,用他们的一个例子。(这是来自一个十岁的孩子,所以我可能错了)
https://stackoverflow.com/questions/49096620
复制相似问题