cancel
Showing results for 
Search instead for 
Did you mean: 
Replies are disabled for this topic. Start a new one or visit our Help Center.

followUp response for google api smart home not working

nagarjunnadella
Community Member

Case #1: The "reportStateAndNotification" throws an error when the followUpToken is that of a Google Mest Mini,

Case #2: It shows success when the followUpToken is that of a phone.

Apparently, in Case #1 the notifications are not received on the Nest speaker, the voice notifications have been turned ON.

We do get a "GENERIC_ERROR" in the home graph log explorer. 

Here is the payload used:

  const homegraphClient = google.homegraph({
    version: 'v1',
    auth: new google.auth.GoogleAuth({
      keyFile: '../../google-notification-qa.json',
    })
  });

  const res = homegraphClient.devices.reportStateAndNotification({
    "requestBody": {
      "agentUserId": "315ebea1-ff3f-42e9-bfb9-3a35212966c9",
      "eventId": "736ebea1-ff3f-42e9-bfb9-9a3521296618",
      "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
      "payload": {
        "devices": {
          "notifications": {
            "C912E06CD23B": {
              "LockUnlock": {
                "priority": 0,
                "followUpResponse": {
                  "status": "SUCCESS",
                  "followUpToken": followUpToken
                }
              }
            }
          }
        }
      }
    }
  });
 
Error from logs:
{
insertId"15mo79mf67hwyu"
jsonPayload{
notificationLog{
notifications[
0{
status"GENERIC_ERROR"
structType"LockUnlock"
}
]
requestId"ff36a3cc-ec34-11e6-b1a0-64510650abcf"
}
}
logName"projects/etrilock-qa-2690/logs/assistant_smarthome%2Fassistant_smarthome_logs"
receiveTimestamp"2024-03-15T17:08:32.691448974Z"
resource{
labels{1}
type"assistant_action_project"
}
severity"ERROR"
timestamp"2024-03-15T17:08:32.691448974Z"
}
0 REPLIES 0