在Google Home Graph上写“找不到请求的实体”

时间:2019-07-23 15:49:31

标签: google-home

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

{
  "error": {
    "code": 404,
    "message": "Requested entity was not found.",
    "status": "NOT_FOUND"
  }
}

这是我的SYNC响应的第一部分:

{
    "requestId": "reqId",
    "payload": {
        "agentUserId": "myAgentUserId",
        "devices": [
            {
                "id": "myDeviceId",
...
}

这就是我要发送给

  

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

{
    "agentUserId": "myAgentUserId",
    "payload": {
        "devices": {
            "states": {
                "myDeviceId": {
                    "on": true
...
}

如您所见,Home Graph请求中的myAgentUserIdmyDeviceId与返回到SYNC请求的请求相同。

我在做什么错了?

0 个答案:

没有答案