gpt4 book ai didi

google-home - Google home actions.fulfillment.devices 未启用

转载 作者:行者123 更新时间:2023-12-03 00:57:08 32 4
gpt4 key购买 nike

我正在使用 google smarthome actions for IOT...我更新了我的操作 URL 和帐户链接详细信息。当我尝试在模拟器中启用测试以将我的 TestAPP 部署到云时,它失败并收到错误“不支持 GoogleFulfillment 'actions.fulfillment.devices'”,并且链接的应用程序不更新旧 URL。这在几天前起作用了。谷歌方面有什么变化或者有人有任何线索吗?

最佳答案

有一个手动解决方法。感谢 Google Assistant 论坛:

步骤:1 - 下载 gactions cli https://developers.google.com/actions/tools/gactions-cli

2 - 使用任何命令进行身份验证:

./gactions list --project [YOUT_PROJECT_ID]

3 - 下载您的操作的 json 表示形式:

./gactions get --project [YOUR_PROJECT_ID] --version draft > action.json

4 - 编辑 json。从数组中提取唯一的对象,删除嵌套的“googleFulfillments”对象:

"googleFulfillments": [
{
"endpoint": {
"baseUrl": "[URL]"
},
"name": "actions.fulfillment.devices"
}
],

5 - 删除文件顶部和末尾的括号“[ ]”。一次只能激活一种语言。从action.json 文件中删除所有不必要的数据。该文件如下所示,其参数如下:

{
"accountLinking": {
"accessTokenUrl": "xxxx",
"assertionTypes": [
"ID_TOKEN"
],
"authenticationUrl": "xxx",
"clientId": "xxx",
"clientSecret": "xxxx",
"grantType": "AUTH_CODE"
},
"actions": [
{
"description": "Smart home action for project xxxxxxx",
"fulfillment": {
"conversationName": "AoGSmartHomeConversation_xxxxxx"
},
"name": "actions.devices"
}
],
"conversations": {
"AoGSmartHomeConversation_xxxxxxxx": {
"name": "",
"url": "xxxxxxx"
}
},
"locale": "en",
"manifest": {
"category": "xxx",
"companyName": "xxx",
"contactEmail": "xxx",
"displayName": "xxx",
"largeLandscapeLogoUrl": "xxxxxx",
"longDescription": "xxxx",
"privacyUrl": "xxx",
"shortDescription": "xxxx",
"smallSquareLogoUrl": "xxxx",
"termsOfServiceUrl": "xxxxx",
"testingInstructions": "xxxxx"
}
}

6 - 如果您更新了履行、身份验证或 token 的网址,请转至 Google Actions Console 并在那里更新其条目;

7 - 将您的固定操作插入测试:

./gactions test --project [YOUR_PROJECT_ID] --action_package ./action.json

这取代了 Google Assistant 手动设置中的“单击 TEST 下的模拟器”步骤。它对我有用!

更多帮助请点击:https://community.home-assistant.io/t/google-assistant-trouble-shooting/99223/142

关于google-home - Google home actions.fulfillment.devices 未启用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54714193/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com