smart-home-nodejs 和 actions-on-google-nodejs 的区别

Differences between smart-home-nodejs and actions-on-google-nodejs

智能家居 intent 的 smart-home-nodejs (https://github.com/actions-on-google/smart-home-nodejs) and actions-on-google-nodejs (https://github.com/actions-on-google/actions-on-google-nodejs) 处理程序有何不同? 我应该使用哪种方法来创建智能家居应用程序?

actions-on-google-nodejs 是 Node.js 的库,它简化了您在开发动作(包括智能家居动作)时需要进行的工作。

smart-home-nodejs 是一个示例项目,向您展示了一种快速入门垂直智能家居的方法。它不使用 actions-on-google 库,因为它是在库支持智能家居之前组合在一起的,这是一个出色的功能请求。

有关使用图书馆的智能家居示例,您可以查看 smart home codelab