EON charging stations for electric vehicles

Couldn’t find a post on this so sharing if someone else is interested:

EON is exposing the status of their charging stations for electric vehicles through a public API. Looks like it’s available for Sweden, Norway, Finland, Hungary, France, Germany and possible other countries too. Made a very simple template-based implementation of this to see what charging stations that are available near me. The ID# is the one I’m finding for the station in the EON app. charging_station_18912_template is the entity I’m showing in my lovelace card.

sensor:
  - platform: rest
    name: charging_station_18912
    json_attributes:
      - errandpowercents
      - name
      - status
      - available
      - connected
      - rating
      - error
    value_template: '{{ value_json["status"] }}'
    resource: https://charge.virtaglobal.com/api/stations/18912

  - platform: template
    sensors:

      charging_station_18912_template:
        friendly_name_template: "{{ state_attr('sensor.charging_station_18912', 'name') }}"
        value_template: "{{ state_attr('sensor.charging_station_18912', 'available') }}"
        icon_template: >-
            {% if is_state('sensor.charging_station_18912', 'inuse') %}
              mdi:alert-decagram
            {%- else -%}
              mdi:check-decagram
            {%- endif -%}

Im a total newbie… so sorry if this is a really stupid question.

It works really well also with danish chargers, but what if i want to check more than one charger?

Just duplicate the code and change 18912 to something else.

Nice, exactly what i have been looking for
Have to figure out how send an alert when a charger goes from occupied to free