[英]Actions on Google smart home app test fail
我正在為Google Home開發一個智能家居應用程序,以控制智能設備。 我使用gactions推送我的應用進行測試:
gactions test --action_package action.json --project <project-name>
直到今天一切正常,測試命令返回錯誤:
Pushing the app for the Assistant for testing...
ERROR: Failed to test the app for the Assistant
ERROR: Invalid JSON payload received. Unknown name "device_control" at 'preview_
action_package.action_package.actions[0]': Cannot find field.
Field Violations:
# Field Description
1 preview_action_package.action_package.actions[0] Invalid JSON payload receiv
ed. Unknown name "device_control" at 'preview_action_package.action_package.acti
ons[0]': Cannot find field.
2017/05/26 09:39:10 Server did not return HTTP 200
這是我的action.json,自創建以來未更改:
{
"actions": [{
"name": "actions.devices",
"deviceControl": {
},
"fulfillment": {
"conversationName": "automation"
}
}],
"conversations": {
"automation": {
"name": "automation",
"url": "<my web endpoint>"
}
}
}
我的action.json中沒有device_control。 經過一番嘗試后,解析器似乎將“ C”視為“ _c”。
這是Google的問題嗎?
只需刪除:
“ deviceControl”:{},
在您的操作包中,那么它將起作用。
我只是驗證了這種方式的工作原理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.