在 Google Assistant SDK 上注册设备实例 - 错误 400

Posted

技术标签:

【中文标题】在 Google Assistant SDK 上注册设备实例 - 错误 400【英文标题】:Registering Device Instance on Google Assistant SDK - Error 400 【发布时间】:2019-03-17 21:53:12 【问题描述】:

我一直在尝试在我的 Raspberry Pi 3 上的 Google Assistant SDK 上注册一个设备实例。

这是我的输入代码

googlesamples-assistant-devicetool --project-id RASPI-ED53D register --model RASPI-ED53D-LIGHT-7NBZNA --type OUTLET --manufacturer SUPERCONN --product-name LIGHT --device 0001 --client-type LIBRARY

输出/错误

创建新的设备模型 错误:注册型号失败:400

无法创建设备模型。检查请求是否包含请求有效负载中格式有效的必填字段 project_id。请参阅https://developers.google.com/assistant/sdk/reference/device-registration/model-and-instance-schemas 了解更多信息。

根据google资源,语法正确。

有什么想法吗?

【问题讨论】:

【参考方案1】:

架构列出action.devices.types.OUTLET,而不是OUTLET。 当我列出我的设备时,它们指定了类似的类型,例如: Device Type: action.devices.types.SPEAKER

【讨论】:

以上是关于在 Google Assistant SDK 上注册设备实例 - 错误 400的主要内容,如果未能解决你的问题,请参考以下文章

Google Assistant 与 IFTTT 的集成如何运作?

在 Google Assistant App 中拨打电话

如何禁用 Google Assistant API(现在点击)

Google Assistant 操作:语音调用不起作用

让我的应用与 Google Home 中的 Google Assistant 对话

启动 Google Assistant 语音交互