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
585 stars 53 forks source link

Hardware keys support - Error repair message after every HA restart #357

Open scrome1337 opened 4 months ago

scrome1337 commented 4 months ago

Hi, i'm getting this repair message everytime i restart my HA instance telling me to update my login information. CleanShot 2024-07-13 at 11 41 39@2x

However, it doesn't matter what i choose there my icloud3 integration is synced and works like a charm, but this repair message telling me that there is a error is a bit annoying.

Is there a way to only block this specific error message?

gcobb321 commented 4 months ago

The iCloud account probably needs to be reauthenticatrd to clear that message. Select ‘Request a new code’. Apple will send the 6-digit code to your iPhone, enter it, submit and that should take care of it.

scrome1337 commented 4 months ago

I would love to that, probably requested that code 100 times now. All apple does in this situation is sending a information to my phone/mac that a new device has been login and i can click on "Ok" or "This wasn't me". So i've never ever recieved a code from clicking on "Request a new code"...

I mean the device tracking with icloud3 works fine... it's just this message which keeps coming up since i have no code to type in

gcobb321 commented 3 months ago

Are you still having this issue with v3.0.5.5? Or should it be Closed?

scrome1337 commented 3 months ago

just updated to v3.0.5.6, getting the same error... still can't request the code

image

gcobb321 commented 3 months ago

Apple is still reporting that a 2fa code is needed and it is getting picked up by iCloud3.

Are you using a hardware key?

scrome1337 commented 3 months ago

I am using a hardware key, yes.

gcobb321 commented 3 months ago

Ahh. iCloud3 does not support hardware keys yet. I believe the official HA iCloud app does and I will be cloning that code on the v3.1 update if that is true. I'll reopen and let you know when I am testing that function and give you a preview to see if it works for you.

scrome1337 commented 3 months ago

ty! happy to hear it

scrome1337 commented 2 weeks ago

CleanShot 2024-11-10 at 18 29 04@2x

After updating to the newest version of icloud3 i keep getting the same error but this time i can't dismiss it.... Are you still planing to support hardware keys?

gcobb321 commented 2 weeks ago

I have bought 3 Yubi keys and have added d topt fields to the Apple account config parameters for them. Then Apple changed the password login protocol to use Secure Remote Passwords and that blew everything up. I rushed out a v3.1 release to fix this issue since no one could login anymore. There were also lots of code changes to support multiple Apple accounts that now seems to be settling down.

When I get back from a 3-week trip, I will be back on it.