# Vehicle API-only charger

Source: https://docs.evcc.io/en/chargers/vehicle-api-only-charger

A charger implementation that delegates control to the vehicle instead of controlling the charger directly.
This is useful for "granny chargers" or simple chargers that cannot be controlled.

The charger requires a vehicle that supports charge control (start/stop charging) and the ability to report the charging status.
If the vehicle supports position tracking, this can be used for geofencing.
When geofencing is enabled, the evcc will only affect charging behavior when the vehicle is within the specified radius of the home coordinates.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| geofence_enabled | Enable geofencing | false |  |
| lat | Latitude | 55.7351 |  |
| lon | Longitude | 9.1275 |  |
| radius | Geofence radius in meters Radius around charging location where charging is controlled by evcc (in meters) | 100 | advanced |

## Configuration example for evcc.yaml

```yaml
chargers:
    - name: my_charger
      type: template
      template: vehicle-api
      geofence_enabled: false # Enable geofencing, optional
      lat: 55.7351 # Latitude, optional
      lon: 9.1275 # Longitude, optional
      radius: 100 # Geofence radius in meters, Radius around charging location where charging is controlled by evcc (in meters) (optional)
```
