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

iCloud Integration - unable to authenticate #94950

Open
SheriffOfNotts opened this issue Jun 21, 2023 · 22 comments
Open

iCloud Integration - unable to authenticate #94950

SheriffOfNotts opened this issue Jun 21, 2023 · 22 comments
Assignees

Comments

@SheriffOfNotts
Copy link

The problem

Integration worked fine. When needing to re-authenticate it won't accept new app specific password with the enclosed error.
Screenshot 2023-06-21 at 08 02 53
Screenshot 2023-06-21 at 08 01 04

What version of Home Assistant Core has the issue?

Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3 Frontend 20230608.0 - latest

What was the last working version of Home Assistant Core?

core-2023.6.2

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?

No response

Additional information

No response

@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.

(message by CodeOwnersMention)


icloud documentation
icloud source
(message by IssueLinks)

@ThierryVos
Copy link

I also have authentication issues with the iCloud Plugin in Home Assistant. I can input my password for my account, which then verifies and should generate a security code on my iPhone. That it does not. So HomeAssistant is waiting for a security code, which I am not receiving from Apple.

I've also tried using an app password, but for some reason that too triggers the security code prompt (which this shouldn't by the way).

@saya6k
Copy link

saya6k commented Jul 15, 2023

I'm getting same result to Thierry. I first thought there's something wrong with security key option enabled in iCloud, but I think it's not.

@aram535
Copy link

aram535 commented Jul 16, 2023

I'm on a later version:
Home Assistant 2023.7.2 Supervisor 2023.07.1 Operating System 10.3

Weird enough, my icloud connection had been working fine with a app specific password for a long time and all of a sudden it went crazy and started to send icloud verification/verification code over and over and over. I had to disable then delete the entire integration for it to finally stop.

I waited 24 hours, generated a new password added the integration and tried to authenticate using the password -- it accepts the password but then asks for a "iCloud verification code" which never prompt on my devices.

I tried deleting the .storage/icloud and restarting HA. I don't have any yaml code for apple or icloud so it's all in the integration.

@SheriffOfNotts
Copy link
Author

Exactly the same issue I have

@SheriffOfNotts
Copy link
Author

I’ve also deleted anything relating to iCloud from .storage folder…

@rhoskins61
Copy link

Same issue, won't accept re-authentication. Has this integration been vacated?

@Pierrodu21
Copy link

Same issue here, I can enter my password but then no verification code is received…

IMG_0067

@Pierrodu21
Copy link

The issue is still present with the latest Home Assistant release 2023.8.0...

Can we give you more details to help fix this issue?

@groe105
Copy link

groe105 commented Aug 3, 2023

… I’m having the same issue!

@rlust
Copy link

rlust commented Aug 16, 2023

Having same issue, any ideas?

@aram535
Copy link

aram535 commented Aug 17, 2023

Just FYI -- it's the "application password" that seems to be broken. If you use your regular account and password it seems to work.

@Pierrodu21
Copy link

And... I've tried again after coming back home from vacations and it works again!

I think it was fixed by the awesome Home Assistant team between 2023.8.0 and 2023.8.4, if you have this issue too, can you try again and tell us if it's fixed for you too?

@ThierryVos
Copy link

ThierryVos commented Aug 30, 2023 via email

@rhoskins61
Copy link

Yeah, still not working. Re-enabling sends an authentication verification to iphone, but nothing related required with the integration, just a password (which one time, I entered a fake password and it was still accepted). This integration is just not reliable any longer. I'd venture to say it is Apple's fault (security/privacy stuff?), but who knows.

@wlucha
Copy link

wlucha commented Sep 9, 2023

Same issue for me :(

@earstreet
Copy link

Same here. A week ago I installed it for the first time and everything works. Yesterday I had to change my AppleID password because I got a strange message from Apple. Afterwards I couldn't authenticate anymore. Neither reinstallation of the integration nor deletion of the iCloud folder in configuration/.storage worked for me.

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@aram535
Copy link

aram535 commented Jan 28, 2024

This should either be a bug or enhancement depending on if the original design was to allow static passwords. If you generate a static "application" password from icloud so that the password rotation isn't a problem the integration fails to authenticate (or it continues to ask for the verification code) which is not required when using the application password.

@l1onk1n6
Copy link

l1onk1n6 commented Feb 8, 2024

Doesnt work for me. Get the auth notification, but no code from apple

@Pierrodu21
Copy link

For my part, it's been working pretty well since the end of August. Roughly once a month, it asks me to authenticate again, if I try right away it doesn't work, but if I do a red restart, not yellow, (see screenshot below), it asks me for my password, then a verification code that arrives on my phone and if I enter both, the integration is functional again. Can you try with a "red" restart if you have still this issue?

Red restart

@workshopninja
Copy link

Still not working April 2024 - asking for password, when given asking for code from apple that never comes…

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