在 Google Home Graph 上书写时“未找到请求的实体”

STT*_*STT 5 google-home

我正在尝试使用 Google Home Graph API 更新设备的状态,但收到此回复,我不明白为什么:

{
  "error": {
    "code": 404,
    "message": "Requested entity was not found.",
    "status": "NOT_FOUND"
  }
}
Run Code Online (Sandbox Code Playgroud)

这是我SYNC回复的第一部分:

{
    "requestId": "reqId",
    "payload": {
        "agentUserId": "myAgentUserId",
        "devices": [
            {
                "id": "myDeviceId",
...
}
Run Code Online (Sandbox Code Playgroud)

这就是我要发送的

https://homegraph.googleapis.com/v1/devices:reportStateAndNotification

{
    "agentUserId": "myAgentUserId",
    "payload": {
        "devices": {
            "states": {
                "myDeviceId": {
                    "on": true
...
}
Run Code Online (Sandbox Code Playgroud)

正如你所看到的,myAgentUserId并myDeviceId在主页图形的要求是相同的,以返回到的那些SYNC请求。

我究竟做错了什么?