iCloud3 v2.1 Device Tracker - iCloud3 v2.2 has been released (10/10/2020)

So how does IC3 know which device to track if I have multiple devices?

That’s specified in the config file. Have you set IC3 up yet? The documentation will answer these types of questions.

Not yet, I wanted to get confirmation before I upgrade this old iPhone to 13 that it won’t force my non 2fa account to 2fa

I ran 2FA prior to iOS 13.

I’m getting

iCloud3 Error: Setup aborted for Group-group1, [email protected]. No devices to track.

and in configuration.yaml

device_tracker:
  - platform: icloud3
    username: [email protected]
    password: PASS
    track_devices:
      - my_iphone > [email protected]

However on my spare iPhone in FindMy I can see my tracked phone.

Any ideas?

1 Like

So I have an issue with my primary Apple ID. Originally mine was [email protected]. When gmail came out I got [email protected] and changed it on Apple.

Now when I do the “add friend” thing with [email protected] it accepts the request, but shows [email protected]

I spent an hour with Apple support going through their annoying checklist and then they finally agreed to escalate the issue. There is something in the backend that is causing the problem, I’m certain.

The question is, could this be the cause of my problems with iCloud3?

@FutureTense It’s hard to tell if the mismatch in email addresses ifs causing the problem. As described in the iCloud3 docs, iCloud3 gets data from Apple with the a lot of info about all of the contacts in the non-2fa account. This includes the email addresses. It matches the email addresses with the one on the track _devices parameter to tie everything together. If it can’t find a match, an error it’s posted to the ha log file with the ones it found in the non-2fa account. You might check the log file to see if there is any info to see what iCloud3 is getting from Apple. Adding’log_level: debug’ will give more info so you might try that. I’m adding more info to the debug logging to show all contact info. And will let you know when available

Do you need actual iOS Contacts in the non 2fa account? Or just “friends” that were added via email or phone number?

iCloud3 v2.0.5 Maintenance Update is available (12/8/2019)

This update addresses the following:

  • Fixed a bug introduced in v2.0.4 where a coding error caused NoRoute information to be returned from Waze.
  • Added GPS location to Stationary Zone Set Location Event Log message.
  • Reset the Stationary Zone to it’s base location (90, 180) when an update is being done, the device is in a non-Stationary zone and the Stationary Zone is set to a valid location.
  • Raw contact data from the ‘username’ non-2fa iCloud account will be added to the HA log file when setting up the FmF tracking method. Add the ‘log_level: debug’ parameter to the iCloud3 configuration and restart HA. Go to ‘Sidebar>Developer Tools>Logs’ to see the Log entries. Look for “_____ Raw iCloud Contact Data _______” and review the raw data for each contact on the following line. It will be in json format, e.g., ‘emails’: [‘[email protected]’, ‘gary_456@tw’].

  • Complete documentation with all enhancements and breaking changes can be found here
  • Download iCloud3 v2.0.5 here
  • The iCloud3 Repository is here
1 Like

@FutureTense Yes, the only contacts you need to enter is the name and email address of the real 2fa iCloud account you want to track. Refer to item #2 and the diagram in the iCloud3 documention here.

Install v2.0.5 and see the last item in the note above describing the changes in this release. It may help you figure out the problems you are having with the conflicting emails in your ICloud account.

Updated to the new version and it seems to be fixed, thanks!

I’m using the new ios App v2 for tracking multiple devices currently and it works very well.

If I use “tracking_method: isoapp” instead of family sharing or fmf would the entries under “track_devices:” be the device_tracker instances made by the ios app?

The iCloud3 device name in track_devices must be different than the iOS app in iOS app v2 but can be the same in v1.

This is explained in detail in the iCloud3 documentation here. This applies to all tracking methods.

I think I’ve gotten all of that figured out.

I’m getting this error through. I’m running home assistant on a mac mini:

Tue Dec 10 2019 20:15:37 GMT-0500 (Eastern Standard Time)
[Errno 2] No such file or directory: ‘/config/.storage/core.entity_registry’
Traceback (most recent call last):
File “/Users/myusername/.homeassistant/custom_components/icloud3/device_tracker.py”, line 6061, in _get_entity_registry_entities
entitity_reg_file = open(self.entity_registry_file)
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/.storage/core.entity_registry’

@emergent The file name for the entity registry defaults to the HA file name running under Hassio on a Raspberry Pi in a Linux environment. Since you are running on a Mac, you need to use the entity_registry_file_name configuration parameter to specify a different file name for your computer.

See the iCloud3 documentation here for more information. Once you get it working, post the file name and I’ll add it to the documentation.

Thanks. For MacOS you can add that the user should add:

entity_registry_file_name: ‘/Users/USERNAME/.homeassistant/.storage/core.entity_registry’

to the config

Hi!

I’m very new to HA and I was using iCloud “native” component. Just discovered this one and seems pretty complete.

I just want to know why we need a “bypass” manipulation to use this one with 2FA (add new account without 2FA as friend) when the basic component doesn’t need one?

@anon19817668 You do not have to set up a special non-2fa account if you are not using 2fa with your Apple iCloud account. If, however, you have set it up, iCloud3 is logged out of your iCloud account every 30-minutes. The next time iCloud3 requests a new location, it is reauthenicated, which displays a notification on your phone that someone has logged into your iCloud account. This is explained in the iCloud3 documentation here.

If you have been using iCloud without any issues, you may not have 2fa turned on on your iCloud account and you could use the Family Sharing tracking method without creating the non-2fa account.

If you do have 2fa turned on, and you don’t get constant notifications, I wonder what versions of HA and some components you are using .

I confirm that I’m using 2FA since few years (notification push to all devices when unknown login, with map and code).

image

With iCloud component, I just get a 2FA ask code for the first set up and that’s all, no new asking since that (few weeks, and of course the location works perfectly).

I’ve got a pretty fresh installation right now (last version of HassOS and HA) and just iCloud, HACS and iCloud3, but no issues with iCloud component and 2FA.

Ok. Not quite sure what you’re asking or if you have a problem using iCloud3. Have you set it up with “famshr” tracking method with the same username as your regular iCloud account and are having a problem? Or just had a question on how to set it up based on your iCloud component setup and in you needed to create the dummy noon-2fa account.

What I would do is to set it up with the same username as the iCloud component with the “famshr” tracking method and see if it operates properly without the notifications. That was how iCloud3 was originally set up. If that works, great. Apple controls the notifications and maybe there is something on your iCloud account that bypasses them. The non-2fa special account was added as a workaround after Apple updated iOS to version 13 and made internal changes to log out programs that were accessing the account after 30 minutes.