schmittx / home-assistant-eero

Eero integration for Home Assistant
MIT License
108 stars 22 forks source link

Logging in with email does not load any networks #57

Closed nzneil22 closed 4 months ago

nzneil22 commented 1 year ago

When i try to setup the integration in HAOS on rpi4, after login i do not get any networks available to add to my instance. I confirm that i see the network when i login hsing the same method on the eero app.

schmittx commented 1 year ago

Any chance you're using the sign-in-with-Amazon method for the app? If so, this integration doesn't support it.

Otherwise, can you turn on response saving via Options and share your (redacted) logs and responses? You can email or find me on Discord (same username as GitHub) if you'd rather not post publicly.

nzneil22 commented 1 year ago

Hi Matt, thanks for your reply. Im 100% sure that i am logging in using a non-amazon account.

The first error in the log is: This error originated from a custom integration.

Logger: custom_components.eero.config_flow Source: custom_components/eero/config_flow.py:72 Integration: eero (documentation, issues) First occurred: 23:39:54 (1 occurrences) Last logged: 23:39:54

Status: 401, Error Message: error.login.unknown

Then this is followed by: This error originated from a custom integration.

Logger: aiohttp.server Source: custom_components/eero/config_flow.py:75 Integration: eero (documentation, issues) First occurred: 23:39:54 (1 occurrences) Last logged: 23:39:54

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/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 85, 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/auth.py", line 236, in auth_middleware return await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle result = await handler(request, *request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 181, in post return await super().post(request, flow_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure result = await self._async_handle_step( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eero/config_flow.py", line 75, in async_step_user self.user_input[CONF_USER_TOKEN] = self.response["user_token"]


TypeError: 'NoneType' object is not subscriptable
schmittx commented 1 year ago

Thanks for the detail.

The error message Status: 401, Error Message: error.login.unknown is showing the login you entered is unknown.

Are you using the same credentials (either email or phone number) to login as the app? If using a phone number, make sure you're entering the country code first.

nzneil22 commented 1 year ago

Yes i am sure that i am entering the correct credentials

schmittx commented 1 year ago

@nzneil22 Are you still having this problem? Any updates?

nzneil22 commented 1 year ago

Hi, i will try again later today. Just noticed there is a new version 1.3.1, i will update and retry.

Thanks

On Fri, 30 Jun 2023, 12:39 Matt Schmitt, @.***> wrote:

@nzneil22 https://github.com/nzneil22 Are you still having this problem? Any updates?

— Reply to this email directly, view it on GitHub https://github.com/schmittx/home-assistant-eero/issues/57#issuecomment-1614470158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVFXQ62BEEBNYTWX3KB745TXN2UERANCNFSM6AAAAAAZCPTGW4 . You are receiving this because you were mentioned.Message ID: @.***>

nzneil22 commented 1 year ago

Seems that i am now getting this error:

This error originated from a custom integration.

Logger: custom_components.eero Source: helpers/update_coordinator.py:262 Integration: eero (documentation, issues) First occurred: June 30, 2023 at 13:50:28 (1 occurrences) Last logged: June 30, 2023 at 13:50:28

Timeout fetching Eero (Neil Borg) data

On Fri, 30 Jun 2023, 12:45 Neil Borg, @.***> wrote:

Hi, i will try again later today. Just noticed there is a new version 1.3.1, i will update and retry.

Thanks

On Fri, 30 Jun 2023, 12:39 Matt Schmitt, @.***> wrote:

@nzneil22 https://github.com/nzneil22 Are you still having this problem? Any updates?

— Reply to this email directly, view it on GitHub https://github.com/schmittx/home-assistant-eero/issues/57#issuecomment-1614470158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVFXQ62BEEBNYTWX3KB745TXN2UERANCNFSM6AAAAAAZCPTGW4 . You are receiving this because you were mentioned.Message ID: @.***>

schmittx commented 1 year ago

Are you still getting the same Status: 401, Error Message: error.login.unknown error as before?

nzneil22 commented 1 year ago

No the error now is: Screenshot_20230704_084917_Home Assistant

schmittx commented 1 year ago

OK, it clearly seems to be something with your login and verification methods. This integration only support the basic sign-in via Eero credentials, and it seems to be working for well for others, so there's gotta be something unique about your situation. That being said, some things to try or confirm:

1) Re-confirm you don't use seem weird sign-in method for Eero (Amazon, ISP credentials, etc.). 2) Re-confirm you're including a country code if using a mobile phone number to sign-in. 3) If you're truly stuck, try creating another Eero account to use for this integration. Then add that account as an admin for your existing network.

nzneil22 commented 1 year ago

Hi i have tried all of the steps you mentioned, but it still does not show any network. I will try downgrading the version of the component maybe that helps. This used to work before

Thanks

nzneil22 commented 1 year ago

Downgrading to version 1.3.0 did not fix the issue. I have no errors in the log

schmittx commented 1 year ago

I just released 1.4.1 which adds more debug level logging to help diagnose this. Please update and try a fresh install of the integration, then share your results.

nzneil22 commented 1 year ago

I now get this error: This error originated from a custom integration.

Logger: custom_components.eero.api Source: custom_components/eero/api/init.py:187 Integration: eero (documentation, issues) First occurred: 22:31:30 (2 occurrences) Last logged: 22:31:45

Exception raised, status code: 403, text: {'meta': {'code': 403, 'server_time': '2023-07-10T20:31:30.162Z', 'error': 'error.network.premium.not.capable'}} Exception raised, status code: 403, text: {'meta': {'code': 403, 'server_time': '2023-07-10T20:31:45.607Z', 'error': 'error.network.premium.not.capable'}}

Also i am getting this screen now after the login. Screenshot_20230710_223140_Home Assistant

schmittx commented 1 year ago

Exception raised, status code: 403, text: {'meta': {'code': 403, 'server_time': '2023-07-10T20:31:30.162Z', 'error': 'error.network.premium.not.capable'}} Exception raised, status code: 403, text: {'meta': {'code': 403, 'server_time': '2023-07-10T20:31:45.607Z', 'error': 'error.network.premium.not.capable'}}

This is progress at least, it's clearly letting you login and verify. This concern looks like a problem with verifying Eero Plus status.

Are you able to enable response logging and share the _2_2_networks_xxxxxxx.json file with me? I recommend you add me on Discord (same username, @schmittx) so we can chat directly and avoid posting your responses publicly.

The screenshot you shared is the advanced options screen. Previously only available if you selected Configure within Home Assistant after setting up the integration. For 1.4.1, I added it to the end of the flow for initial setup as well. Looks like to need to hard refresh your browser so the frontend refreshes and shows the text.

chapinb commented 10 months ago

I am getting the same error, error.network.premium.not.capable, on version 1.4.2. Where can i find the response logging to help with troubleshooting?

artphdent commented 9 months ago

I am getting the same problem, no networks show when I am configuring the integration. I do not log on with amazon credentials. It get the correct account because it displays the name, but it can't see my network

chrissimsuk1 commented 9 months ago

Any news on this I am having the same problem with email sign in no network showing

nzneil22 commented 9 months ago

Same here, the issue still persists

ronbarr commented 8 months ago

I’m getting the same issue and logs as nzneil did on Jun 12. It’s a fresh install. I’m using email.

Logger: aiohttp.server Source: /usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py:403 First occurred: 9:11:51 PM (2 occurrences) Last logged: 9:14:36 PM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request resp = await request_handler(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/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 85, 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 80, 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/headers.py", line 31, in headers_middleware response = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle result = await handler(request, request.match_info) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin return await func(self, request, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post return await super().post(request, flow_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 293, in async_configure result = await self._async_handle_step( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 394, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/eero/config_flow.py", line 77, in async_step_user self.user_input[CONF_USER_TOKEN] = self.response["user_token"]


TypeError: 'NoneType' object is not subscriptable
ronbarr commented 8 months ago

Never mind - I forgot I had converted to an Amazon account.

yarafie commented 5 months ago

Hi @schmittx Im getting same problem as nzneil22. Was there a resolution i can try?

yarafie commented 4 months ago

Has anyone resolved this?

schmittx commented 4 months ago

I published a beta release with multiple bug fixes, give a try and let me know if it helps.

nzneil22 commented 4 months ago

Hi schmittx, the beta worked for me :) thanks

chrissimsuk1 commented 4 months ago

beta worked for me thanks

schmittx commented 4 months ago

Closing this as the beta updates have been reflected into newest release here.