-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Max speed? #402
Comments
ping. is this something to bring up in hass forums instead? |
ICloud3 looks at the (1) gps accuracy and (2) its age to see if that location event should be discarded. If the location is poor or old, a location request is submitted to Apple for an update. The Event Log shows the location data that was discarded and the results of the of the location request. The mobile app location also plays a part and will be used it is newer than the last Apple location. i would look at the Event Log to see where the location data is coming from when it ‘snaps’ back to home. You should see a zone change from Away to Home to Away. That might identify what is going on. Check the mobile app device tracker entity being monitored and make sure it is correct. I have tried to use a max speed in the past (a while ago) with limited success due to poor and old locations, distances traveled and other factors. What version of iCloud3 are you using? |
Thanks for the tips - I'm running 3.1.4.4 This may be an irrelevant detail, but it doesn't snap to home necessarily. It snaps to the last icloud3 location vs the newer (and more accurate in practice, though I'm not sure if there's an accuracy score from the car(s) or icloud which is muddying things) location as provided by the car or mobile app. If anything this seems like an issue that the home assistant person tracker would be best-equipped to solve, but I was hoping there might be a magic config incantation for icloud3 which would help. |
iCloud3 monitors only the Apple account and the mobile app device tracker for location changes and uses best one. If another integration also updates the devices location, there may be conflicts and iCloud3 may/probably will reset it to the location it know about thinking that the location may have wandered due to gps accuracy issues. Instead of updating the location directly, you could issue an iCloud3 Action call to immediately update the location. See the iCloud3 User Guide here for more info. |
I didn't find this in the docs, so posting here so that I might immediately find it in the docs and facepalm.
Is there a way to filter location results with a "maximum speed?"
My spouse and I each have apple devices tracked by icloud3 and vehicles which also report location. Each of us have both trackers assigned to our Home Assistant "person" - this works mostly as I would expect, though occasionally icloud3 "snaps" the person's location back to a previous point even though our car has a more recent and more accurate update. This results in straight lines from the vehicle's location radiating back to the icloud3 location origin as shown in this screenshot
is there a way to avoid this? I was thinking maybe a way to set a maximum reasonable speed since we obviously can't travel 60 miles in 5 seconds for instance. There's likely to be a simpler/more clever way to handle this, so I'm all ears for suggestions. Thanks for all your work on the integration!
The text was updated successfully, but these errors were encountered: