tariffs
You can specify your energy tariff and, if applicable, your feed-in tariff. evcc uses these values for a rough savings calculation that is displayed in the web UI. This data is also used by the planner for price and CO₂-optimized charging.
Structure
tariffs: grid: type: ... feedin: type: ... co2: type: ...For example: Constant Energy Price
tariffs: currency: EUR # (default EUR) grid: # static grid price type: fixed price: 0.294 # [currency]/kWh
feedin: # rate for feeding excess (pv) energy to the grid type: fixed price: 0.08 # [currency]/kWhMore examples and a list of available providers can be found in the section Tariffs.
Time-Based Grid Fees
Section titled “Time-Based Grid Fees”Use charges to add a fixed fee per kWh to every price value.
If your grid operator bills time-dependent grid fees (e.g. time-variable network charges according to § 14a EnWG in Germany), use chargesZones to override the default charges for specific periods.
This works with any grid tariff, no matter if it uses a provider template, a fixed price or a custom source.
Each zone has the following fields:
| Field | Required | Description |
|---|---|---|
charges | yes | Fee per kWh in this zone. Replaces the default charges. |
months | no | e.g. Nov-Mar or Jun. Empty means all year. |
days | no | e.g. Mon-Fri or Sat,Sun. Empty means every day. |
hours | no | e.g. 17-20 or 15:30-21. Empty means all day. |
Example:
tariffs: grid: type: template template: tibber token: "..." charges: 0.0941 # default grid fee per kWh chargesZones: - months: Nov-Mar days: Mon-Fri hours: 17-20 charges: 0.1838 # peak - hours: 0-6 charges: 0.0299 # lowIf no zone matches, the default charges applies.
If zones overlap, the last matching zone wins.
When a formula is configured, the charges variable contains the zone value of the respective time slot.
A fixed tariff with chargesZones is treated like a dynamic tariff: the planner prefers cheap periods and the price chart is shown.
Feature Flags
Section titled “Feature Flags”For custom tariffs (type: custom) you can influence behaviour via features:
| Feature | Description |
|---|---|
| average | Smooths fine-grained price slots (e.g. 15-minute values) into hourly averages. |
| cacheable | Persists fetched values. Used as fallback after a restart or provider outage (up to 24 hours). |
Example:
tariffs: grid: type: custom features: - cacheable # ... additional attributes