【问题标题】:Homebridge Nest Error on Raspberry Pi 3Raspberry Pi 3 上的 Homebridge Nest 错误
【发布时间】:2018-03-04 14:48:31
【问题描述】:

我已经在我的 Raspberry Pi 3(运行 Raspian)上成功安装了 homebridge 和 homebridge-nest。

将config.json文件复制到相应目录并运行homebridge命令后,出现如下错误:

pi@raspberrypi:~ $ homebridge * 警告 程序“节点”使用 Avahi 的 Apple Bonjour 兼容层。 警告 请修复您的应用程序以使用 Avahi 的原生 API! 警告 欲了解更多信息,请参阅http://0pointer.de/avahi-compat?s=libdns_sd&e=node 警告 Apple Bonjour 不支持(或仅部分支持)名为“DNSServiceRegister()”的程序“节点” Avahi 的兼容层。 警告 请修复您的应用程序以使用 Avahi 的原生 API! 警告 * 如需更多信息,请参阅http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister [2018-3-4 14:29:38] 加载插件:homebridge-nest [2018-3-4 14:29:38] 注册平台'homebridge-nest.Nest' [2018-3-4 14:29:38] --- [2018-3-4 14:29:38] 加载了 config.json 和 1 个附件和 1 个 平台。 [2018-3-4 14:29:38] --- [2018-3-4 14:29:38] 加载 1 平台... [2018-3-4 14:29:38] [Nest] 初始化Nest平台... [2018-3-4 14:29:38] [Nest] 获取 Nest 设备。 [2018-3-4 14:29:38] 正在加载 1 个配件... /usr/lib/node_modules/homebridge/lib/api.js:64 throw new Error("请求的附件 '" + name + "' 没有被任何插件注册。"); ^

错误:请求的附件“Nest”未被任何人注册 插入。 在 API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:64:13) 在 Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:264:42) 在 Server.run (/usr/lib/node_modules/homebridge/lib/server.js:86:38) 在 module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10) 在对象。 (/usr/lib/node_modules/homebridge/bin/homebridge:17:22) 在 Module._compile (module.js:643:30) 在 Object.Module._extensions..js (module.js:654:10) 在 Module.load (module.js:556:32) 在 tryModuleLoad (module.js:499:12) 在 Function.Module._load (module.js:491:3) 在 Function.Module.runMain (module.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"
}]
}

敲我的头!任何指针将不胜感激。

【问题讨论】:

    标签: automation raspberry-pi3 raspbian


    【解决方案1】:

    解决了!

    我不得不删除 json 文件的“附件”部分。重新启动,现在可以工作了。

    【讨论】:

      【解决方案2】:

      您应该查看 homebridge-nest GitHub 页面。看起来他们更新了他们的配置,使用他们的一个例子。 (这是来自一个十岁的孩子,所以我可能错了)

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-08-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多