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

There is 1 other thing. A cosmetic thing.

Below the person’s image you see the Zone.

For me StationAmsterdamZuid but the Friendly_name is Station Amsterdam Zuid

Seems it removes the spaces

@poudenes
About the zone formatting, click the question mark on the Event Log to display the documentation. Go to 2.1 Configuration > display_zone_format to see display options.

The emails are puzzling though. It would be nice to see what is triggering them. Can you send the complete.storage/icloud directory to [email protected] I’d like to compare the files with mine to see what the differences are since I’ve never received any emails.

@gcobb321 I’m also still receiving emails periodically, I’ll also email you my complete.storage/icloud directory

Send you the info!!

@poudenes, @bastero
I looked at the cookies and session files and everything matched mine. I didn’t see anything that in them that would lead to the emails. I’ll keep watch on the main pyicloud.py thread and see if anything pops up there. Meantime, I guess an email filter that sends them to the deleted folder automatically would take care of them.

Can it happen that I reboot my HA many times for some improvements?

Ok, thank you for looking into the issue!

iCloud3 v2.2.2rc3 is now available

Download the zip file in the iCloud Development Directory here, unzip it to the icloud3 directory and restart HA. A change was made to the Event Log so you will also have to refresh your browser’s cache on your PC or Mac and Delete the Front End Cache in the iOS App on each of your phones.

This is a minor update that:

  • Adds a Reset iCloud Interface option to Event Log > Actions. With it, you can request a new Apple 2fa Verification Code and create the Apple Id Verification entry form in the HA Notifications area. You no longer have to manually delete the cookies and session files and restart HA.
  • Changed the iCloud3 Lost Phone service to iCloud3 Find My Phone service to eliminate conflicts with the Apple Lost Phone process that is part of iOS. This service will launch the iOS’s Find My Phone Alert if you are using the Family Sharing tracking method or send a notification to the iOS App (with sound) if you are using the Find-my-Friends or iOS App tracking method.
1 Like

It turns out I am receiving the Apple email but I also have a gmail filter that sends it automatically to Tradh so I never see them.

The emails are generated when you log into an account from a device that is not in the trusted device list on your iCloud account. I checked my device list and it shows my iPhone, my iPad and my windows PC. The Raspberry Pi running HA is not listed even though it’s the device that is doing the communication between HA and Apple. Unless it gets added to the list, I think the emails will continue.

We will start looking in that direction to see how to add the device to the list.

1 Like

@gcobb321 Gary, I think you are on to something there…, in my case I also recently added some sensors for my Mac and it also show up in the device list. I do get sporadic HA notifications and at the same time get either errors and/or emails. I need to review and see if there are any correlations between them.

I’m currently running v2.2.2rc3 but have noticed this issue in other recent versions. On some significant location change events the iCloud3 sensor is bouncing back to the last zone it was in as it’s being updated to the new location. Causing a zone enter and exit event.

For example…

  • Leave work, zone exit.
  • App and iCloud3 sensors correctly showing outside work zone.
  • App significant location change event to new location further away from work.
  • iCloud3 sensor bounces back to work zone momentarily as it updates to the new location further away from work.

@scotty1395
There are all kinds of things that could cause this – poor gps, old locations, distance from a zone, the order updates are processed, the iospapp priority, etc. The only way to tell why something like this occurs is to look at the details to see what is going on. The next time you see this, export the Event Log and email it to me. I’ll take a look at when I get a chance to see what is going on.

iCloud3 Release Candidate 5 is now available.

iCloud3 now works with the Apple Verification ID Code and support 2-factor-authentication

This is significant update to iCloud3. It supports true 2fa verification using the 6-digit Apple ID Verification Code sent from Apple when you log into iCloud. Go here for more information about verifying your Apple account.

Download the zip file from the development-v2.2.2 directory here , unzip it into the icloud3 directory and restart HA.

When iCloud3 starts, you will get the standard Apple Login warning and the 6-digit Apple ID Verification Code notification. YOU WILL USE THAT 6-DIGIT CODE IN THE ID ENTRY SCREEN ON THE HA NOTIFICATIONS AREA.

Select the Verification Code entry window like you always have from the HA Notifications area and enter the 6-digit code. This will create the Trusted Device token like other apps and browsers. iCloud3 will then continue starting as it usually does.

Note: If you have been using previous Release Candidates, you will not be asked to reverify your Trusted device*

iCloud3 v2.2.2rc5 Change Log

  1. Did a lot of tunning to remove unnecessary iCloud account authentications.
  2. The number of emails from Apple about someone signing into the iCloud account should be greatly reduced. Hopefully, they will only occur when starting HA or when selecting Event Log > Actions > Reset iCloud Interface but you may still get one every day or two.
  3. Fixed a misspelling of self.format_age that was generating an error. It should be self._format_age.

Note: The changes to the HA iCloud Interface Program (pyicloud.py) incorporated in the iCloud3 customized version (pyicloud_ic3.py) are going to be promoted to a production status this weekend (11/29/2020). Please let me know if you run into any issues.

1 Like

Ohh nice nice !!! Installed now… wait for my 0.118.4 update then reboot !

@gcobb321 Perfect! just loaded RC5, no emails generated at HA restart will keep monitoring. Running perfectly, thank you for a great component!

Update: No emails in 11 hrs, will keep monitoring. 3 days have passed, no more Apple emails have been generated since installing rc5 @gcobb321. Thank you for the fix!!!

Installed and also no email after HA reboot… lets keep track on it

Hi Gary/all. I’ve spent a couple of hours this weekend reading and upgrading to the latest IC3. I’m now running 2.2.2rc5. I seems to all be working wonderfully but I do have one question. I’m seeing the following IC3 Setup errors when I restart HA/IC3.

“iCloud3 Setup Error > > The iOS App device_tracker entity was not found in the Entity Registry. Device_tracker entities (suffixes) found -”

I see this message on 3 of the four devices i’m tracking. I do not run the HA App on these 3 devices as my wife and children wouldln’t use it. I also am using the family sharing method of tracking. My device, the iphonepromax, isn’t showing the error and I presume it’s because i’m running the App.

So the question is simple. Is this something I can/should just ignore and or can I exclude specific devices from expecting the iOS app to be running?

Many thanks for your tireless work on this project. I’ve been using ~2 years and absolutely love it.

@pauly7300
Glad to see a long time user.

You can indicate the device does not have the iOS app installed on it by putting noiosapp on the track_devices line for the device. Go here for more information.

1 Like

Thanks @gcobb321. That eliminated the errors at startup. The only other item i’m noticing is that i’m seeing the icloud login warning periodically now. Maybe 3 or 4 over the afternoon however there is no notification that shows up in HA. So i’ve just clicked past the login notice and the 6 digit code screen and things still seem to be working.

I know you added the following note to the blog post above but is this what you would expect?
Note: If you have been using previous Release Candidates, you will not be asked to reverify your Trusted device *

@pauly7300
What version of iCloud3 were you running before upgrading to v2.2.2rc5? I’m wondering if there are cookies left over from before that are causing the Apple notifications.

Let’s Try resetting them and go through the verification again. Select Event Log > Actions > Reset iCloud Interface. You will then go through the 6-digit code entry again. If that takes care of the Appple notification windows appearing later, I may have to make a change to automatically reset them on an upgrade so let me know if that works.