python-3.x - 在 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。
根据谷歌资源,语法是正确的。
有任何想法吗?
解决方案
架构列出action.devices.types.OUTLET
,而不是OUTLET
。当我列出我的设备时,它们指定了类似的类型,例如:
Device Type: action.devices.types.SPEAKER
推荐阅读
- ios - 我想避免在 textflyed 中使用字符串和特殊字符。在我的项目中只使用数字键
- python - Pyspark:同一个id下,分成两组
- java - Mockito:在 thenCallRealMethod() 之前做额外的动作
- powershell - 如何在powershell的输出中过滤哈希
- python - SimpleITK Demons 注册指标的含义是什么?
- snowflake-cloud-data-platform - 在 Snowflake SQL 中同时满足两个条件时从 Select 中删除记录
- mysql - 减小测试/开发 mysql DB docker 映像的大小
- bash - 仅在 Mac 中具有先前值时才运行下一个命令
- python-3.x - 程序卡在通过 Pyserial 读取 arduino 的串行通信
- jquery - Ajax 无法在 Ubuntu 的 Apache 网络服务器上使用 CGI