gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
543 stars 54 forks source link

Sign in issues, since update to 2024.7.4 core #364

Open andyblac opened 1 month ago

andyblac commented 1 month ago

Is anyone else having sign in issues since updating the HA Core ?, all I get now is:

This error originated from a custom integration.

Logger: custom_components.icloud3
Source: custom_components/icloud3/helpers/messaging.py:467
integration: iCloud3 v3 (documentation, issues)
First occurred: 12:28:13 (2 occurrences)
Last logged: 12:28:13

iCloud3 Error > An error occurred logging into the iCloud Account. iCloud Authentication Failed > Username or Password is not valid, Error-421)
gcobb321 commented 1 month ago

I just updated HA to 2024.7.4 on an Rpi4 and Rpi5 and iCloud3 started without any problems. Have you gone into the Configure Settings > iCloud Account & Mobile App screen and reviewed the username/password fields?.

I did notice that the HA guys changed how the zone is displayed in the device_tracker entity. Before if the state value was 'home', it would be displayed as 'Home'. Now it is displayed as 'home'.

andyblac commented 1 month ago

I just updated HA to 2024.7.4 on an Rpi4 and Rpi5 and iCloud3 started without any problems. Have you gone into the Configure Settings > iCloud Account & Mobile App screen and reviewed the username/password fields?.

I did notice that the HA guys changed how the zone is displayed in the device_tracker entity. Before if the state value was 'home', it would be displayed as 'Home'. Now it is displayed as 'home'.

it was working fine before I updated HA and the to the latest iCloudv3 version

edit:

just checked user and pass both are correct. I can sing in to iCloud.com with the same email and password without issue.

gcobb321 commented 1 month ago

Adding a device no linger works either after the 2024.7.4 update

andyblac commented 1 month ago

Adding a device no linger works either after the 2024.7.4 update

nor editing one, it causes all the entities to be disconnected and creates new ones with _2 at the end.

andyblac commented 1 month ago

I just updated HA to 2024.7.4 on an Rpi4 and Rpi5 and iCloud3 started without any problems. Have you gone into the Configure Settings > iCloud Account & Mobile App screen and reviewed the username/password fields?.

have you tried singing out and back in, I had to remove the integration and reinstall it, due to editing device bug (all old entities are discconected and new ones with _2 created, and as the old entities do not have a UUID you can not delete them, so hence the reason I had to uninstall and reinstall.) That when I started to get the sign in issues.

gimmel commented 1 month ago

Yesterday, after the update to 2024.7.4, I suddenly could only see my own iCloud data, but not the iPhone data of the family. Today I used "ha core update --version 2024.7.3" to go back to the last version and suddenly I can see all iCloud stuff again. 2024.7.4 is definitely a problem for iCloud3 3.0.5.5.

andyblac commented 1 month ago

OK, got it back working reverted to HA 2024.7.3, removed integration, signed in to appleid on website, and it was LOCKED probably due to all the failed attempts, unlocked it and now back working. I'll stay on HA 2024.7.3 for now.

gimmel commented 1 month ago

Oh, the iCloud lock is another problem. My account was locked a few days ago (while I was trying to use iCloud in a VM to send AirTag positions to HomeAssistant). I now believe these are coincidences because I had to agree to changed iCloud data shortly afterwards. I suspect the blocks are due to problems at Apple. When unlocking the account, I also got several messages like "Server not available. Try again later."

gcobb321 commented 1 month ago

iCloud3 v3.0.5.7 appears to be working under HA 2024.7.4/HAOS 12.4

The zip file below contains an update to iCloud3 v3. I have not released it yet but would like you to try it to make sure there are no other issues I need to look at. Let me know if it now works. TThanks.

Gary

Unzip icloud3 v3.0.5.7 into the _config/customcomponents/icloud3 directory and restart HA.

icloud3 v3.0.5.7.zip

andyblac commented 1 month ago

iCloud3 v3.0.5.7 appears to be working under HA 2024.7.4/HAOS 12.4

The zip file below contains an update to iCloud3 v3. I have not released it yet but would like you to try it to make sure there are no other issues I need to look at. Let me know if it now works. TThanks.

Gary

Unzip icloud3 v3.0.5.7 into the _config/customcomponents/icloud3 directory and restart HA.

icloud3 v3.0.5.7.zip

I'll take a look in the morning UK time, I'll let you know

gimmel commented 1 month ago

Thanks for your work. At first glance, version 3.0.5.7 no longer seems to cause any problems with HA 2024.7.4.

What has changed in 2024.7.4, or in other words: what did you have to change to make it work again?

gcobb321 commented 1 month ago

There were some issues in the Configure Update Device screen where famshr device tables were not filled in. Before, the program would fill them in and go to the next one. I’ve also been working on I/O routines for the next release and that may have fixed some issues.

Glad it’s working

andyblac commented 1 month ago

yup, 3.0.5.7 seems to fix the issue. this can be close for my side.

gimmel commented 1 month ago

There were no errors anymore since I updated to 3.0.5.7 (and then back to HA 2024.7.4), but now I saw that all the values were frozen since the update. Now I downgraded to 2024.7.3 and suddenly I get fresh, actual values.

AlexMC commented 1 month ago

Have the same issue and 3.0.5.7 doesnt seem to fix it, login details are correct, my icloud account is ok, not locked, but icloud3 doesn't seem to be able to login.

andyblac commented 1 month ago

Have the same issue and 3.0.5.7 doesnt seem to fix it, login details are correct, my icloud account is ok, not locked, but icloud3 doesn't seem to be able to login.

1st double check account is not locked, by singing in to http://appleid.apple.com, then try removing the integration, restart HA, reinstall and allow it restore the configuration. then do a full reboot.