Google Assistant integration BACKEND_FAILURE

Hello. After some time, the google assistant integration stopped working. I had not changed my config, updated Home Assistant or even restarted it before it happened.

After updating, recreating the test and relinking my account, it still doesn’t work, though it’s very unpredictable. Sometimes it will work, then stop working again a minute later.

Here are the errors in cloud console’s logs explorer. This is after a sync attempt.

{
  "insertId": "ofc3msg1bzxrbn",
  "jsonPayload": {
    "executionLog": {
      "executionResults": [
        {
          "latencyMsec": "2236",
          "executionType": "PARTNER_CLOUD",
          "requestId": "1426971264414807130",
          "actionResults": [
            {
              "device": {
                "deviceType": "LIGHT"
              },
              "status": {
                "statusType": "EXECUTION_BACKEND_FAILURE",
                "externalDebugString": "Error querying agent backend. State: URL_TIMEOUT, reason: 4"
              },
              "action": {
                "actionType": "STATE_QUERY"
              }
            },
            {
              "device": {
                "deviceType": "LIGHT"
              },
              "action": {
                "actionType": "STATE_QUERY"
              },
              "status": {
                "statusType": "EXECUTION_BACKEND_FAILURE",
                "externalDebugString": "Error querying agent backend. State: URL_TIMEOUT, reason: 4"
              }
            },
 ------------------------------
            {
              "device": {
                "deviceType": "LIGHT"
              },
              "action": {
                "actionType": "STATE_QUERY"
              },
              "status": {
                "statusType": "EXECUTION_BACKEND_FAILURE",
                "externalDebugString": "Error querying agent backend. State: URL_TIMEOUT, reason: 4"
              }
            }
          ]
        }
      ]
    },
    "locale": "en-US"
  },
  "resource": {
    "type": "assistant_action_project",
    "labels": {
      "project_id": "smart-home-295019"
    }
  },
  "timestamp": "2021-08-15T10:41:25.646307828Z",
  "severity": "ERROR",
  "logName": "projects/smart-home-295019/logs/assistant_smarthome%2Fassistant_smarthome_logs",
  "receiveTimestamp": "2021-08-15T10:41:25.646307828Z"
}
{
  "insertId": "10myh0hfv3vf0q",
  "jsonPayload": {
    "syncLog": {
      "syncs": [
        {
          "httpLatencyMsec": "4877",
          "requestId": "16855680869298699420",
          "status": "BACKEND_FAILURE"
        }
      ]
    }
  },
  "resource": {
    "type": "assistant_action_project",
    "labels": {
      "project_id": "smart-home-295019"
    }
  },
  "timestamp": "2021-08-15T10:41:22.034685967Z",
  "severity": "ERROR",
  "logName": "projects/smart-home-295019/logs/assistant_smarthome%2Fassistant_smarthome_logs",
  "receiveTimestamp": "2021-08-15T10:41:22.034685967Z"
}

Home Assistant’s logs show no errors at all.

Does anyone know what might be causing this?

I am seeing the same issue here, when I go into google cloud logs I get:

0: {
httpLatencyMsec: "79"
requestId: "1172342990480778292"
status: "BACKEND_FAILURE"

Started 2 days ago.

did you ever get this fixed?

I was thinking I have the same problem, but I had to restart Home Assistant after I’ve added google_assistant section to configuration.yaml and it started working. Try to reach page /api/google_assistant if it is responding with something different than 404.

If I try to reach that page, it gives me 404… That’s not good… This happens when I update to 2022.2.1, if I reveet back, same config files to 2021.12.10, then I get on that same url 405, so that’s good, then I can link…

What can be wrong?

Sorry, it eventually fixed itself after a combination of recreating the project in the actions console and pissing about with my hass config and restarting it like fifty times.

Not sure how or what happened, I wish I could help you.

1 Like