Public charging apis?

Hi there,

I own an electric vehicle and have to charge it every now and then on the streets.
There are several public chargers around and loads of apps to show them (Chargemap, A Better Route Planner, Airlectric and so on).
All those apps show the public charging points as well as if they are currently used or open. I don’t know what API those apps are using.

But I would love to see this data in home assistant, for example to trigger an alarm whenever the charing point around my house gets free.

https://openchargemap.org/site/develop/api#/operations/get-poi
could be a start point

Bit misleading the title. I thought it was about killer bees. :frowning_face:

Have you solved this? Does HA have an integration for openchargemap already? Thanks.

I solved it somehow. I am using the map from ENBW Ladestationen finden and use the REST integration.

rest:
  - scan_interval: 60
    resource: https://enbw-emp.azure-api.net/emobility-public-api/api/v1/chargestations/xxxxxxxx
    headers:
      Host: 'enbw-emp.azure-api.net'
      Ocp-Apim-Subscription-Key: 'yyyyyyyyyy'
      Origin: 'https://www.enbw.com'
      Referer: 'https://www.enbw.com/'

Use Developer Tools → Network, open the charging point in question (xxxxx) and look at the headers to get the subscription key (yyyyy).

2 Likes

This is one way…

The other way is to use the Google API that enwb is using, you can also find it there :slight_smile:

Sent me a message if you need one .

Hi djartistic!

Could you please share the API information for Google? Now I use ENBW, but the past weeks the map is not updating correctly. Most of the time it shows that a charger is available, when it’s not.

I would like to change to Google, I think that will work better :).

Thanks!

Hi, do you have more information on this? Thanks a lot!

More infos on that will be greatly appreciated