首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >谷歌主页actions.fulfillment.devices未启用

谷歌主页actions.fulfillment.devices未启用
EN

Stack Overflow用户
提问于 2019-02-16 01:21:28
回答 1查看 913关注 0票数 3

我正在使用google smarthome actions进行物联网...我更新了我的操作url和帐户链接详细信息。当我试图启用模拟器中的测试来将我的TestAPP部署到云中时,它失败了,它得到一个错误"GoogleFulfillment 'actions.fulfillment.devices‘is not supported“,并且链接的应用程序没有更新旧的URL。这在几天前起作用了。谷歌方面有什么变化吗?或者任何人有什么线索吗?

EN

回答 1

Stack Overflow用户

发布于 2019-02-23 02:18:16

有一种手动解决方法。感谢谷歌助手论坛:

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

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

代码语言:javascript
复制
./gactions list --project [YOUT_PROJECT_ID]

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

代码语言:javascript
复制
./gactions get --project [YOUR_PROJECT_ID] --version draft > action.json

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

代码语言:javascript
复制
"googleFulfillments": [
    {
      "endpoint": {
        "baseUrl": "[URL]"
      },
      "name": "actions.fulfillment.devices"
    }
  ],

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

代码语言:javascript
复制
{
    "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-将固定操作推送到测试中:

代码语言:javascript
复制
./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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54714193

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档