Poorna
Poorna

Reputation: 137

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. 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).

Also I can use the home app ui for bulb to control it manually and it works perfectly. The bulb I'm using is a TuyaSmart rgb light bulb.

Upvotes: 0

Views: 94

Answers (1)

Nick Felker
Nick Felker

Reputation: 11978

Looking at the response, it appears that the identifier 12549 is a number and not a string. The platform expects a device ID to be a string. By putting it in quotes it will work.

Upvotes: 1

Related Questions