mbillow / ha-chargepoint

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

no energy consumption data #28

Open swonge opened 11 months ago

swonge commented 11 months ago

I’m new to HA and I am using ChargePoint Flex at home. I started to integrate with mbillwo/ha-chargepoint for a week. For some reason, no energy consumption data is capture. Now sure if I missing something in the setting. The ChargePoint app (iOS) does show the energy consumption data

screenCap

Thanks in advance

Hexis858 commented 9 months ago

I experienced the same issue, no consumption data. It does indicate when I was plugged-in and charging.

I noticed that my chargepoint.com account connects to an endpoint specific for my region (Canada) account-ca.chargepoint.com

This HA component is connecting to the general endpoint at account.chargepoint.com

I hacked my local version, hard coded the endpoint, and I now see consumption data. (Let me know if you need details)

To @mbillow Could you add an option to choose the region during the Integrations setup step? A quick search revealed these regions (there may be more): account-ca.chargepoint.com account-au.chargepoint.com account-eu.chargepoint.com

Thank you Marc for building the HA integration.

mbillow commented 9 months ago

Weird, I distinctly remember building some kind of interface for their regional service discovery endpoint.

Can you drop some more details around what you changed to make it work (code examples would be great). Or, if you’ve feeling ambitious, I’m happy to review a PR. 😊