mbillow / ha-chargepoint

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

International login fails #3

Closed unsoluble closed 2 years ago

unsoluble commented 2 years ago

Any chance the login service is US-only? I get invalid credentials here logging into the HCAS integration in Canada (which on the web takes me to ca.chargepoint.com).

mbillow commented 2 years ago

Interesting. Yes, I have only ever tested it with my US ChargePoint account. Let me make a Canadian account and see if I can get the right URLs.

mbillow commented 2 years ago

So it looks like the app makes a call to https://discovery.chargepoint.com/discovery/v3/globalconfig with the username that is trying to log in and that endpoint returns a map of region-specific services for us to talk to. Working on a new version of mbillow/python-chargepoint that handles this discovery correctly and then I will pull it into the HA add-on.

unsoluble commented 2 years ago

Cool, thanks for investigating! Will be neat to be able to use this integration. :)

mbillow commented 2 years ago

I just published v0.2.0. Let me know how it goes!

mbillow commented 2 years ago

Closing the loop for @davcho80 as well, you should be good to upgrade and try again. 😄

davcho80 commented 2 years ago

@mbillow ooh yes everything is good Thank you

unsoluble commented 2 years ago

Nailed it — logged in and running now. Thanks! :)

mbillow commented 2 years ago

Awesome, glad it works for y’all!