home-assistant / home-assistant.io

:blue_book: Home Assistant User documentation
https://www.home-assistant.io
Other
4.7k stars 7.15k forks source link

I'm a new user trying to setup google assistant with home assistant, I followed the guide here: #30567

Open monckey100 opened 7 months ago

monckey100 commented 7 months ago
          I'm a new user trying to setup google assistant with home assistant, I followed the guide here:

https://www.home-assistant.io/integrations/google_assistant/

for manual setup, I managed to make my HA accessible externally and I'm on a static IP too...

so I tried to add my test project to my home app, and I get "could not reach [test] myapp"

I investigated further, the homegraph API shows it's being hit, but when I check the google console logs I get the following: (I replaced any identifier IDs with X's)

{
  "textPayload": "SYNC: Request ID XXXXXXXXXXX failed with code: CANCELLED",
  "insertId": "XXXXXXXX",
  "resource": {
    "type": "assistant_action",
    "labels": {
      "action_id": "SMART_HOME_SYNC",
      "project_id": "smart-home-XXXX",
      "version_id": ""
    }
  },
  "timestamp": "2023-12-28T02:24:59.503334965Z",
  "severity": "ERROR",
  "logName": "projects/smart-home-XXXX/logs/actions.googleapis.com%2Factions",
  "receiveTimestamp": "2023-12-28T02:24:59.512023784Z"
}

image

image

2023-12-28 04:10:01.957 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 404
2023-12-28 04:10:01.957 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140279540392512] Unable to sync devices with result code: 404, check log for more info.
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py", line 2067, in async_call
response_data = await coro
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/core.py", line 2104, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 878, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/service.py", line 948, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/button/__init__.py", line 124, in _async_press_action
await self.async_press()
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/components/google_assistant/button.py", line 57, in async_press
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 404, check log for more info.

image

Originally posted by @monckey100 in https://github.com/home-assistant/core/issues/102128#issuecomment-1872447948

home-assistant[bot] commented 7 months ago

Hey there @home-assistant/cloud, mind taking a look at this feedback as it has been labeled with an integration (google_assistant) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_assistant` can trigger bot actions by commenting: - `@home-assistant close` Closes the feedback. - `@home-assistant rename Awesome new title` Renames the feedback. - `@home-assistant reopen` Reopen the feedback. - `@home-assistant unassign google_assistant` Removes the current integration label and assignees on the feedback, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information) to the feedback. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information) on the feedback.
joelfriesecke commented 7 months ago

I am receiving the same error messages.

I am also using Cloudflare and have already set up WAF rules, but unfortunately, without success.

metallmanu commented 6 months ago

same issues for me with DuckDNS

idroyIT commented 6 months ago

Same problem. Using my own domain through cloudflare DNS with NGINX. Followed the documentation. Getting message "Something went wrong" in Google Home app on iOS. And also the 404 errors on HomeGraph API.