我正在实现智能家居操作,在测试套件上运行测试时,在OnOff特性测试期间收到了以下错误消息:
好的谷歌。打开WaterMoter AssertionError: Expected state to include: {"on":true}, actual state: {"on":false,"online":true}: expected false to be true
好的谷歌。关闭WaterMoter
但是,当我们尝试使用Google应用程序时,一切都正常,响应是200,对这些数据来说是可以的:
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]:在智能家庭报告中,状态指示板设备显示状态:
发布于 2022-02-10 01:19:37
在研究了这个问题之后,可以得出结论,您没有正确地使用Report。Google的测试套件从HomeGraph API派生状态更改数据,为了做到这一点,报告状态的适当实现必须到位。请检查报表状态API是否已设置并被正确调用。有关更多信息,请访问https://developers.google.com/assistant/smarthome/develop/report-state。
https://stackoverflow.com/questions/67364834
复制相似问题