# Connect pvnode with EVCC

[EVCC](https://evcc.io/) is an open-source charging controller for electric
vehicles. pvnode is built in as a forecast source — EVCC uses the 15-minute
forecast to schedule charging for periods with expected solar surplus.

:::note
**V1 or V2?** EVCC ships both templates: `pvnode-v2` uses the V2 API with a site
ID, `pvnode` uses the V1 API, which will be **shut down on 31 Dec 2026** — see
[Migration from V1](/en/v2/migration).
:::

## Setup

1. **Create a site.** Create your [site](https://pvnode.com/sites) with all its PV
   strings once in pvnode and copy the `site_id`. Tilt, orientation, power and
   everything else is configured there from now on
   ([Sites & Strings](/en/v2/api/sites)).
2. **Get an API key** at [API keys](https://pvnode.com/settings/api-keys).
3. **Add it to EVCC.** In the UI, `site_id` and `apikey` are all you need to get
   the forecast flowing. Alternatively, straight in `evcc.yaml`:

```yaml title="evcc.yaml"
tariffs:
  solar:
    - type: template
      template: pvnode-v2
      site_id: # site ID
      apikey: # pvnode API key
      forecast_days: 1 # optional, default: 1 (= today + tomorrow)
      interval: 24h    # optional, default: 24h
```

:::note
The free plan allows exactly one site, `forecast_days: 1` (today + tomorrow) and
one update per day — leave `interval` at `24h` in that case. A paid plan lets you
raise both, see [pricing](https://pvnode.com/#pricing).
:::

## Further options

All remaining settings are documented by EVCC:

**[→ pvnode V2 API in the EVCC documentation](https://docs.evcc.io/en/tariffs/pvnode-v2-api/)**
· [V1](https://docs.evcc.io/en/tariffs/pvnode/)
