Skip to content

fix: Added work around to get Odometer value for AU Kia Niro - #745

Open
SNilon wants to merge 9 commits into
Hyundai-Kia-Connect:masterfrom
SNilon:master
Open

fix: Added work around to get Odometer value for AU Kia Niro#745
SNilon wants to merge 9 commits into
Hyundai-Kia-Connect:masterfrom
SNilon:master

Conversation

@SNilon

@SNilon SNilon commented Mar 9, 2025

Copy link
Copy Markdown

Recently I raised an issue (#739) that my AU region Niro didn't have an odometer value. This was due to it being missing in the status response from Kia. The Niro normally requests the non-CCS2 status, however if the CCS2 status is request the response will contain a valid odometer value.

I have implemented a workaround so that the CCS2 status will be request and the odometer value extracted if the non-CCS2 status doesn't contain a valid odometer value.

I have tested this on my car but it would be good if someone else in the AU region were to test it.

@SNilon SNilon changed the title Added work around to get Odometer value for AU Kia Niro fix: Added work around to get Odometer value for AU Kia Niro Mar 9, 2025
@cdnninja

Copy link
Copy Markdown
Collaborator

In theory this increases calls to the API which could lead to rate limits. I am good to merge and scream test though. @fuatakgun thoughts?

SNilon and others added 3 commits March 15, 2025 13:02
…stead of checking if the vehicle object has a odometer value.

Original method worked with bluelink.py but not with the home assistant intergration.
@fuatakgun

Copy link
Copy Markdown
Member

thanks for great work, given that this is a cached called, I do not have a problem with rate limits, while I am sure that I am wrong :) There are some users out, reporting that cached calls are even consuming 12v battery.

furthermore, we should somehow eliminate the repeating behavior of the code.

Can you dump your regular non ccs2 and ccs2 response?

@SNilon

SNilon commented Mar 20, 2025

Copy link
Copy Markdown
Author

There is an example of each response attached to issue #739, let me know if you want more.

The extra API call only happens if the non-CCS2 status is missing the odo value, so this should only result in more API calls for vehicles that are affected by this issue. More testing with other vehicles is probably necessary to confirm this tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants