-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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 stopped working (due to Apple SRP-6a implementation) #128830
Comments
Hey there @Quentame, @nzapponi, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) icloud documentation |
follow |
having this issue as well - following |
Same. Following. |
same here |
same |
A reminder to everyone that GitHub does have a "subscribe" feature you can use to follow this issue, and if you add a 👍 to the original post there'll be an easy count of people experiencing the same issue 😄 |
👍 Same issue |
stesso identico problema |
👍 |
welp |
Same Problem |
To avoid excessive notifications for everyone subscribed, please do not comment if you have the same issue. The owner is already informed. Instead, consider liking the original post and subscribing to updates. |
Same issue here. |
I too am having this issue. Whilst I know it is being worked on, is there a workaround as I have automations that rely on my Iphone and they do not currently work. |
👍 |
The problem is still present. |
Same problem. Reverting to 2024.10.1 did not fix it. |
Same issue |
This is a change in iCloud’s authentication method, so reverting wouldn’t fix this. The integration needs to be adjusted to be able to use apples new authentication mechanism. |
same here |
Same. Core version 2024.10.2 |
Same issue here -;( |
Check the fix for pyicloud at picklepete/pyicloud#456 for base.py |
I tried this but all I get is |
@swampylee did you try your apple id password instead of the one you create specific to this service? In my case I have to use my apple id password |
This is also not working for me. I've have copied the custom component (following instructions above). But when I try to add the integration I get an invalid_auth response. Logger: custom_components.icloud.config_flow Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field (Missing apple_id field)')) |
Yep I did. |
Same errors as I’m seeing. |
Tried both app-specific and my main apple ID. broken here too. |
Works for me. |
It's good to know that there is a workaround. But is there already something done do work on a fix for this integration? I think for most users it would be the best solution go get this integration back to working with the next HA release. |
We first have to make contact with the maintainers of the pyiCloud project to get this solved. There has been a PR submitted already that contains a fix, just need the maintainers to approve and deployed. I have emailed one of the maintainers, Just waiting for a response currently. |
Please be informed that tracking is also unavailable for MacBooks. Additionally, could you advise on how to reduce the battery update interval? It currently takes considerable time to display the accurate percentage, which impacts an automation I’ve set up to remind me to charge my iPhone, iPad, and Apple Watch. |
The attached custom component works, thank you. |
When I use the customPackage, I regularly receive emails from iCloud authentication. Is there a solution for this? |
How do you know it's this integration that's trying to access it and not someone trying to get into your account? I've always had this happen to me even with the other way, I never trust it's someone and don’t give them permission, it's really annoying |
Every 30 days I had to remove plugin, delete the icloud folder, restart HA and activate plugin again, at which point auth worked fine and I got 30 more days. Apple require new auth every month, and the plugin did not handle it correct. Takes 2 mins every month once you know about it though. |
Same here, following ;) thanks for fix, it does not work for me when using app password and I don't want to use my main account password. |
This is brilliant! Works well. Thank you! |
You have to use your primary password ---sent from my iPhone On Nov 4, 2024, at 7:39 PM, Jingkun Hua ***@***.***> wrote:
This patch does not work for me. I entered my email and app-specific password but it says "Invalid authentication". I did't previously used this integration. It's a new setup. The log says "Missing apple_id field"
2024-11-05 11:37:23.055 ERROR (SyncWorker_42) [custom_components.icloud.pyicloud_ipd.session] Missing apple_id field (Missing apple_id field)
2024-11-05 11:37:23.056 ERROR (MainThread) [custom_components.icloud.config_flow] Error logging into iCloud service: ('Invalid authentication token.', PyiCloudAPIResponseException('Missing apple_id field (Missing apple_id field)'))
image.png (view on web)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
@rgabrielson11 I have tried my primary password. It's the same result. |
There are many of us that this fix doesn’t work for. SimonOn Nov 4, 2024, at 8:44 PM, Jingkun Hua ***@***.***> wrote:
You have to use your primary password
@rgabrielson11 I have tried my primary password. It's the same result.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
What's the difference in allowing primary pass vs app specific? Is it just a different endpoint? I'm happy to contribute code. |
SO I was able to log in using the above instructions to add to custom_components. However iCloud keeps sending me 2FA notifications every 30 minutes to authenticate. When I remove the entities it stops sending the notification. Any idea when this is going to be fixed? |
Will that be fixed in 2024.11.0? |
Read my post further up. Remove the integration, remove the iCloud folder, Add the custom_components folder, restart HA, setup the integration over again and then set up with user/pass/2FA. At that point you get 30 days before next 2FA auth is required. This custom integration works just the same as the native one did before they changed it. |
Yes, that is what I followed, I will do it again and see what happens. |
Do we know when this will be included in the next home assistant release? |
The problem
The iCloud integration fix recently merged to support App Passwords relies on a one-time login with the 'regular' password and MFA prompt. However, Apple has updated their side and now require Secure Remote Password protocol which is currently not supported by
PyiCloud
. As a result the iCloud integration no longer works.BTW, it is already reported in the PyiCloud repo.
I opened this issue because the App Password issue was closed when the mentioned fix was merged.
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 Container
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
The text was updated successfully, but these errors were encountered: