Skip to content
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

Add KM on the card #6

Open
davcho80 opened this issue May 28, 2022 · 9 comments
Open

Add KM on the card #6

davcho80 opened this issue May 28, 2022 · 9 comments

Comments

@davcho80
Copy link

is it possible to have KM in the card?

@mbillow
Copy link
Owner

mbillow commented May 28, 2022

Not sure I follow, what are you looking to have surfaced?

@taylornoonan
Copy link

taylornoonan commented Jun 30, 2022

I believe what the OP means is that in Canada, distance is measured in kilometers. On my card, miles added is always 0 despite the card showing Charging, cost is always zero too.

@mbillow
Copy link
Owner

mbillow commented Jul 20, 2022

Yah, they recently released a user setting for preferred unit, so it will likely take a bit of refactoring to handle that. Doing so, though, should address this as well.

@davcho80
Copy link
Author

ohh good news, thank you

@mbillow
Copy link
Owner

mbillow commented Aug 14, 2022

@davcho80 @taylornoonan Would either of you be willing to setup mitmproxy and capture the API response from the Canadian API instance? I think I over estimated just how useful the unit work that ChargePoint did in their apps was going to be. The API calls and responses in the US looks the same as always... I just need to know what this call returns outside of the US: https://github.com/mbillow/python-chargepoint/blob/main/python_chargepoint/session.py#L165-L168

The good news is that Home Assistant has some really solid unit conversion helpers built in and that once I know which fields to read, this should be pretty seamless from the HA perspective.

@taylornoonan
Copy link

taylornoonan commented Aug 15, 2022 via email

@taylornoonan
Copy link

taylornoonan commented Oct 11, 2022 via email

@FaizVisram
Copy link

@mbillow are you still waiting on an API dump? It looks like changing to km is an account setting, not a geographic limitation. Would you be able to change your account to km in Account > Profile > Distance Unit? Otherwise I can try to help myself.

@taylornoonan
Copy link

taylornoonan commented Apr 2, 2024 via email

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

No branches or pull requests

4 participants