【发布时间】:2017-12-27 07:11:20
【问题描述】:
问题: 我有一个问题很久了,我用 Actions SDK 创建的智能家居应用程序没有作为测试应用程序显示在家庭控制下的 Google 助理应用程序中。 我尝试了 3 个不同的帐户,寻找使用同一个帐户登录,从头开始但没有任何帮助! 你能帮忙解决这个问题吗,因为我无法从谷歌助手应用程序测试最终的用户 oAuth 流程是非常糟糕的。 这完全阻止了我继续,也让我觉得 Google Home 还没有准备好生产。
我正在为一个全球知名的开源项目开发智能家居应用操作,很多用户都要求使用 Google Home。我的实现几乎完成了,它卡在了这个没有出现在助手应用程序中。所以我不能测试,社区也不能测试!
在我看来,这对 Google 和 Google Home 的推出都不利。我打开了许多支持票,但仍然没有解决方案。希望开发人员有责任感并能提供帮助。
环境:
- MacBookAir:Mac OS X 10.12.15
- 浏览器:Chrome,版本 59.0.3071.115(64 位)
- Android 智能手机(从 Android v6 开始)
框架: Actions SDK(gactions)
重现步骤:
- 在下创建了一个新项目 https://console.actions.google.com/
- 在我的项目中添加了 Actions SDK 并运行以下命令:
./gactions update --action_package action.json --project <project-id>
./gactions --verbose test --action_package
action.json --project <project-id>
- 添加了所有需要的应用信息和帐户关联信息
- 点击了测试(在提交审核旁边)按钮
结果:
我无法使用模拟器,因为当我输入“Talk to”时,我总是收到此错误消息:“抱歉,此操作在模拟中不可用”。 如果我在 Android 设备上打开 Google 助理并转到“家庭控制”以查看我的测试智能家居应用程序,它不会出现在带有括号等的列表中,例如 [test ...]。根本不存在!
我发现其他开发人员在这里遇到了和我一样的问题: https://github.com/actions-on-google/actionssdk-smart-home-nodejs/issues/1
这里有我在终端中通过 gactions 命令部署智能家居应用程序的命令:
./gactions --verbose test --action_package action.json --project <project-id>
Checking for updates...
Successfully fetched update metadata
Finished checking for updates -- no updates available
Pushing the app for the Assistant for testing...
POST /v2/users/me/previews/<project- id>:updateFromAgentDraft?updateMask=previewActionPackage.actionPackage.actions%2CpreviewActionPackage.actionPackage.conversations%2CpreviewActionPackage.actionPackage.types%2CpreviewActionPackage.startTimestamp%2CpreviewActionPackage.endTimestamp HTTP/1.1
Host: actions.googleapis.com
User-Agent: Gactions-CLI/2.0.7 (darwin; amd64; stable/6f4c996f8ee63dc5760c7728f674abe37bfe5fc4)
Content-Length: 369
Content-Type: application/json
Accept-Encoding: gzip
{"name":"users/me/previews/<project-id>","previewActionPackage": {"actionPackage":{"actions":[{"deviceControl":{},"fulfillment":{"conversationName":"automation"},"name":"actions.devices"}],"conversations":{"automation":{"name":"automation","url":"https://MY-GOOGLE-CLOUDFUNCTION-URL"}}},"name":"users/me/previews/<project-id>"}}
Reading credentials from: creds.data
Successfully pushed the app for the Assistant for testing
Your app for the Assistant for project <project-id> is now ready for testing on Actions on Google enabled devices or the Actions Web Simulator at https://console.actions.google.com/project/<project-id>/simulator/
【问题讨论】:
-
嗨,我遇到了同样的问题。你解决了吗?
标签: actions-on-google google-home google-smart-home