Thanks. Not sure how I missed that.
Hmm. I had this working before 0.92 but that broke it obviously. Since then I deleted my devices from known_devices (for other reasons) and then completely removed icloud3 and itās config and set it up again (with the new files for 0.92). Now though I donāt get any errors, but my devices arenāt showing up in known_devices at allā¦
I got the auth check sms and all that stuff, and it recreated my icloud cookie file etc, just no devices appearing.
Anyone got any ideas for that? They still havenāt shown up, not sure what else to tryā¦
Thanks to those that provided the updated files for HA 0.92. Iāve consolidated them and added a few other things. They can be found on github here.
Iāll be posting a new version that will:
- Fixed an issue reauthorizing an icloud account when multiple devices are being tracked on different accounts.
- Added speed, speed_average and speed_high attributes where the speed is calculated using the data within iCloud3 rather than just reporting the speed for the ios app.
- iCloud3 can post a lot of detailed information on location, timing, errors, etc in the HA log file if that function is turned on.I have created a Lovelace card that will display significant events as they take place in iCloud3.
The iCloud3 device tracker selects the devices in the iCloud account based in the include/exclude device type and devices statements. It also shows the devices that will be tracked (and those that wonāt) in the HA log file when HA is started. You might have these already in the config parms and they are just not showing on the example you posted. I couldnāt tell since iCloud3 is the last entry.
Go here for the documentation on how devices are selected and the configuration parameters that are used.
Ok, so I actually havenāt added a config entry for include/exclude as I want everything to show. That parameter is optional right?
Ok apparently not I added it in and it seems to be working now. The only reason I didnāt add it is because I didnāt have it previously and it still worked, so I assumed it was optional.
Also while I have you, I noticed in the documentation you have:
waze_region
The area used by Waze to determine the distance and travel time.
Valid values: US (United States), NA (North America), EU (Europe), IL (Isreal). Default: US
Iām in Australia, so Iām assuming that the Waze stuff wonāt work (Waze is available here just to clarify, Iāve been using it for years)?
Thanks for your help
Just checked the wazeRouteCalculator.py docs on GitHub and the region is optional. That program said it is used to limit the route servers being checked by that program.
āAUā is in the actual code but not in their docs so you might try that.
Cool, Iāll have a play, thanks
Hi Gary,
I am running your latest release installed yesterday, i am a bit of a noob when it comes to Hassio only been going for a few weeks now. I am running 0.92.1.
I am having an issue with iCloud3 not changing the polling interval, so it gets stuck in the zone we are in. It is not picking up when we leave a zone as per your spec, the IOS shows that we have left Home for example and we are away but it will take hours before the iCloud3 tracker picks up we have left as it still thinks we are at home, or in the zone?
Can you point me in the right direction to sorting out the problem?
Thanks,
Spencer
iCloud3 uses the ios app to detect zone changes. Make sure you are running the ios app v1.5 on your devices with the device name set to the correct device_tracker name.
The ios app v2.0 in beta breaks everything and zone exit/enter activities are not being recognized. Once things settle down, you can set the device name in the app, and the many new sensors created by the app include the device name, Iāll be able to get the integration working again.
must the names match?
above is an example of the issue where the ios tracker is showing the correct location and the icloud3 tracker is not?
device_tracker.karins_iphone is the ios app and then device_tracker.kariniphone is the icloud3 one.
The icloud3 one always is lagging behind because it gets stuck in the zone and then the ios one also doesnāt seem to be that accurate once you get into a zone it jumps around.
So just to make sure I understand I need to change the IOS name to match the name of the icloud3 device tracker?
Yes, they must be the same. Otherwise, iCloud3 doesnāt know what device to monitor. In your case, the easiest thing to do is change the name Ćn the ios app to karinsiphone to make them match. That name would also be the one used in automations and scripts.
iCloud3 gets the phoneās name from the one on your Apple account that is on the General > About screen on the phone. HA changes any special characters to an underscore or drops them so Gary-iPhone becomes gary_iphone. gary_iphone is then used in automations and scripts. That is how mine is set up. So what you probably want to do is change the phoneās name to Karins_iPhone or Karins-iPhone or Karinās-iPhone
Prob has been asked a million times, but the thread is huge so here it goes.
Iāve just updated my HA installation to 0.92 so I had to also update icloud2 to icloud3. And so far it seems things sort of work although I canāt get the icons (avatar) to work and the worst part is the fact that the update seems to be always on 2 hours interval.
Iāve updated the HA app in the iPhone to latest and Iāve changed the device name on the phone to match the tracker, e.g: device_tracker.iphone but still doing 2 hours intervalā¦
Any idea what Iām doing wrong?
Thanks for the help.
Have you gone anywhere? It should be 2 hours if you are stationary in a zoneā¦ it will pick up when you leave and increase frequency based on distance/dir of travel etc
Yes, both me and the wife weāre moving all morningā¦
Now it seems to be updating, wonder if I need to have WazeOff set to on?
Thanks
I would definitely make sure you have WazeOff inā¦ I know the polling frequency changes based on distance from home etc, itās been working really well for me since the first release.
Also, did you make sure you have the location change settings on in your iOS app?
Waze doesnāt really have anything to do with the 2-hour interval. That interval is the default inzone interval so it indicates you are never getting a Zone Exit notification from the HA app that will take you out of the zone.
However, it might be a little more than that. When the 2-hour āNextUpdateā time is reached, iCloud3 will poll your iCloud account and issue a Find-My-Phone location request for the specific device. If you are not in a zone at that time, your location will be updated and the time would then be based on the Waze travel time. If you are in a zone (any zone) at that time, the NextUpdate will still be 2-hours even though you have moved. If you are not getting that iCloud polling request or are getting an error, there might be account authorization issue with accessing your iCloud account. This is discussed at the front part of the documentation. The HA Notification bell in the upper right of the HA screen will tell you if there are any authorization problems.
If you have several zones, comment out every zone except the Home zone to see if that is the case.A Dynamic Stationary Zone will be set up if you donāt move far for about 8-minutes and the interval will be set to 30-min.
If it stays on 2-hours, try turning on the logger which writes detailed information to the HA log files with all of the calculation and location information. See the end of the iCloud3 documentation on how to do that and what the log information looks like. That might point out what is going on.
Gary
Thanks for the reply. Iāve commented all the zones except Home to see.
After the restart seems the intervals changed, to 30seconds, and 3 minutes. So Iām wondering if it could be related to the zones?
Thanks for all the help.
For example, Iām currently in a state of Stationary so my Interval is at 30 mins.
the wife got home and stayed there for about 1 hour, and the interval changed to 2 hours. but now she left about 10 mins ago and the interval is still at two hours, my question is, shouldnāt the interval be updated when she starts moving?
Iāve enabled logger and restarted HA which updated the wifeās phone locationā¦ will keep an eye on the logs nowā¦