Google Assistant Linking not working

Hey guys,

I am trying to get Home Assistant and Google Assistant working. I followed the articel on home-assistant.io. My action app [Test] Home Assistant shows up in the list in the Google Home app. When I click on it, it shows me the login screen. After login, it throws me back to the screen where you can select “Set up new devices in your home or Have something already setup up?” I could find anywhere a log, until I looked at the Logs Explorer in the Google Cloud Platform.

{
  "insertId": "id",
  "jsonPayload": {
    "request": {
      "body": "grant_type=refresh_token&refresh_token=REDACTED_VALUE&client_id=https://oauth-redirect.googleusercontent.com/r/home-assistant&client_secret=REDACTED_VALUE",
      "uri": "https://my.domain/auth/token",
      "method": "POST"
    },
    "response": {
      "body": "400: Bad Request",
      "status": 400
    },
    "errorReason": "Failed validating the response: Invalid JSON response: 400: Bad Request",
    "@type": "type.googleapis.com/google.identity.accountlinking.type.AccountLinkingError",
    "step": "REFRESH_ACCESS_TOKEN"
  },
  "resource": {
    "type": "assistant_action_project",
    "labels": {
      "project_id": "home-assistant"
    }
  },
  "timestamp": "2020-11-30T13:55:07.915Z",
  "severity": "ERROR",
  "logName": "projects/home-assistant/logs/accountlinking-pa.googleapis.com%2Ferror",
  "receiveTimestamp": "2020-11-30T13:55:08.549969018Z"
}

What’s the problem here? Home Assistant is behind an IIS Reverse Proxy, which is inside and outside my home network accesable with Let’s Encrypt. When I go directly to “https://my.domain/auth/token” it shows me “405: Method Not Allowed”… Should be ok?

I found the problem. HA was running in a docker and only the web-interface port exposed. After changing it to --net=“host” it worked.