mbillow / ha-chargepoint

Home Assistant ChargePoint EV Charger Integration
MIT License
44 stars 6 forks source link

Add KM on the card #6

Open davcho80 opened 2 years ago

davcho80 commented 2 years ago

is it possible to have KM in the card?

mbillow commented 2 years ago

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

taylornoonan commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

ohh good news, thank you

mbillow commented 1 year ago

@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 commented 1 year ago

Hi Marc, I'm not sure how to go about this. I don't have Python on my PC, so if you could give detailed instructions!

Michael

---- On Sun, 14 Aug 2022 12:48:47 -0700 Marc Billow @.***> wrote ---

https://github.com/davcho80 https://github.com/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.

— Reply to this email directly, https://github.com/mbillow/ha-chargepoint/issues/6#issuecomment-1214438064, or https://github.com/notifications/unsubscribe-auth/AQBWFEXLJAMFQ46DDCHA2WDVZFER7ANCNFSM5XF22Z4Q. You are receiving this because you were mentioned.

taylornoonan commented 1 year ago

Well, thank you for considering the request, and I appreciate whatever you are able to do.

Michael

From: Marc Billow @.> Sent: July 19, 2022 7:04 PM To: mbillow/ha-chargepoint @.> Cc: taylornoonan @.>; Comment @.> Subject: Re: [mbillow/ha-chargepoint] Add KM on the card (Issue #6)

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.

— Reply to this email directly, view it on GitHub https://github.com/mbillow/ha-chargepoint/issues/6#issuecomment-1189722122 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQBWFERGKTKWTXSSE4IH76LVU5NBVANCNFSM5XF22Z4Q . You are receiving this because you commented. https://github.com/notifications/beacon/AQBWFETTK4ACW7HRYK2W4GTVU5NBVA5CNFSM5XF22Z42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI3U3QCQ.gif Message ID: @. @.> >

FaizVisram commented 3 months ago

@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 commented 3 months ago

Hello Fiaz:

In case this helps, my distance setting has always been in km. Regards Michael


From: Faiz Visram @.> Sent: Tuesday, April 2, 2024 7:34 AM To: mbillow/ha-chargepoint @.> Cc: taylornoonan @.>; Mention @.> Subject: Re: [mbillow/ha-chargepoint] Add KM on the card (Issue #6)

@mbillowhttps://github.com/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.

— Reply to this email directly, view it on GitHubhttps://github.com/mbillow/ha-chargepoint/issues/6#issuecomment-2032210386, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQBWFETAHTNPL5ZDFH3M2LDY3K6WRAVCNFSM5XF22Z42U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTGIZDCMBTHA3A. You are receiving this because you were mentioned.Message ID: @.***>