iCloud3 v2.2.1 Device Tracker-Advanced tracking features, iOS App monitoring

@scotty1395
Thanks for the info. I have learned the emails are controlled by a rememberMe flag on a cookie and is passed to iCloud when doing a signon. That flag was ‘False’. I have changed it to ‘True’ and also set the extended_login flag to True but do not know what is being extended and for how long. Just seemed like it should be True

I’ll let it run tonight with famshr and post an update tomorrow. I have added a 2fa_verification: True/False parameter to go back to the old way but have not tested it yet.

@gcobb321 I too am getting repeated emails from Apple. I’m using fmf tracking method. Will your overnight fix also address this tracking method? As always thank you!

iCloud3 v2.2.2rc2 is now available

This release has a few new features and parameters and, hopefully, fixes the iCloud notification email problem when accessing the iCloud Location Services with the famshr tracking method.

See the Change Log here for a list of all of the changes
Download the v2.1.1rc2.zip file here, unzip it into the icloud3 directory and restart HA.

New parameters:
2sa_verification: False/True to use the older 2-step-authentication rather than the 2-fator-authentication introduced with v2.2.2.

New Service:
device_tracker.icloud3_find_iphone_alert to send a sound to the phone to help locate it. This can be send from the Event Log > Actions > Send Find My Phone Alert

Deleted Service:
device_tracker.icloud3_lost_phone to eliminate confustion with Apple’s native lost phone function.

1 Like

@gcobb321 just loaded RC2 and I’m getting internal errors per below. Not sure what I’m doing wrong…

Oops. A misspelling in code that never ran on my system checking to see if a phone was offline.

v2.2.2rc2a corrects it and has been uploaded

Thanks Gary!!

@gcobb321 No errors on RC2a and no random emails being generated from Apple, however on iC3 Zone for Garbine, this is not being updated. Hope you can help with this.

Update: Managed to get Garbine online, I have to be honest, not exactly sure what exactly I did… but it’s now online! :+1:t3:

To those of you that were getting the emails from Apple and installed rc2a… Let me know if they have stopped so I can pass along my changes to the guys that are in the process of updating the HA version of the iCloud integration and the official pyicloud.py interface program. They think it may have been occurring when the account was reauthenticated when a location request was made every hour or so.

I will let you know if I receive emails in a while or not. Installed your latest release 5 min ago

Updated to rc2a yesterday afternoon got one overnight, prior to that was getting ~10 per hour. Great improvement! Thank you.

The behavior I was seeing using famshr with 2.2.2rc2 was one or two emails a day. Updated to 2.2.2rc2a yesterday afternoon. So far, no email from Apple.

Since this Morning I got 2 emails…

Does the time on the emails follow when an account authentication was done? The Event Log shows when that happened.

I restart today many times my HA for new improvements… Maybe thats the reason for me

Got two emails this morning and four this afternoon, I can’t see a correlation to authentication though. The two latest emails were received in the last 2 hours (i.e. 2:04pm & 2:30pm in my TZ), so if you want to review the Event log let me know and I’ll email it to you.

I wonder if clearing the cookies and session token files, restarting HA and going through the verification process would stop the emails after the first one. I haven’t gotten any at like you guys have.

Delete the .storage/icloud/youraccountemail to delete the cookies.
Delete the .storage/icloud/session directory to delete the session tokens.

There might be an old setting from v2.2.2rc1 or rc2 in those files.

@gcobb321 I’m using fmf tracking. Deleted both cookies file & session token directory. Not sure if I’m supposed to receive the 6-digit Apple ID Verification Code sent from Apple when in fmf tracking mode but I didn’t receive one, nor have I received a notification from HA requesting to configure using the 6-digit code.

So far (and its early days yet… :slight_smile: ) I received a single email from Apple. iC3 has started without incident and is functioning as expected. Its evening so I’ll update you in the morning either way.

Cheers

@bastero
Did you restart HA? If not, it will use the internally stored cookie and session data. You may have to delete them again.

I deleted now also the following things:

Delete the .storage/icloud/youraccountemail to delete the cookies.
Delete the .storage/icloud/session directory to delete the session tokens.

Restarted HA and did the verification. Now let’s see if i receive emails… :slight_smile:

@gcobb321 Yes also restarted HA immediately after.

So now the update… aside from the initial email from Apple when I restarted HA, I received another email at 4:50am what is interesting but you’ll be the judge is that… I also received the iC3 error @4:26am below.

I also received an additional email @ 7:41am, but there is no indication of neither an authentication nor another error in the Event log.

At no point have I received 6-digit from Apple nor have had a notification to re-authenticate.

I saved the Event log covering that time span if you’d like to review just let me know and I’ll email it to you.

I still receive some emails. But for me its ok. Rest is working great so i don’t care the emails.