【问题标题】:Test Suite for Actions on Google Smart Home Assertion Error针对 Google Smart Home 断言错误的操作的测试套件
【发布时间】:2021-05-03 07:13:06
【问题描述】:

我正在实施智能家居操作,在测试套件上运行测试时,我在 OnOff 特征测试期间收到以下错误消息:

好的谷歌。打开水马达 AssertionError: Expected state to include: {"on":true}, actual state: {"on":false,"online":true}: expected false to be true

好的谷歌。关闭 WaterMoter

但是当我们尝试使用 Google Home 应用程序时,一切正常,并且响应为 200 OK 并使用此数据:

Apr 30 12:29:54 api.firewires.in node[277153]: Email: firewires.smart.home@gmail.com
Apr 30 12:29:54 api.firewires.in node[277153]: UUID: 6e5c0a41-e9db-4313-b550-f5674d500bf7
Apr 30 12:29:54 api.firewires.in node[277153]: Device: FW_246F28248118#switch_7
Apr 30 12:29:54 api.firewires.in node[277153]: Calling Home Graph
Apr 30 12:29:55 api.firewires.in node[277153]: HomeGraph Called without Error
Apr 30 12:29:55 api.firewires.in node[277153]: HomeGraph Response: {
Apr 30 12:29:55 api.firewires.in node[277153]: "requestId": "6e5c0a41-e9db-4313-b550-f5674d500bf7"
Apr 30 12:29:55 api.firewires.in node[277153]:

在智能家居报告状态仪表板中显示设备状态:

https://i.stack.imgur.com/hfORZ.png

【问题讨论】:

    标签: node.js actions-on-google google-smart-home


    【解决方案1】:

    查看问题后,可以断定您没有正确使用 Report State API。谷歌智能家居的测试套件从 HomeGraph API 派生状态变化数据,为了做到这一点,报告状态的正确实现必须到位。 请检查报告状态 API 是否已设置并被正确调用。访问https://developers.google.com/assistant/smarthome/develop/report-state了解更多信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-29
      • 2011-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多