iCloud3 v3 iDevice Tracker - Version 3

Thanks @gcobb321 its working fine now.

Quick question when leaving Home i feel i have to drive a bit furter when im leaving before automations fire compared to the normal iOS app device tracker and life360.

I have not had a chance to test a lot but it takes 3-4 min i feel driving out of my garage before it triggers. Home zone radius is 50

Anything i should test?

Also i have a coming home flow. Is there a way to calculate speed travelling at. I see the documentation has a Boolean. How do you calculate if you are driving? I did calculate driving with life360. But unsure how I do it with this integration

@henrikrox
I tried adding speed a while ago but it was never accurate enough to be reliable. The iOS app has an *average active pace * sensor you might look at. For there driving, I create an input Boolean and set it to true when the distance form home > 2. The script is in the Sample Automations abs Scripts chapter of the docs Here

Looking to get some help on loading pictures for badges. Ideally, iā€™d like to store all pictures in the media directory, and for an automation Iā€™ve used ā€˜media-source://media_source/local/ā€™ to access that directory. So not sure if the ā€˜localā€™ for me defaults to this folder or www folder.

Either way, Iā€™ve tried about every filepath I can think of that may make sense to access this directory as well as just moving the pictures around, including to the config\www folder as suggested in the instructions, using ā€˜/local/my_picture.pngā€™ and just 'my_picture.png. No success in loading, nothing seems to be reported in the logs.

Feel like Iā€™m missing something silly. Any help is much appreciated.

Currently with the pictures located in both the media folder, as well as the www folder:

pictures in www folder:
image

pictures in medea folder:

device configuration, picture parameter:
image

Icloud3 event log (no apparent errors)
image

Lovelace card (no picture for me)
image

It may be case sensitive. Try changing .PNG to .png on the file in www.

Like i said, figured it would be something silly. That worked, thanks!

Hi

I am having issues whereby my or my wifeā€™s location stops updating after a while. Is there a way to restart ic3 after certain time for it to refresh? Thanks

@scooby
You can restart iCloud3 on Event Log > Actions > Restart iCloud3. You can also request a location update on Event Log > Actions > Update Phoneā€™s Location which sends a location update to a phone (all phones or the one displayed in the Event Log).

Hi Gary

Thank you for your response. I made a mistake in writing the post. What I meant to say was, is there a way to automatically restart IC3?

Checking to see if others are experiencing extreme slowness like I have been for the past 3-4 days. Disclaimer, I made a number of changes in my HA setup which could have contributed but iā€™ve eliminated as much as possible still having extreme slowness in IC3 startup to the point where itā€™s basically unresponsive.

TL;DR
IC3 takes 6293.02 seconds to complete. During that time (105 minutes), the iCloud3 Event Log page is blank. Then it appears with the followingā€¦ As far as I can tell, I am authenticated to icloud but the log lines arenā€™t so clear whether it succeeded or not.

Update: If I setup the config file for the ā€˜Only iosapp methodā€™, IC3 starts in just seconds ā€“ because apple is out of the loop. At the moment, it seems as if the icloud api isnā€™t responding quickly (unlikely) or thereā€™s an internal hangup. Another behaviorā€¦ When I reset the ic3 interface, iā€™m immediately presented with the apple message and 2fa code but the configurator notification prompt in HA doesnā€™t appear at the same time. It eventually shows up many minutes later (havenā€™t timed it but itā€™s at least 30 mins or longer).

There are several strange things going on:

  1. At 1:20, the iCloud account access was reauthenticated when iCloud3 was restarted. After pyicloud_ic3 reauthenticates the account, it reads the devices on the account (FmF & Family Sharing List) and returns them to iCloud3. It looks like it returned to iCloud3 1h28m later with no info. Either the account could not be accessed, it kept retrying and hung in a loop without an error message or something else happened. The Event Log > Actions > Show Tracking Monitors might list some activity but probably wonā€™t. The verification message at 2:48 indicates the account was not verified using the 2fa code.

An Event Log > Actions > Reset iCloud Interface would terminate the current session and start a new one with another 2fa verification code entry via the HA Notifications area. That might free everything up if that was the case.
2. At 2:48:07, the HA Entity list of mobile_app device_tracker items is listed. It shows your iphone and an ipad with ā€˜(None)ā€™ after the device name. I think that is taken from the devicename parameter but might be erased when nothing was returned from iCloud.
3. The ā€˜iOS App Sensors monitoredā€™ at 2:48:07 normally shows the device_tracker entity name and the sensor.[devicename]_last_update_trigger entity name. The last_update_trigger is not displayed indicating it does not exist in the Entity registry for your phone.

Suggestions if you havenā€™t already done themā€¦

  1. Restart HA and see what happens (rather than doing an Event Log > Actions > Restart iCloud3)
  2. Restart a session if needed (Event Log > Actions > Reset iCloud Interface)
  3. Reinstall the iOS App integration and make sure the device_tracker and last_update_trigger entities are available.

Hope this helps.

Gary

TY Gary. Maybe weā€™re on to something. Iā€™m getting the following notification after some minutes during the startup phase of IC3.

I started seeing this at some point over the past days when this problem seemed to begin. It wasnā€™t real clear what is causing this notification and the documentation didnā€™t seem to be real clear whether i needed that integration for IC3 to work. Also, In my config file I have the following and iā€™ve tried all sorts of variations of these on or off. Basically if I have ios: in my config iā€™ll get the below error and I donā€™t know how to troubleshoot it.

default_config:
mobile_app:
ios:

I also just noticed this in my integrations.

And this is where the logs hang and then it failsā€¦

@pauly7300
You should not have ios: in your configuration.yaml.
I do not know what default_config: is.

You may have to delete the mobile_app integration and let it set itself up again, but I think that may be OK.

If you want, export the iCloud3 log file (Event Log > Actions > Export Event Log and email it to [email protected]. Iā€™ll see if I notice anything. Donā€™t redact anything or I wonā€™t be able to see what is going on. If you want to hide some of your text, use the display_as parameter but that is not necessary in the file you send.

I would like to use icloud3 to track two phonesā€¦My confusion/concern is that I know the IOS Companion app is installed, but I have no way to assure that itā€™s running. Do I set up icloud3 with iosapp_installed: true or false? If I say true and the ios app isnā€™t running on that phone, what happens? If I set it as false, then I think I am in a 2 hour polling situation using family and friendsā€¦and 2 hours is just too long when someone is ā€œnot homeā€. Whatā€™s the best way to configure/use icloud3 in my environment?

@ghstudio
The iOS App is running if it is installed on your phone. To verify that it is running, open the app, select the ā€˜App Configurationā€™ on the menu bar on the left, select ā€˜Debuggingā€™ and then select ā€˜Event Logā€™. That will list the triggers and location data sent to HA.

  • The iCloud3 ā€˜iosapp_installedā€™ parameter defaults to True so it does not need to be specified for phones with the iOS App installed.
  • If the iOS App is not installed on a phone, iCloud3 does not need to monitor zone enter/exit triggers and location updates that are sent from the iOS App to HA. In this case, the ā€˜iosapp_installed: falseā€™ parameter should be specified.
  • If you set ā€˜iosapp_installed: trueā€™ (the default) and it is not installed, iCloud3 will not find a mobile_app device_tracker entity for that phone and will not monitor it.

If it is not installed, zone enter/exit triggers and location updates will not be detected. The result is iCloud3 does not know if you exited a zone until the interval time expires and the location is updated from the iCloud account data. In this case, you should use a shore (10-min or 15-min) inzone_interval.

The implications of not using the iOS App are described in the iC3 docs here.

Has anyone experienced iOS App setting not_home and then the zone on every polling update? It completely broke my presence routine and I had to switch to different tracking for the time being. Wondering if itā€™s a setting that is skewed or something else?

These are my current zone intervals:

    unit_of_measurement: mi
    gps_accuracy_threshold: 75
    stationary_inzone_interval: '3 min'
    stationary_still_time: '3 min'
    stationary_zone_offset: '2,0'
    old_location_threshold: '2 min'
   
    inzone_interval: '2 min'
    ignore_gps_accuracy_inzone: true
    travel_time_factor: .6
    hide_gps_coordinates: false

Hi

I am having an issue with this since I think iCloud was updated to iCloud+.

Now it no longer finds any findmy friends email accounts?

Was working fine before

Is anyone else having this issue.

Thanks

Jamie

FIND-MY-FRIENDS TRACKING METHOD DOES NOT WORK WITH IOS15/ICLOUD+

With the release of iOS 15 (9/21/2021), the url used to access the Apple iCloud Find-My-Friends (FmF) is no longer being returned by Apple when signing on to the account. The Family Sharing (FamShr) url is still being returned so that tracking method can still be used.

The FmF tracking method is no longer available until it can be determined how to access the FindMy friends data. Until this problem is solved, you will have to use the Family Sharing tracking method.

1 Like

I have Family Sharing method but even with with that I donā€™t get the location anymore.