Open rjnca opened 1 year ago
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!
(message by CodeOwnersMention)
icloud documentation icloud source (message by IssueLinks)
The same happens to me. I'm using my iPhone location tracker for presence detection and this stops working after a month or so and requires re-authentication, just the OP described.
Has been like this for me for a while too. I have fallen back to google location sharing method which is also patchy. Current fallback is simple device on the network detection.
Same for me, just not reliable anymore. Probably on Apple IOS side. Used to work beautifully just a few months ago.
Same for me, but after shown message "Invalid Flow Specified" I just close window and integration works well again for one month.
2023-09-17 21:16:23.152 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from xxx.lan 192.x.x.x . Requested URL: '/api/services/device_tracker/see'. (FindMySync/1 CFNetwork/1335.0.3.2 Darwin/21.6.0)
same problem here
Same happens for me. Again like roshkins61 it works for about month until I have to re-authenticate.
The problem
1 - Must use main account password, not an app specific password created from ICloud. Using app specific passwords does not generate a 2FA code, but the integration still asks for one and won't complete without it
2 - After 2FA code is entered, "Invalid Flow Specified" error is received, but this appears to be able to be cancelled without affecting the integration
3 - After a period of time (a month?) integration will stop working and require re-authorization, which means opening Terminal, removing the icloud folder from .storage, and restarting to re-authenticate.
What version of Home Assistant Core has the issue?
2023.8.1
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
Apple 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
For what it is worth, I am having the exact same issue, version is 2023.10.5. Periodically, perhaps monthly, maybe bi-monthly, the integration starts causing my iphone to pop up with authentication messages that give an MFA code. Thereafter, the integration will need to be reconfigured, and reconfiguring asks for only password and seems to authenticate successfully. It will do this repeatedly for a couple days and then, seemingly at random, the integration, when reconfigured will also ask for an authentication code. I enter the code, and all is well for a month or two and then I repeat the process all over again. It has been like that for well over a year, maybe two.
I never did this: "which means opening Terminal, removing the icloud folder from .storage, and restarting to re-authenticate.". Just add again main password confirm request on iOS device and continue in using Integrations.
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.
I still have the same issue, using the latest version of Home Assistant and iCloud integration.
Not stale. Still an ongoing issue with all the latest versions.
Hi,
I am facing the issue 1 also while using HA Core 2024.4.1, Supervisor 2024.04.0, Operating system 12.0 and frontend 20240404.1 Any feedback from HA team on this as it is now integrated into HA Core integrations?
I am using it to track Apple Watch. I need to run periodically the service "icloud.update" to get the locations. Can someone explain if there is any rule based on which this integration interacts with iCloud to get location?
Thanks, Razvan
+1 here for issue. @Quentame, @nzapponi Are either of you actively developing/supporting this extension?
I have also been receiving this issue for several months now, having to go through re-authentication at least once a month.
I think using uppercase in the email might be a root cause. It makes files in .storage/icloud with the upper case in some of the code paths.
@DTTerastar No uppercase in emails here
Same issue here. Trying to re-add the integration but no luck. Sometimes it will prompt for 2FA on my iPhone, but the home assistant page will not accept the response (invalid flow error as others have stated). I’ve read there is a way to delete old entries in .storage which may at least temporarily restore functionality. Does anyone have specific step-by-step instructions on how to do this? Much appreciated!
Did the following:
cd ~/config/.storage
mv icloud icloud.old
After these steps, the integration is happy again. Location services are working.
The problem
1 - Must use main account password, not an app specific password created from ICloud. Using app specific passwords does not generate a 2FA code, but the integration still asks for one and won't complete without it
2 - After 2FA code is entered, "Invalid Flow Specified" error is received, but this appears to be able to be cancelled without affecting the integration
3 - After a period of time (a month?) integration will stop working and require re-authorization, which means opening Terminal, removing the icloud folder from .storage, and restarting to re-authenticate.
What version of Home Assistant Core has the issue?
2023.8.1
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
Apple 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