2019年4月21日尝试更新相关组件,并安装更多插件。以下是一些经验供参考:
2018年5月安装了HomeBridge在macOS上,运行一直十分稳定,能够让HomeKit支持一些原本不兼容的功能。
- http://localhost:8081安装 Homebridge,以及配置、自动运行、重启等问题,可以看官方文档:https://github.com/nfarina/homebridge/wiki/Install-Homebridge-on-macOS
- 更新HomeBrew和node,安装node过程中提示 The post-install step did not complete successfully,并且安装之后运行 npm 提示找不到 npm 的问题:https://medium.com/@wangyiguo/mac-os-%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85-npm-%E5%A4%B1%E8%B4%A5-%E7%B3%BB%E7%BB%9F%E6%8F%90%E7%A4%BA-warning-the-post-install-step-did-not-complete-successfully-504b3c33b213
- HomeBridge的配置文件:~/.homebridge/config.json
- node 的模块,包括 npm、homebridge、以及homebridge的插件都安装在:/usr/local/lib/node_modules
- 所有 homebridge 插件可以在这里搜索及安装:https://www.npmjs.com/search?q=homebridge
- 例如 Homebridge Config UI X 这个通过网页来配置HomeBridge的插件,也可以方便的安装和卸载其他插件,很好用。我已将其默认端口号8080在 config.json 中改为了 8081,以避免冲突。http://localhost:8081 即可进行配置。