Watch for a free spot at your prefered EV charging station

Hi,
Living in the city with no garage or parking spot, I rely on public EV charging stations. While I’m waiting for my first EV to be delivered, I made a quick’ndirty integration to have the stations around me displayed in HA:

I have a station around the corner, so I can use this to get notifications when a spot gets free.

The integration uses the TomTom API that you can use for free for a limited calls per day.

Maybe this is useful for someone.
Happy Home Assistant tinkering.

Edit:
The free TomTom api only allows one call every 5 minutes, and the EV endpoint only allows to pass one station ID per call, so if you want to get data from several stations, you need to adapt the scan_interval.
The Here api allows to make a call on a zone and retrieve all EV stations within a radius. HERE Technologies Documentation | HERE Docs
My restfull sensor for a single station:

  - platform: rest
    name: "EV Venue Victor Rousseau"
    resource: "https://ev-v2.cc.api.here.com/ev/stations.json?prox=[longitude],[latitude],[radius in meters]&apiKey=[your-api-key]"
    method: GET
    value_template: >-
      {% set station = value_json.evStations.evStation | selectattr('id', 'equalto', 'station_id') | list | first %}
      {% if station is not none %}
        {% set connectors = station.connectors.connector %}
        {% set statuses = connectors[0].connectorStatuses.connectorStatus %}
        {{
          statuses | selectattr('state', 'equalto', 'AVAILABLE') | list | length
        }}
      {% else %}
        unknown
      {% endif %}
    scan_interval: 300
    json_attributes:
      - evStations

NB: Haven’t found an API that shares price informations so far.

2 Likes

Hi Daniel,

sounds very interesting.
I am not familiar with TomTom, but does this support all EV charging station providers (IONITY, Aral Pulse, EnBW, …)?

If so, does the API also provide the kWh price?

Thank you!

its reporting connectors available , no price

1 Like

Thank you for the quick response.
I will play around with it a bit :slight_smile: