sample-googleassistant icon indicating copy to clipboard operation
sample-googleassistant copied to clipboard

Having trouble with device actions

Open simplejeremy opened this issue 6 years ago • 5 comments

I'm trying to test the capability of controlling hardware (e.g. LEDs) on the board using Google Voice Assistant. When I give the commands "Turn on" and "Turn off" to control the LED using the NXP i.MX7D Starter Kit, I get "Sorry, power control is not yet supported."

The device has been registered using the registration UI and DEVICE_MODEL_ID was modified to match the device model ID from the webpage. I didn't modify DEVICE_INSTANCE_ID so the value is initialized to "PLACEHOLDER".

simplejeremy avatar Aug 09 '18 23:08 simplejeremy

Are the credentials on the device the same account as the device model you registered in the console?

Fleker avatar Aug 13 '18 18:08 Fleker

Yes, it uses the same credentials with the JSON file downloaded from my account.

simplejeremy avatar Aug 13 '18 19:08 simplejeremy

Have you enabled the OnOff trait for that device model id in the console?

Can you register a device with that device model id, and update the DEVICE_INSTANCE_ID constant?

Fleker avatar Aug 14 '18 18:08 Fleker

Yes, it's selected under "Supported traits" on the Linked device models webpage.

When I try to follow the instructions on this webpage to get DEVICE_INSTANCE_ID, I get stuck at where $ACCESS_TOKEN is written since my sample-googleassistant\app\src\main\res\raw\credentials.json doesn't contain the property with the key "token" in the string.

simplejeremy avatar Aug 14 '18 18:08 simplejeremy

If you re-authenticate the tool, then you shouldn't need to save it to the credentials.json

Fleker avatar Aug 15 '18 17:08 Fleker