0

彼がインスタンスを作成できなかった理由がわかりません。

まず、次のように述べています。

C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-id                         assi
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\.....\\AppData\\...
INFO:root:Registering device
ERROR:root:Option --device-model-id required when registering a device instance.

次に試してみてください--device-model-id

C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-model-id assi
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\Thomas\\AppData\\Roaming\\googlesamples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Option --project-id required when registering a device instance.

そして次に試してみてください--project-id

C:\Users\Thomas\Desktop>googlesamples-assistant-pushtotalk --device-model-id assi --project-id evil-assist
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\Thomas\\AppData\\Roaming\\googlesamples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
  "error": {
    "code": 400,
    "message": "Could not create the device instance. Client type need to be specified as SDK_LIBRARY or SDK_SERVICE.",
    "status": "INVALID_ARGUMENT"
  }
}

また、developers.google.com に表示されているようにデバイスを登録しました。

C:\Users\Thomas\Desktop>googlesamples-assistant-devicetool list --model
Device Model Id: assi
        Project Id: evil-assist
        Device Type: action.devices.types.LIGHT
        Trait action.devices.traits.OnOff

C:\Users\Thomas\Desktop>googlesamples-assistant-devicetool list --device
Device Instance Id: assi
    Nickname: assi
    Model: assi

うまくいかない理由はありますか?

4

3 に答える 3