首页 > 解决方案 > 在 Google Assistant SDK 上注册设备实例 - 错误 400

问题描述

我一直在尝试在我的 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

根据谷歌资源,语法是正确的。

有任何想法吗?

标签: python-3.xgoogle-assistant-sdk

解决方案


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


推荐阅读