简体   繁体   English

Google Actions帐户关联流程后,智能家居应用返回错误

[英]Smart home app return error after Google Actions Account Linking Flow

I am developing a Google Smart Home App, and I used my developing account to link to the Smart Home App. 我正在开发Google Smart Home App,并且使用我的开发帐户链接到Smart Home App。

And Everything is ok before token exchange. 令牌交换之前一切都很好。 I found that Google Assitant showed "something went wrong,try again." 我发现Google助理显示“出了点问题,请重试。” It seems that the account linking was failed. 似乎帐户链接失败。 I checked the official document, but I could not find the point that where is wrong. 我检查了官方文件,但找不到错误的地方。

The following as the token exchange api return: 以下作为令牌交换API返回:

{
 "token_type":"bearer",
  "access_token":"5699ebed735aa4c58836ad5ccd025e2c",
  "refresh_token":"8e8119ab5fbec7e3c5b5df3a162b4a3e",
  "expires_in":3600
}

The following as actions.json:

{
 "actions": [{
   "name": "actions.devices",
    "deviceControl": {
    },
   "fulfillment": {
     "conversationName": "automation"
   }
 }],
 "conversations": {
   "automation" :
   {
     "name": "automation",
     "url": "https://xxxxxx"
   }
 }
}

BTW, I tried many times, and My server never received the "action.devices.SYNC". 顺便说一句,我尝试了很多次,但我的服务器从未收到“ action.devices.SYNC”。

As soon as I added the fulfillment api version it started to work. 一旦添加了实现API版本,它便开始工作。

 "conversations": {
   "automation" :
   {
     "name": "automation",
     "url": "https://xxxxxx",
     "fulfillmentApiVersion": 2
   }
 }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM