Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 在Google Assistant SDK上注册设备实例-错误400_Python 3.x_Google Assistant Sdk - Fatal编程技术网

Python 3.x 在Google Assistant SDK上注册设备实例-错误400

Python 3.x 在Google Assistant SDK上注册设备实例-错误400,python-3.x,google-assistant-sdk,Python 3.x,Google Assistant Sdk,我一直在尝试在我的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-t

我一直在尝试在我的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。有关更多信息,请参阅

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


有什么想法吗?

该模式列出了
动作、设备、类型、插座
,而不是
插座
。 当我列出我的设备时,它们指定了类似的类型,例如:
Device Type:action.devices.types.SPEAKER
架构列出的是
action.devices.types.OUTLET
,而不是
OUTLET
。 当我列出我的设备时,它们指定了类似的类型,例如:
设备类型:动作.设备.类型.扬声器