[英]Google Home not getting a valid assistant response when executing actions for bulbs
I have integrated google assistant into my own app.我已经将谷歌助手集成到我自己的应用程序中。 When executing an action for a LIGHT device type, such as turning it on/off, I get an assistant response like "OK, Sorry, I can't reach the Bulb right now. Please try again" but the execution happens anyway.
为 LIGHT 设备类型执行操作(例如打开/关闭它)时,我会收到类似“好的,抱歉,我现在无法连接灯泡。请重试”之类的助手响应,但无论如何都会执行。 Following is a sample response which will send in response to an execute intent request.
以下是一个响应执行意图请求的示例响应。
{"payload":{"commands":[{"ids":[12549],"status":"SUCCESS","states":{"online":true,"on":true}}]},"requestId":"15838577278862147328"}
What am I doing wrong here?我在这里做错了什么? this works perfectly for other device types (OUTLET, SWITCH).
这适用于其他设备类型(OUTLET、SWITCH)。
Also I can use the home app ui for bulb to control it manually and it works perfectly.我也可以使用灯泡的家庭应用程序 ui 手动控制它,它工作得很好。 The bulb I'm using is a TuyaSmart rgb light bulb.
我使用的灯泡是 TuyaSmart rgb 灯泡。
Looking at the response, it appears that the identifier 12549
is a number and not a string.查看响应,标识符
12549
似乎是一个数字而不是字符串。 The platform expects a device ID to be a string.平台要求设备 ID 为字符串。 By putting it in quotes it will work.
通过将其放在引号中,它将起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.