# Strømligning

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

Requires an API key from [stromligning.dk](https://stromligning.dk/api/docs/). Prices are in DKK/kWh and include the applicable taxes and grid fees. Production prices exclude VAT and include production tariff deductions, but not electricity company fees. Commercial use requires permission from Strømligning.

Supported features: Denmark

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| apikey | API Key |  |  |
| supplierid | Grid supplier ID | radius_c |  |
| pricetype | Price type Use consumption for grid prices and production for feed-in prices. (consumption, production) | consumption |  |
| productid | Product ID Used for consumption prices only. Find IDs in the API documentation. | enkel_energi-enkel_kvartal |  |
| customergroupid | Customer group ID For production prices, leave empty to select the production customer group automatically. | C_egenproducent |  |
| agreementstart | Agreement start Contract start date (YYYY-MM-DD). Only used for consumption prices, when product ID has discount based on start date. | 2025-03-01 |  |
| 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: stromligning
      apikey: # API Key
      supplierid: radius_c # Grid supplier ID
      pricetype: consumption # Price type, Use consumption for grid prices and production for feed-in prices. [consumption, production] (optional)
      productid: enkel_energi-enkel_kvartal # Product ID, Used for consumption prices only. Find IDs in the API documentation. (optional)
      customergroupid: C_egenproducent # Customer group ID, For production prices, leave empty to select the production customer group automatically. (optional)
      agreementstart: '2025-03-01' # Agreement start, Contract start date (YYYY-MM-DD). Only used for consumption prices, when product ID has discount based on start date. (optional)
      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)
```
