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

Uploading actions.json command uses 'test' instead of 'update'

Open PaulTR opened this issue 6 years ago • 2 comments

Tried using the gaction command provided by the code lab for uploading the blinky LED actions sample, but it wasn't being recognized by the Android Things device.

MachineLearningDemo git:(master) ✗ /Users/paul/Downloads/gactions test --action_package actions.json --project machine-learning-demo-cddf4
Pushing the app for the Assistant for testing...
Your app for the Assistant for project machine-learning-demo-cddf4 is now ready for testing on Actions on Google enabled devices or the Actions Web Simulator at https://console.actions.google.com/project/machine-learning-demo-cddf4/simulator/ 

Switched the word 'test' to 'update' after some digging in the documentation, and it allowed my device to use the action.

(env) ➜  MachineLearningDemo git:(master) ✗ /Users/paul/Downloads/gactions update --action_package actions.json --project machine-learning-demo-cddf4
Your app for the Assistant for project machine-learning-demo-cddf4 was successfully updated with your actions. Visit the Actions on Google console to finish registering your app and submit it for review at https://console.actions.google.com/project/machine-learning-demo-cddf4/overview

PaulTR avatar May 29 '18 13:05 PaulTR

gactions test should work fine. I wonder if the issue is related to a brief delay between pushing the action package and waiting for the server to update.

Fleker avatar May 29 '18 17:05 Fleker

Hrm, dunno. I actually put it away last night after a couple hours messing with it, then came back this morning and it still wasn't registered/working. Once I switched to update, it worked immediately.

PaulTR avatar May 29 '18 17:05 PaulTR