我正在使用google smarthome actions进行物联网...我更新了我的操作url和帐户链接详细信息。当我试图启用模拟器中的测试来将我的TestAPP部署到云中时,它失败了,它得到一个错误"GoogleFulfillment 'actions.fulfillment.devices‘is not supported“,并且链接的应用程序没有更新旧的URL。这在几天前起作用了。谷歌方面有什么变化吗?或者任何人有什么线索吗?
发布于 2019-02-23 02:18:16
有一种手动解决方法。感谢谷歌助手论坛:
步骤:1-从https://developers.google.com/actions/tools/gactions-cli下载gaction cli
2-使用任何命令进行身份验证:
./gactions list --project [YOUT_PROJECT_ID]3-下载您的操作的json表示:
./gactions get --project [YOUR_PROJECT_ID] --version draft > action.json4-编辑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-如果您已经更新了实现、身份验证或令牌的URL,请转到Google Actions控制台并在那里更新他的条目;
7-将固定操作推送到测试中:
./gactions test --project [YOUR_PROJECT_ID] --action_package ./action.json这取代了google助手手动设置中的“Click Simulator in TEST”步骤。它对我起作用了!
更多帮助请点击这里:https://community.home-assistant.io/t/google-assistant-trouble-shooting/99223/142
https://stackoverflow.com/questions/54714193
复制相似问题