# REE

Source: https://docs.evcc.io/en/tariffs/ree

Spain PVPC tariff extracted from [api.esios.ree.es](https://api.esios.ree.es). It is possible to create grid and feed-in tariffs. You need a token in order to be able to use the API

Supported features: Spain

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| securitytoken | Esios personal Security token Request your token at <a href="mailto:consultasios@ree.es?subject=Personal token request">consultasios@ree.es</a> |  |  |
| indicator | Indicator to retrieve from the API. 1001 = Grid Tariff, 1739 = Feed-in Tariff (1001, 1739) | 1001 |  |
| region | Region (Península, Canarias, Baleares, Ceuta, Melilla) | Península |  |
| charges | Charge Additional fixed charge per kWh |  | advanced |
| chargesZones | Charges zones Time-based grid fees that override the default charge. |  | advanced |
| tax | Tax Additional percentage charge (e.g. 0.2 for 20%) |  | advanced |
| formula | Formula Individual formula for calculating the price | math.Max((price + charges) * (1 + tax), 0.0) | advanced |

## Configuration example for evcc.yaml

```yaml
tariffs:
    grid:
      type: template
      template: esios
      securitytoken: # Esios personal Security token, Request your token at <a href="mailto:consultasios@ree.es?subject=Personal token request">consultasios@ree.es</a>
      indicator: 1001 # Indicator to retrieve from the API., 1001 = Grid Tariff, 1739 = Feed-in Tariff [1001, 1739]
      region: Península # Region, [Península, Canarias, Baleares, Ceuta, Melilla]
      charges: # Charge, Additional fixed charge per kWh (optional)
      chargesZones: # Charges zones, Time-based grid fees that override the default charge. (optional)
      tax: # Tax, Additional percentage charge (e.g. 0.2 for 20%) (optional)
      formula: math.Max((price + charges) * (1 + tax), 0.0) # Formula, Individual formula for calculating the price (optional)
```
