iCloud3 v3 iDevice Tracker - Version 3

Thanks, I sent you a mail with the log and description of what happened when (missing location update).
This does not include the excessive errors, I can send another one once that occurs again.
I have not set any gps_parameter manually in my config, so would expect it uses the default values.

Is there a way to approximate the battery level? For some reason the apple watch battery level usually results in someting like this:
grafik

I assume that for the 0 values somehow no data is received from icloud, even though when I manually look at the find my app I feel that I always see a batter level. To prevent this, probably those single 0 drops in between could be just discarded and the previous value kept until another one is received?

Might anyone know why the “Add Integration” button doesn’t list “iCloud3”? I have added it both through HACS and added it manually by SCP-ing the files from the Github 2.4.7 Release ZIP File to the config/custom_components directory, verified in both cases the files were there before blowing them away and starting and - restarted many times in both and I cannot get it to show up

You and I are having the same issue it’s that you don’t have the iCloud3 Integration installed. You need to add the Integration first. In my case I can’t even find it in the App Integrations listings. But if you are luckier than I am and can add it. Then add the lines to your YAML and check the configuration and restart.

1 Like

iCloud3 can’t be configured through the UI using Add Integration. Once installed through HACS you need to manually configure it through yaml.
https://gcobb321.github.io/icloud3/#/chapters/1.6-configuring-starting-icloud3

I’ve been working on being able to add it as an integration for a while (started last summer). This required a lot of new code and a reorganization of the guts of iCloud3. It is, for the most part, acting like an integration and configurator part is mostly done with some loose ends to figure out. Once that is done, the change to how the device_tracker and sensor entities are created are the next big pieces. I get tied up and spend a lot of time figuring out Home Assistant code and what it wants. (If anyone knows how to open a window on the Integrations Configuration screen from a service call or directly from some Python code, let me know. I gave up after 3-weeks.)

There are some interesting new features - online configurator, closer tie in to the iOS app, better analysis of the location data been Family Sharing, Find my friends and the iOS app, improved tracking by multiple zones, reduced load and restart times, faster updates, etc. I also want to explore having it track more then one iCloud device (phone and watch) so its would become a person tracker. Also, the location information and battery levels for other, non-tracked devices are available and new sensors will be added for them.

Release date is when it’s done and i don’t have a clue of when that will be. Stay tuned.

3 Likes

Even though I meanwhile restart icloud3 every night with an automation because it sometimes gets hiccups (e.g. does not report any battery level for the apple watch anymore until restarted), it also sometimes hangs during the day with location updates.
See here one example, while the IC3 Zone was correctly recognized as Stationary, even after more than an hour and several update intervals, the iOS app (and with it the person status) were still just Away.
Triggering a location update vie the drop-down menu immediately corrected it.
Can this somehow be improved to become more reliable? If manual triggers sort it out there does not seem to be a general issue, just in automatic updates of status.
grafik

@pigeldi This looks like the iOS app is not triggering a zone enter events when the stationary zone is created, moved or entered so the iOS app still shows as Away. When you think this happens, look in the Event Log around the time the ic3 zone changes for an iOS app trigger. Detail info from iOS app changes can be displayed using Actions >Show iosapp Monitor. Also look at the device entity for the iOS app to see if it changed at that time. On the phone, look at the iosapp Debug info/Location updates to see if anything was sent to HA . If not, the issue is with the iOS app not sending the updates that are picked up by iCloud3.

Can you help to interpret this then?
At 9:04:45 iC3 switched to stationary by creating a zone (that is the “moving into stationary zone”, right?).
Do the “trigger-sig loc change” messages mean that the last change from the iOS app was at 8:52 and that it still thinks that it is in the same away state (neither home, but also not in a new stationary zone), and therefore does not do an update?
But why would it then recognize the right state if I manually trigger an update?

I haven’t seen any mentions in this thread or docs - are apple tags supported by this integration?

@pigeldi If may take a while before HA sends a zone Location notification to the iOS app. There have even been times when it doesn’t get to the iOS app which is probably due to poor gps accuracy or cell phone reception issues. Updating the zone info may also not be a cause for the iOS app to fire a zone enter trigger Event.

I have no control over that. The example you displayed probably fit one of those cases. If the iOS app state does change, it will probably be picked up the next time a trigger is detected or a location update is done.

@gigz No, they are not supported because they cannot be tracked. The AirTags question has been asked a few times in this thread. There were discussions when they first came out as to the reason they can not be tracked.

Thanks, that is why I thought if the update can not somehow be more explicitly triggered automatically.
If I trigger the phone location manually via the icloud3 action menu, it had updated correctly in my observed examples, even if multiple regular update triggers did not do that before.
I guess it is not a coincidence that just when I pressed the button the gps accuracy had improved or similar. So can’t icloud3 e.g. also trigger this explicit update if iOS app state and icloud3 state differ for some time, as then obviously one of them needs to be synced with the other one?

Anyone know if the GPS sensitivity of the integration can be tweaked? Having the occasional random blip where the tracker decides I’m at home and I’m really not. Figuring it must be GPS sensitivity as home and work are 145m away from each other! It’s not normally a problem AT ALL but then occasionally it…is?!

@daneboom
Use the gps_accuracy_threshold configuration parameter. See docs for more info Here

out of interest.
Is there any reason why this integration doesnt get merged with the officie HA icloud integration?
It is obviously far better and way better supported.

A similar thing happend half a year ago with the fritz integration and the merge with the unofficial fritz_box_tools integration.

@FaserF Working on it. See the post #361 here that I added Jan 20th, 7 days ago about adding it as an integration. Stay tuned…

2 Likes

Is there a way to use icloud for certain devices and mobile app device tracker for other devices? I have this working with my icloud devices, but can’t get it work with the app devices trackers. What is the yaml?

I am being challenged by the stationary zone. Are there more details on how this is generated and if it is possible to ignore/modify the zone location and radius?

My iphone_stationary setting is about 2 miles from my house and I cannot figure out why. Everything else seems to work just fine. (Well there is one minor thing, one of my kid’s phones show up as being in “College” and the other shows up being in “COLLEGE” - they both go to the same university and the name of the zone I set up is “COLLEGE”.)

But mainly the stationary_zone is driving me a little crazy and something I wish I could either ignore or just correct, with the first step being able to better understand how this is created and the values set.

Thanks,

PS - this is my absolute favorite Integration.

1 Like

@randomdevice
Details about the Stationary Zone can be found in the iCloud3 docs here.