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

问题描述 投票:1回答:1

我一直在尝试在我的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.x google-assistant-sdk
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.