ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
142 stars 27 forks source link

coordinates of tracker are incorrect #254

Closed penguin242 closed 2 weeks ago

penguin242 commented 2 weeks ago

The problem

The coordinates returned are of by about 1.000050415956 for latitude and 0.9966484928 for longitude.

What version of MBAPI2020 do use?

V0.16.0

What was the last working version of MBAPI2020?

No response

What type of installation are you running?

Home Assistant Core

Diagnostics information

No response

Example YAML snippet

bypass via helper: 
{{ state_attr('device_tracker.xxxxxxx_device_tracker', 'latitude') / 1.0000504159565269679922767578942}}

{{ state_attr('device_tracker.xxxxxxx_device_tracker', 'longitude') / 0.99664849282758626564702663733325}}

Anything in the logs that might be useful for us?

No response

Additional information

No response

ReneNulschDE commented 2 weeks ago

Please share the diagnostic log or search in this log for "enable_china_gcj_02" and share the setting. And share your country/region.

penguin242 commented 2 weeks ago

setting is true:

   "minor_version": 1,
      "options": {
        "cap_check_disabled": false,
        "save_files": false,
        "delete_auth_file": false,
        "enable_china_gcj_02": true,
        "pin": "",
        "excluded_cars": ""
      },
penguin242 commented 2 weeks ago

China off did the trick! thx!