home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.74k stars 28.91k forks source link

Google Assistant Local Communication #119434

Open BigCrimpin opened 3 weeks ago

BigCrimpin commented 3 weeks ago

The problem

I recently installed HA into a docker to run on my Pi5. Previously it was running directly from the SD card.

All of the integrations are working as intended except for Google Assistant SDK. When I use Google Assistant from my phone (attached to the same network as HA), it sends the command via Cloud instead of locally (direct).

I would appreciate any help to fix this issue because it use to operate correctly (send locally), but now it doesn't.

What version of Home Assistant Core has the issue?

core-2024.6.1

What was the last working version of Home Assistant Core?

core-2024.5

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Assistant SDK

Link to integration documentation on our website

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

Diagnostics information

error_log.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I have Google assistant cloud setup and functioning.

home-assistant[bot] commented 3 weeks ago

Hey there @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_assistant_sdk) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `google_assistant_sdk` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_assistant_sdk` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_assistant_sdk documentation google_assistant_sdk source (message by IssueLinks)

tronikos commented 3 weeks ago

@home-assistant unassign google_assistant_sdk

tronikos commented 3 weeks ago

This seems to be an issue with google_assistant not google_assistant_sdk.

home-assistant[bot] commented 3 weeks ago

Hey there @home-assistant/cloud, mind taking a look at this issue 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 issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign google_assistant` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_assistant documentation google_assistant source (message by IssueLinks)

BigCrimpin commented 3 weeks ago

Hello,

I think this is a mDNS issue because I moved my homeassistant back to my IOT subnet and now Google is sending commands locally. mDNS is enabled on my router and my phone (on primary subnet) can cast to devices on IOT.

BigCrimpin commented 3 weeks ago

I figured out the issue. The logs indicated a duplication of credentials becasue Home Assistant Cloud and GOogle Assistant SDK used the same credentials. I manually removed the credentials from Google Assistant SDK and removed the integration. After that I relinked Google Assistant Cloud and Google is now communicating Locally.

BigCrimpin commented 3 weeks ago

Disregard, Google Assistant is still sending commands via Cloud instead of local.

Logger: homeassistant.components.google_assistant.helpers Source: components/google_assistant/helpers.py:360 integration: Google Assistant (documentation, issues) First occurred: 2:45:56 PM (14 occurrences) Last logged: 3:14:51 PM

Webhook handler e3939ad9 for agent user id 8040a10e is already defined!

BigCrimpin commented 3 weeks ago

Logging out of the Home Assistant app on my phone (thus removing webhook), Home Assistant Cloud, Removing Home Assistant Nabu Casa from Google App, then reconfiguring everything seems to have fixed the issue. Commands from Google are now being sent locally.

image