我可以为 Homegraph api 使用其他数据库而不是 firebase 吗?

Can I use other database instead of firebase for Homegraph api?

我在 Actions On Google 上引用了 smart-home-nodejs git 存储库。此模板提供了如何使用智能家居应用程序的端到端示例。但是,我可以使用自己的数据库来托管我的设备,而不是使用 firebase,我只想调用 Homegraph api 来同步。这可能吗?

谢谢。

是的,您可以根据需要设计后端的实现。您也不限于使用 Cloud Functions 或 App Engine。虽然端到端示例提供了一个如何执行此操作的示例,但您的后端只需要 implement a webhook and respond to intents plus have support to do things like report state.

API reference 包含构建自定义实现所需的所有信息。