google-home / smart-home-nodejs

A sample of the Smart Home device control APIs in Actions on Google
Apache License 2.0
888 stars 289 forks source link

Test Suite for Actions on Google Smart Home Error. #538

Closed RajputAmit-17 closed 3 years ago

RajputAmit-17 commented 3 years ago

I'm implementing a Smart Home action, and while running tests on the Test Suite, I got the following error message during an OnOff trait test:

Ok Google. Turn on the WaterMoter‣

AssertionError:` Expected state to include: {"on":true}, actual state: {"on":false,"online":true}: expected false to be true

Ok Google. Turn off the WaterMoter‣

But when we try with the Google Home app everything is working and the response is 200 OK with this data:

Apr 30 12:29:54 api.firewires.in node[277153]: Inside Google Home Graph Call : Report State for Switch 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]:

Screenshot 2021-04-30 170918 In Smart Home Report State Dashboard devices showing state. @devunwired @Fleker