Google Wifi Integration (Custom Component)

Also getting the same error. I’m the owner of the WiFi.

1 Like

I am having trouble getting oauth_code, When I use the extension and try to login to my google account I get an error screen that says Google couldn’t confirm this attempt to sign in is safe. If you think this is a mistake, you can close and try again. No matter what I try I get this error. Tried Macbook Pro and Windows 11 Laptop same probem, any help please?

1 Like

I was just about to try this plugin for the first time, and I get the exact same error as above while trying to get my Google refresh token.
Probably nothing the dev here can do anything about, but maybe someone has any tip on how to acquire a token these days, since this addon requires one?

The error I’m getting from Google is “Google couldn’t confirm this attempt to sign in is safe. If you think this is a mistake, you can close and try again to sign in.”.
Google’s solutions to sign-in issues like this from third party apps, seems to be to get the app to “switch to a more secure sign-in technology”.
https://support.google.com/accounts/answer/9267052

2 Likes

Same here…

1 Like

I’m having this issue too. Any solutions yet?

Copying working (today) solution I found here for token generation: Tool to generate auth token no longer works. · Issue #80 · djtimca/hagooglewifi · GitHub

generation of the token is possible again with latest Chrome plugin.
But it does require manual download (GitHub - AngeloD2022/onhubauthhelper: Chrome Extension to Assist in Authorizing Accounts to the OnHub API → Get Code → Unzip) and manual installation in Chrome (browse to: chrome://extensions/ → enabled developer mode and press button ‘load unpacked’ to manually load an unpacked Chrome extension).

Please see comment above linked here for working (today) solution for token generation: Google Wifi Integration (Custom Component) - #195 by applesauc3 (duplicating comment in order to tag other folks that mentioned experiencing the same issue above)

CC @TheRealFalseReality / @evoluto

1 Like

Hi,
I installed the integration and retrieved the refresh token from the wrong google account.
I would like to add the correct refresh token for the correct account howe do I do this?

Thanks
Paul

The extension no longer works in 2023 due to the change to Manifest V3 is it possible to update it?

Yep seeing the same thing. Hope this gets fixed.

The extension no longer works in 2023 due to the change to Manifest V3. Do you know what the fix would be for this?

What is the current status of the Google Wifi integration? The authentication link does not work.

No longer working again. “Open consent page” just gives a 404 error.

Having the same issues. When attempting to add the integration, it prompts for a Google Refresh Token (which you can’t get because the link to the tool is broken).

I have a google WiFi Mesh (not Nest Wifi) and would love to be able to display the relative health of the nodes, but so far have been unable to find a solution.

The HA documentation hints that Google WiFi integration is now built into HA, but there is practically no documentation and no examples to illustrate using it (Google Wifi - Home Assistant).

Google WiFi integration used to work. Now it won’t load:
image

I have several Google Wi-Fi Mesh AC-1304 devices around the house.

I get this error when booting HA:

2023-05-27 10:15:11.438 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component custom_components.googlewifi
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 709, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/googlewifi/__init__.py", line 8, in <module>
from googlewifi import GoogleHomeIgnoreDevice, GoogleWifi, GoogleWifiException
File "/usr/local/lib/python3.10/site-packages/googlewifi/__init__.py", line 8, in <module>
from ghome_foyer_api.api_pb2 import GetHomeGraphRequest
File "/usr/local/lib/python3.10/site-packages/ghome_foyer_api/api_pb2.py", line 18, in <module>
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 220, in AddSerializedFile
file_desc = self._ConvertFileProtoToFileDescriptor(file_desc_proto)
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 771, in _ConvertFileProtoToFileDescriptor
message_desc = self._ConvertMessageDescriptor(
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 913, in _ConvertMessageDescriptor
self._CheckConflictRegister(desc, desc.full_name, desc.file.name)
File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor_pool.py", line 192, in _CheckConflictRegister
raise TypeError(error_msg)
TypeError: Conflict register for file "ghome_foyer_api/api.proto": google.internal.home.foyer.v1.GetAssistantRoutinesRequest is already defined in file "google/internal/home/foyer/v1.proto". Please fix the conflict by adding package name on the proto file, or use different name for the duplication.
2023-05-27 10:15:11.443 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration googlewifi: Unable to import component: Exception importing custom_components.googlewifi

Something about a naming conflict.

I also have the Google Home HACS custom integration:

image

Could that be the reason?

Update:
I can’t even delete the integration. It throws errors and fails.

I also see this error in the logs:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 86, in delete
    result = await hass.config_entries.async_remove(entry_id)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 950, in async_remove
    await entry.async_remove(self.hass)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_remove
    component = integration.get_component()
  File "/usr/src/homeassistant/homeassistant/loader.py", line 716, in get_component
    raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.googlewifi

Is this integration working for anyone else?

 
 
- FINAL UPDATE

I got this resolved by updating Home Assistant that allowed me to update the Google Home HACS Integration to the latest. I also updated everything else for good measure (Google Home, Google WiFi, and Google Nest among others) and everything worked as expected again.

Is the https://www.angelod.com/onhubauthtool site down?

3 Likes

This might be helpful to someone (or to a future me).

To find the entity of the thing you need in order to reset the whole network:

Locate the Google Wifi System, either under Devices:

Or by clicking on any connected device then the Connnected via link:

image

Then click on the the first one from Sensors:

Then Settings icon:

Then find the Entity ID:

To actually reset the network, for example via the dashboard, you could add a button like this:

Equivalent yaml code:

show_name: true
show_icon: true
type: button
tap_action:
  action: call-service
  service: googlewifi.reset
  target: {}
  data:
    entity_id: binary_sensor.google_wifi_system_aaaaabjjl3y
entity: binary_sensor.google_wifi_system_aaaaabjjl3y
show_state: true
icon: mdi:toggle-switch
name: Google Wifi System

Finally, to do the same thing via the API using curl, you’d use this:

curl --location --request POST 'http://<HA-ip-address>:8123/api/services/googlewifi/reset' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxx' \
--data-raw '{"entity_id": "binary_sensor.google_wifi_system_aaaaabjjl3y"}'

I think this integration might be dead, there doesn’t seem to be a way to get the auth code to sign in with your google account so there is no way to use this if you aren’t already signed in. Unless there is some other way to generate the code besides the site listed above and the chrome extension which no longer works.

1 Like

I read all the last post. I understand that it still doesn’t work. Is there any other possibility to integrate Google wifi? Thank you

Same for me: anyone success with nest wifi integration?