reported GPS not accurate (too low)
See original GitHub issueHome Assistant Android version: 2.3.3-full Android version: 10 (OnePlus 8Pro) 10 (Pixel 3) 9 (Joying JY-HOS02N4GS-1 (car stereo running android)) Phone model: OnePlus 8Pro Pixel 3 Joying JY-HOS02N4GS-1 (car stereo running android) Home Assistant version: 0.114.4 Last working Home Assistant release (if known): probably never Description of problem: The GPS speed which is reported by the app is not accurate, in fact it is too low. I’m using a mariadb instance for home assistant and dug around a bit.
Selection criteria
- table: states
- select: entity_id like device_tracker.%, json value = speed is not null
What I found
- 28110 entries where the json value is not null over the 3 devices
- out of the 28110 there are 121 distinct combinations of device and speed
- highest value for speed overall is 56
- total of 4 values for speed over 50.
Considering the fact that I live in germany and drive on the autobahn you can see why a maximum speed of 56 has to be a mistake 😂
Traceback (if applicable):
Screenshot of problem:
Additional information: There is already one topic on the home assistant forum (couldn’t find an issue here on github related to this)
Like I mentioned on the forum, I search through this repo looking for the locaton update functionality and all I could find was the declaration for the speed variable as type int and then the locationupdate/locationdata from Android itself. So as long as android delivers the correct raw data for GPS, we should be fine. That’s at least my uneducated interpretation of it. The thing is though, the GPS speed on my devices is accurate, at least when using other apps utilizing GPS; Waze for example. I’ll install an additional GPS data logger in my car tomorrow, this way I should have two datasets that can be compared.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
The mobile_app integration expects it to be positive integer: https://github.com/home-assistant/core/blob/dev/homeassistant/components/mobile_app/webhook.py#L313
And why it’s in m/s: https://developers.home-assistant.io/docs/api/native-app-integration/sending-data#update-device-location
Alright, that settles it then. I’ll close the issue and thank you @JBassett and @dshokouhi for your time and explanations.
Have a good one! 😃