繁体   English   中英

针对 Google 智能家居断言错误的操作测试套件

[英]Test Suite for Actions on Google Smart Home Assertion Error

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

好的谷歌。 打开 WaterMoter 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]:

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM