Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple iCloud integration - unable to login #128811

Open
hing4ling opened this issue Oct 20, 2024 · 49 comments
Open

Apple iCloud integration - unable to login #128811

hing4ling opened this issue Oct 20, 2024 · 49 comments
Assignees

Comments

@hing4ling
Copy link

The problem

Noticed that intergation was in error and tried to login but that kept failing. Have tried deleting integration, new app specific password and main 2FA password.

What version of Home Assistant Core has the issue?

core-2024.10.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

iCloud

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: pyicloud.base
Source: /usr/local/lib/python3.12/site-packages/pyicloud/base.py:188
First occurred: 00:25:42 (6 occurrences)
Last logged: 00:27:17

Service Temporarily Unavailable (503)
Authentication required for Account. (450)

Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:448
First occurred: 00:25:42 (3 occurrences)
Last logged: 00:27:17

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/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 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
    return await super().post(request, flow_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
    return await method(view, request, data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 370, in async_configure
    result = await self._async_configure(flow_id, user_input)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 417, in _async_configure
    result = await self._async_handle_step(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 520, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/icloud/config_flow.py", line 181, in async_step_user
    return await self._validate_and_create_entry(user_input, "user")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/icloud/config_flow.py", line 140, in _validate_and_create_entry
    devices = await self.hass.async_add_executor_job(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 543, in devices
    return FindMyiPhoneServiceManager(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyicloud/services/findmyiphone.py", line 26, in __init__
    self.refresh_client()
  File "/usr/local/lib/python3.12/site-packages/pyicloud/services/findmyiphone.py", line 34, in refresh_client
    req = self.session.post(
          ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
    return self.request("POST", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 131, in request
    return self.request(method, url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 133, in request
    self._raise_error(response.status_code, response.reason)
  File "/usr/local/lib/python3.12/site-packages/pyicloud/base.py", line 189, in _raise_error
    raise api_error
pyicloud.exceptions.PyiCloudAPIResponseException: Authentication required for Account. (450)

Additional information

Unable to login. EIther with app-specific or main password.

I deleted integration hoping that was the issue and reinstall might fix the problem. No change.

@home-assistant
Copy link

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

Code owner commands

Code owners of icloud 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 icloud 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)


icloud documentation
icloud source
(message by IssueLinks)

@hing4ling hing4ling changed the title Apple iClud integration - unable to login Apple iCloud integration - unable to login Oct 20, 2024
@huuscript
Copy link

Just upgraded to 2024.10.3 few minutes ago and same problem occur. Tried both app-specific or main password.

@jscherry
Copy link

Same with either type of password

@ceodevach
Copy link

Just upgraded to 2024.10.3 few minutes ago and same problem occur. Tried both app-specific or main password.

same as you

@ToddG73
Copy link

ToddG73 commented Oct 20, 2024

Same issue here. No longer working after upgrade to 2024.10.3

@alexanderznamensky
Copy link

+1

2 similar comments
@dieewossmarthome
Copy link

+1

@roelnic
Copy link

roelnic commented Oct 20, 2024

+1

@Zi0mele
Copy link

Zi0mele commented Oct 20, 2024

After the update to core 2024.10.3 the integration stopped working. If I try to set it up I receive the error message: "Unknown error occurred"

I tried to rollback to core 2024.10.2: I solved some other issues, but not this one.

@Destroyer061090
Copy link

i tryed to remove the integration and set it up from zero but always have this error with specific password or main password
image

@DanoBoca
Copy link

I am having the same issue. Used password and application specific password. Also deleted iCloud folder in .storage.

@puls72s
Copy link

puls72s commented Oct 20, 2024

same here …
Log Details (ERROR)

Logger: homeassistant.components.icloud.config_flow
Source: components/icloud/config_flow.py:128
integration: Apple iCloud (documentation, issues)
First occurred: 15:53:09 (1 occurrences)
Last logged: 15:53:09

Error logging into iCloud service: ('Invalid email/password combination.', PyiCloudAPIResponseException('Service Temporarily Unavailable (503)'))

Core
2024.10.3
Supervisor
2024.10.2
Operating System
13.2
Frontend
20241002.3

@mpkoslovsky
Copy link

Same error, I tried to create specific password to app on Apple, but no success.

@MrFutzy
Copy link

MrFutzy commented Oct 20, 2024

Deleted the .storage icloud folder to see if that did anything. No change.

Translation Error: The intl string context variable...

Your previously entered password for [email protected] is no longer working. Update your password to keep using this integration.
Invalid authentication

SRP implementation bjorked it.

@ik0adr
Copy link

ik0adr commented Oct 20, 2024

Same here :-(

@visionir-io
Copy link

same for me in Docker container

@sayam93
Copy link

sayam93 commented Oct 20, 2024

I am facing the same issue since I updated to my HASS OS Pi to 2024.10.3. Nothing works.

@RadDip
Copy link

RadDip commented Oct 20, 2024

same

@seith007
Copy link

same here .
Regular password or App specific password from icloud.com dosn't work

@quim-net
Copy link

+1

@voyagerft
Copy link

stesso identico problema

@dbruynb
Copy link

dbruynb commented Oct 21, 2024

+1

1 similar comment
@zequnchen
Copy link

+1

@andrea-git
Copy link

+1, from Italy

@TobiMarn
Copy link

+1

@BlaXun
Copy link

BlaXun commented Oct 22, 2024

+1 from germany

@Server131
Copy link

Same on 2024.9.3

@stappoe
Copy link

stappoe commented Oct 22, 2024

Same here in germany

@MasonJohnn
Copy link

Same issues here on latest core update

@AuroreVgn
Copy link
Contributor

Same here

@Billiadis
Copy link

+1 from Greece

@ingo916
Copy link

ingo916 commented Oct 23, 2024

Same issue for me

@rafalw1277
Copy link

Same issue for me from Poland

@vagy66
Copy link

vagy66 commented Oct 24, 2024

+1 from the Netherlands

@osprey828
Copy link

+1 from Canada

@stevenLeecode
Copy link

+1, My email and app-specific password is not working. USA

@sticks221
Copy link

sticks221 commented Oct 25, 2024

Same here in UK using Pi. Tied application specific password and main password with MFA in iCloud and iCloud3 v3 but keep getting access denied.

@DanoBoca
Copy link

DanoBoca commented Oct 26, 2024 via email

@aimerie
Copy link

aimerie commented Oct 27, 2024

+1 - same issue here, tried app password and account password

@Cabbina
Copy link

Cabbina commented Oct 27, 2024

+1

@Destroyer061090
Copy link

I found on this thread a workaround.

Save the folder in custom_component, restart HA and add icloud integration. then login in iCloud using direct pwd (no specific app), it works 😄

https://github.com/user-attachments/files/17489782/icloud.zip

@DanoBoca
Copy link

DanoBoca commented Oct 27, 2024 via email

@MasonColoretti
Copy link

same here

@Mowgly1977
Copy link

Stesso problema per me. Ho cancellato la cartella sotto . storage ma niente, ho provato anche inserendo la cartellla iclu sotto custom component come indicato qua sul forum ma niente.

@ColinKlayer
Copy link

+1

@andrea-git
Copy link

I found on this thread a workaround.

Save the folder in custom_component, restart HA and add icloud integration. then login in iCloud using direct pwd (no specific app), it works 😄

https://github.com/user-attachments/files/17489782/icloud.zip

Actually, it works for me, thank you!

@DanoBoca
Copy link

DanoBoca commented Nov 5, 2024 via email

@OLDIN
Copy link

OLDIN commented Nov 5, 2024

+1

1 similar comment
@tobst96
Copy link

tobst96 commented Nov 6, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests