icloud3
icloud3 copied to clipboard
Force update instead of trying each hour
Seems like if no location update is received/retrieved for a while it gives up and changes from the config value (e.g. 10 min.) to one hour. So I think when the device comes back potentially an hour of tracking can be lost? Is there a way to keep it forced on the value set in the config? Current workaround is an HA automation that forces updates but I don't think that's the best idea. Or am I thinking wrong here?
Check the Event Log to see what is going on. If he phone is not locatible and an error is returned from iCloud, iCloud3 keeps asking for location information. It starts at a 15 second interval and increases the interval time to 1 hour. Maybe it is in a dead cell area. See if it is shown in the FindMe App on another phone.
@gcobb321 Thanks, yes this is what I mean. "It increases the interval time to 1 hour". What if I do not want this, because at one point the signal comes back and then you might miss out on anything between 0-60 minutes of location data.
I made an automation in HA to force check but I only enable it when I see that a device's update frequency time is going up:
- alias: iCloud3 force update
trigger:
- platform: time_pattern
minutes: "/15"
action:
- service: device_tracker.icloud3_update
But I think this will create too many requests when a device is not out of range for a while and iCloud3 is checking already every 10 minutes (stationary_inzone_interval: '10 min')
Or should I set stationary_inzone_interval to 0 and leave updating fully to the HA automation?
In v3, I am checking the DeviceStatus (Online, Offline, Pending, Unknown) returned from Apple with the iCloud location request. If offline, it uses an 'offline_interval' that is configurable to determine the next update time. The iOS App location changes, even by a few meters, is also detected and triggers an update that will get things moving again. The DeviceStatus is also an attribute on the device_tracker entity and that, I think, will take care of your situation.
In the mean time, the automation will probably work but I would add a condition that it only triggers when you are 'not_home' so it doesn't trigger when you are in a zone.
I'll let you know when v3 is in beta, probably November.
How is beta v3 going?
I added
data:
command: location
to the above automation. Not sure if it worked, didn't really check.
Today I added
- service: device_tracker.icloud3_update
data:
command: resume
as first action, the other after that. Because I think it did not manually check every 10 min?
I am quite sure this works. But come to think of it...maybe only resume is needed to keep it trying on default intervals?
Because location is a manual request, but resume is said to reset the interval.
https://gcobb321.github.io/icloud3/#/chapters/3.4-services?id=icloud3_update-service
Both resume and locate do pretty much the same thing. It basically resets the next location time to right now and will get the l location it has from the iOS app, if it is good, or request an update from iCloud . .
location, on the other hand, sends a request to the iOS app for the current location. If the app is running in the background and the device is asleep, you may not get a response.
Understood!
So I use only resume now. Yet the proces stopped and did not work for like 6 hours until I manually pressed “resume polling”.
The error and 2 of the messages caused by that automation in iCloud3 log:
---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart
iphone 06:20:00 - Stationary 15 sec 0 min z km FmF update started (Resuming)
iphone 06:20:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:00:01 (20 min ago)
iphone 06:20:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data
iphone 06:20:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:18:28 (1.5 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:20:15, OldLocPoorGpsCnt-#1, DiscardCnt-#448
iphone 06:20:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#448, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart
iphone 06:30:00 - Stationary 15 sec 0 min z km FmF update started (Resuming)
iphone 06:30:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:18:28 (11.5 min ago)
iphone 06:30:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data
iphone 06:30:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:22:07 (7.9 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:30:15, OldLocPoorGpsCnt-#1, DiscardCnt-#449
iphone 06:30:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#449, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart
iphone 06:36:02 - Stationary 15 sec 0 min z km FmF update started (Resuming)
iphone 06:36:02 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:22:07 (13.9 min ago)
iphone 06:36:02 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data
iphone 06:36:02 - Stationary 15 sec 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:35:08 (54 sec ago)
iphone 06:36:02 - Stationary 15 sec 0 min z km Reset Stationary Zone Location > iphone_stationary, Moved to Base Location-(x, y), DistFromHome-507.75km
iphone 06:36:02 - Stationary 15 sec 0 min z km Selected Zone > Away > XYZ
Iphone 06:36:02 - Away 15 sec 0 min z km Stat Zone > Reset Timer, MovedOverLimit-True, ResetTimer-True, Moved-360m, Timer-00:00:00, to 6:46:00
iphone 06:36:02 - Away 15 sec 0 min z km Distance Data > DirOfTrav-left_zone, LastDirOfTrav-in_zone, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-360m
iphone 06:36:02 - Away 2.5 min 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2.5 min (3-NeedInfo), Dist-z km, NextUpdt-6:38:30, LocationTime-6:35:08 (54 sec ago), OldLocThreshold-1 min, WillMoveIntoStatZoneAfter-6:46:00 (0m)
iphone 06:36:03 - Away 2.5 min 0 min z km FmF update completed
iphone 06:36:05 - Away 2.5 min 0 min z km Device Monitor > UpdateMethod-None, ***@***.***:35:08, State-stationary, ***@***.***:35:08, LastLoc-6:36:02, Zone-aiphone_stationary, HomeDist-z.82km, inZone-True, GPS-(x, y/26m), StateThisPoll-stationary, StateLastPoll-stationary
iphone 06:38:25 - Away 2.5 min 0 min z km Requesting New iCloud Location > LastLocTime-6:35:08 (3.3 min ago)
iphone 06:38:30 - Away 2.5 min 0 min z km Next Update Time reached > iphone
iphone 06:38:30 - Away 2.5 min 0 min z km FmF update started (Next Update Time reached)
iphone 06:38:30 - Away 2.5 min 0 min z km Requesting New iCloud Location > LastLocTime-6:35:08 (3.4 min ago)
iphone 06:38:30 - Away 2.5 min 0 min z km Refreshed FmF iCloud location data
iphone 06:38:30 - Away 2.5 min 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (4 sec ago)
iphone 06:38:30 - Away 2.5 min 0 min z km Selected Zone > Away > XYZ
iphone 06:38:30 - Away 2.5 min 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 450.0 secs, TimerExpired-FalseUnderMoveLimit-True, DistFmZone-zkm
iphone 06:38:30 - Away 2.5 min 0 min z km Distance Data > DirOfTrav-AwayFrom, LastDirOfTrav-not_set, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m
iphone 06:38:30 - Away 2 hrs 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2 hrs (3->150km,6-Away(Calc)x2), Dist-zkm, NextUpdt-8:38:30, LocationTime-6:38:26 (4 sec ago), OldLocThreshold-10 min, WillMoveIntoStatZoneAfter-6:46:00 (0m)
iphone 06:38:31 - Away 2 hrs 0 min z km FmF update completed
iphone 06:38:35 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-None, ***@***.***:38:26, State-not_home, ***@***.***:38:26, LastLoc-6:38:30, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home
iphone 06:40:00 - Away 2 hrs 0 min z km FmF update started (Resuming)
iphone 06:40:00 - Away 2 hrs 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (1.6 min ago)
iphone 06:40:00 - Away 2 hrs 0 min z km Selected Zone > Away > XYZ
iphone 06:40:00 - Away 2 hrs 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 365.0 secs, TimerExpired-FalseUnderMoveLimit-True, DistFmZone-zkm
iphone 06:40:00 - Away 2 hrs 0 min z km Distance Data > DirOfTrav-AwayFrom, LastDirOfTrav-AwayFrom, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m
iphone 06:40:00 - Away 2 hrs 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2 hrs (3->150km,6-Away(Calc)x2), Dist-zkm, NextUpdt-8:40:00, LocationTime-6:38:26 (1.6 min ago), OldLocThreshold-10 min, WillMoveIntoStatZoneAfter-6:46:00 (0m) iphone 06:40:01 - Away 2 hrs 0 min z km FmF update completed
iphone 06:40:05 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-None, ***@***.***:38:26, State-not_home, ***@***.***:38:26, LastLoc-6:40:00, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home
iphone 06:46:00 - Away 2 hrs 0 min z km Move into Stationary Zone Timer reached > iphone, Expired-6:46:00
iphone 06:46:00 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-ICLOUD, UpdateReason-Move into Stat Zone , State-not_home, Trigger-MoveIntoStatZone, LastLoc-6:40:00, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home
iphone 06:46:00 - Away 2 hrs 0 min z km FmF update started (Move into Stat Zone )
iphone 06:46:00 - Away 2 hrs 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (7.6 min ago)
iphone 06:46:00 - Away 2 hrs 0 min z km Selected Zone > Away > XYZ
iphone 06:46:00 - Away 2 hrs 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 0.0 secs, TimerExpired-TrueUnderMoveLimit-True, DistFmZone-zkm
iphone 06:46:00 - Away 2 hrs 0 min z km Distance Data > DirOfTrav-stationary, LastDirOfTrav-AwayFrom, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m
iphone 06:46:00 - Away 2 hrs 0 min z km Moving Into Stationary Zone > iphone_stationary, GPS-(x, y), DistFromHome-z.82km, StationarySince-6:36:00 (10 min ago)
iphone 06:46:00 - Stationary 10 min 0 min z km Results: From-Home > CurrZone-Stationary, GPS-(x, y/26m), Interval-10 min (3->150km,5-Stationary), Dist-z km, NextUpdt-6:56:00, LocationTime-6:38:26 (7.6 min ago), OldLocThreshold-1.5 min
iphone 06:46:00 - Stationary 10 min 0 min z km FmF update completed
iphone 06:46:05 - Stationary 10 min 0 min z km Device Monitor > UpdateMethod-None, ***@***.***:38:26, State-stationary, ***@***.***:38:26, LastLoc-6:46:00, Zone-iphone_stationary, HomeDist-z.82km, inZone-True, GPS-(y, x/26m), StateThisPoll-stationary, StateLastPoll-stationary
iphone 06:50:00 - Stationary 10 min 0 min z km FmF update started (Resuming)
iphone 06:50:00 - Stationary 10 min 0 min z km Requesting New iCloud Location > LastLocTime-6:38:26 (11.6 min ago)
iphone 06:50:00 - Stationary 10 min 0 min z km Refreshed FmF iCloud location data
iphone 06:50:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:47:34 (2.4 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:50:15, OldLocPoorGpsCnt-#1, DiscardCnt-#450
iphone 06:50:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#450, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart
iphone 07:00:00 - Stationary 15 sec 0 min z km FmF update started (Resuming)
iphone 07:00:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:47:34 (12.4 min ago)
iphone 07:00:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data
iphone 07:00:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:50:01 (10 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-7:00:15, OldLocPoorGpsCnt-#1, DiscardCnt-#451
iphone 07:00:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#451, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart
iphone 07:09:28 - Stationary 15 sec 0 min z km FmF update started (Locating)
iphone 07:09:28 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:50:01 (19.4 min ago)
iphone 07:09:28 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data
iphone 07:09:29 - Stationary 15 sec 0 min z km Discarded > OldLocation-7:00:01 (9.4 min ago) (#2), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-7:09:45, OldLocPoorGpsCnt-#2, DiscardCnt-#452
iphone 07:09:29 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#2, • Discarded Updates-#452,
Unformatted: ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart iphone 06:20:00 - Stationary 15 sec 0 min z km FmF update started (Resuming) iphone 06:20:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:00:01 (20 min ago) iphone 06:20:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data iphone 06:20:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:18:28 (1.5 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:20:15, OldLocPoorGpsCnt-#1, DiscardCnt-#448 iphone 06:20:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#448, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart iphone 06:30:00 - Stationary 15 sec 0 min z km FmF update started (Resuming) iphone 06:30:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:18:28 (11.5 min ago) iphone 06:30:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data iphone 06:30:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:22:07 (7.9 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:30:15, OldLocPoorGpsCnt-#1, DiscardCnt-#449 iphone 06:30:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#449, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart iphone 06:36:02 - Stationary 15 sec 0 min z km FmF update started (Resuming) iphone 06:36:02 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:22:07 (13.9 min ago) iphone 06:36:02 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data iphone 06:36:02 - Stationary 15 sec 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:35:08 (54 sec ago) iphone 06:36:02 - Stationary 15 sec 0 min z km Reset Stationary Zone Location > iphone_stationary, Moved to Base Location-(x, y), DistFromHome-507.75km iphone 06:36:02 - Stationary 15 sec 0 min z km Selected Zone > Away > XYZ Iphone 06:36:02 - Away 15 sec 0 min z km Stat Zone > Reset Timer, MovedOverLimit-True, ResetTimer-True, Moved-360m, Timer-00:00:00, to 6:46:00 iphone 06:36:02 - Away 15 sec 0 min z km Distance Data > DirOfTrav-left_zone, LastDirOfTrav-in_zone, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-360m iphone 06:36:02 - Away 2.5 min 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2.5 min (3-NeedInfo), Dist-z km, NextUpdt-6:38:30, LocationTime-6:35:08 (54 sec ago), OldLocThreshold-1 min, WillMoveIntoStatZoneAfter-6:46:00 (0m) iphone 06:36:03 - Away 2.5 min 0 min z km FmF update completed iphone 06:36:05 - Away 2.5 min 0 min z km Device Monitor > UpdateMethod-None, @.:35:08, State-stationary, @.:35:08, LastLoc-6:36:02, Zone-aiphone_stationary, HomeDist-z.82km, inZone-True, GPS-(x, y/26m), StateThisPoll-stationary, StateLastPoll-stationary iphone 06:38:25 - Away 2.5 min 0 min z km Requesting New iCloud Location > LastLocTime-6:35:08 (3.3 min ago) iphone 06:38:30 - Away 2.5 min 0 min z km Next Update Time reached > iphone iphone 06:38:30 - Away 2.5 min 0 min z km FmF update started (Next Update Time reached) iphone 06:38:30 - Away 2.5 min 0 min z km Requesting New iCloud Location > LastLocTime-6:35:08 (3.4 min ago) iphone 06:38:30 - Away 2.5 min 0 min z km Refreshed FmF iCloud location data iphone 06:38:30 - Away 2.5 min 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (4 sec ago) iphone 06:38:30 - Away 2.5 min 0 min z km Selected Zone > Away > XYZ iphone 06:38:30 - Away 2.5 min 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 450.0 secs, TimerExpired-FalseUnderMoveLimit-True, DistFmZone-zkm iphone 06:38:30 - Away 2.5 min 0 min z km Distance Data > DirOfTrav-AwayFrom, LastDirOfTrav-not_set, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m iphone 06:38:30 - Away 2 hrs 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2 hrs (3->150km,6-Away(Calc)x2), Dist-zkm, NextUpdt-8:38:30, LocationTime-6:38:26 (4 sec ago), OldLocThreshold-10 min, WillMoveIntoStatZoneAfter-6:46:00 (0m) iphone 06:38:31 - Away 2 hrs 0 min z km FmF update completed iphone 06:38:35 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-None, @.:38:26, State-not_home, @.:38:26, LastLoc-6:38:30, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home iphone 06:40:00 - Away 2 hrs 0 min z km FmF update started (Resuming) iphone 06:40:00 - Away 2 hrs 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (1.6 min ago) iphone 06:40:00 - Away 2 hrs 0 min z km Selected Zone > Away > XYZ iphone 06:40:00 - Away 2 hrs 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 365.0 secs, TimerExpired-FalseUnderMoveLimit-True, DistFmZone-zkm iphone 06:40:00 - Away 2 hrs 0 min z km Distance Data > DirOfTrav-AwayFrom, LastDirOfTrav-AwayFrom, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m iphone 06:40:00 - Away 2 hrs 0 min z km Results: From-Home > CurrZone-Away, GPS-(x, y/26m), Interval-2 hrs (3->150km,6-Away(Calc)x2), Dist-zkm, NextUpdt-8:40:00, LocationTime-6:38:26 (1.6 min ago), OldLocThreshold-10 min, WillMoveIntoStatZoneAfter-6:46:00 (0m) iphone 06:40:01 - Away 2 hrs 0 min z km FmF update completed iphone 06:40:05 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-None, @.:38:26, State-not_home, @.:38:26, LastLoc-6:40:00, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home iphone 06:46:00 - Away 2 hrs 0 min z km Move into Stationary Zone Timer reached > iphone, Expired-6:46:00 iphone 06:46:00 - Away 2 hrs 0 min z km Device Monitor > UpdateMethod-ICLOUD, UpdateReason-Move into Stat Zone , State-not_home, Trigger-MoveIntoStatZone, LastLoc-6:40:00, Zone-not_home, HomeDist-z.82km, inZone-False, GPS-(x, y/26m), StateThisPoll-not_home, StateLastPoll-not_home iphone 06:46:00 - Away 2 hrs 0 min z km FmF update started (Move into Stat Zone ) iphone 06:46:00 - Away 2 hrs 0 min z km Located Device > GPS-(x, y/26m), LocTime-6:38:26 (7.6 min ago) iphone 06:46:00 - Away 2 hrs 0 min z km Selected Zone > Away > XYZ iphone 06:46:00 - Away 2 hrs 0 min z km Stat Zone Movement > TotalMoved-0m, Timer-6:46:00, TimerLeft- 0.0 secs, TimerExpired-TrueUnderMoveLimit-True, DistFmZone-zkm iphone 06:46:00 - Away 2 hrs 0 min z km Distance Data > DirOfTrav-stationary, LastDirOfTrav-AwayFrom, DistFmZone-zkm, LastDistFmZone-zkm, DistFmZoneMoved-0.82km, DistFmLastPollMoved-0m iphone 06:46:00 - Away 2 hrs 0 min z km Moving Into Stationary Zone > iphone_stationary, GPS-(x, y), DistFromHome-z.82km, StationarySince-6:36:00 (10 min ago) iphone 06:46:00 - Stationary 10 min 0 min z km Results: From-Home > CurrZone-Stationary, GPS-(x, y/26m), Interval-10 min (3->150km,5-Stationary), Dist-z km, NextUpdt-6:56:00, LocationTime-6:38:26 (7.6 min ago), OldLocThreshold-1.5 min iphone 06:46:00 - Stationary 10 min 0 min z km FmF update completed iphone 06:46:05 - Stationary 10 min 0 min z km Device Monitor > UpdateMethod-None, @.:38:26, State-stationary, @.:38:26, LastLoc-6:46:00, Zone-iphone_stationary, HomeDist-z.82km, inZone-True, GPS-(y, x/26m), StateThisPoll-stationary, StateLastPoll-stationary iphone 06:50:00 - Stationary 10 min 0 min z km FmF update started (Resuming) iphone 06:50:00 - Stationary 10 min 0 min z km Requesting New iCloud Location > LastLocTime-6:38:26 (11.6 min ago) iphone 06:50:00 - Stationary 10 min 0 min z km Refreshed FmF iCloud location data iphone 06:50:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:47:34 (2.4 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-6:50:15, OldLocPoorGpsCnt-#1, DiscardCnt-#450 iphone 06:50:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#450, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart iphone 07:00:00 - Stationary 15 sec 0 min z km FmF update started (Resuming) iphone 07:00:00 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:47:34 (12.4 min ago) iphone 07:00:00 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data iphone 07:00:01 - Stationary 15 sec 0 min z km Discarded > OldLocation-6:50:01 (10 min ago) (#1), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-7:00:15, OldLocPoorGpsCnt-#1, DiscardCnt-#451 iphone 07:00:01 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#1, • Discarded Updates-#451, ---------------------------------------------------------------------------, Event Log > Actions > Resume Polling to restart iphone 07:09:28 - Stationary 15 sec 0 min z km FmF update started (Locating) iphone 07:09:28 - Stationary 15 sec 0 min z km Requesting New iCloud Location > LastLocTime-6:50:01 (19.4 min ago) iphone 07:09:28 - Stationary 15 sec 0 min z km Refreshed FmF iCloud location data iphone 07:09:29 - Stationary 15 sec 0 min z km Discarded > OldLocation-7:00:01 (9.4 min ago) (#2), OldLocThreshold-1.5 min, GPS-(x, y/26m), NextUpdt-7:09:45, OldLocPoorGpsCnt-#2, DiscardCnt-#452 iphone 07:09:29 - Stationary 15 sec 0 min z km Tracking Paused > Excessive Errors Encountered, • Old Location Errors-#2, • Discarded Updates-#452,
It's stuck on Tracking Paused > Excessive Errors Encountered
Also, in this time that the automation ran, it seems like iCloud3 posted a very old location as being recent. Also visually with the map entity I could see that the iphone was displayed in the old location, but straight away moved to the new location when I manually pressed Resume Polling or Update Phone's Location.
To your v3 question. It’s in beta and that is going good. The v3 docs are here
Nice. I will see if I have time to test soon.
Now again after some succesful runs, it says
Tracking Paused > Excessive Errors Encountered
• Old Location Errors-#1
• Discarded Updates-#462
The only thing I can think of is a rate limit, but never any issue when opening Find My on phone or tablet. The current rate should be 6x per hour that the automation for resume runs. As far as I can see, nothing else happens and not in between the 10 minute intervals.
Unless of course the Apple app lies on user end and your software can see the actual last located time.
The thing to do is to see what is causing the errors. Get more detail off the activity in the Event Log by selecting Event Log > Actions > Show Tracking Monitors. Also, you can turn on debug mode u using Event Log > Actions > Start Debug Monitor or something like that. That will add records to the /config/home-assistant.look file. Look for error messages to see what is being discarded - messages with a retry counter n the Event Log.
Thanks I will do that when it happens again.
Meanwhile I used resume followed by locate every 10 minutes. That works maybe.
Then I had another read through the docs and my config and found max_interval. I enabled it on 10 minutes. Maybe that actually is the solution? Because the only thing I am looking for is for the iCloud3 component to not give up and increase the interval. Just try again every 10 minutes, or sooner if the software has a reason for that.
What are yourinzone Interval values?
Full config:
#--Zone/Tracking Parameters---------------------------------------
#inzone_interval: '20 min'
inzone_intervals:
- inzone_interval: 10 min
- no_iosapp: 10 min
max_interval: '10 min'
center_in_zone: false
stationary_inzone_interval: '10 min'
stationary_still_time: '10 min'
stationary_zone_offset: '210, -700'
#travel_time_factor: .6
distance_method: calc
#--Accuracy Parameters--------------------------------------------
gps_accuracy_threshold: 300
ignore_gps_accuracy_inzone: false
old_location_threshold: '15 min'
#--Formatting Parameters------------------------------------------
unit_of_measurement: km
time_format: 24
This is for phone without HA App.
I guess max_interval is also not the way to go for me, because despite the above value of 10 minutes, I see the system setting the interval to more than that now