# Dynamic Tariffs

> Shows how to set up a fixed, time-based or dynamic electricity tariff such as Tibber or Awattar and let evcc charge from the grid in the cheapest hours.

If your own PV power is not sufficient, the charging power requirement must be covered from time to time by grid power. If you have an electricity tariff with flexible electricity prices such as [Tibber](https://tibber.com/de/) or [Awattar](https://www.awattar.de/), you can optimize your grid charging with evcc.

## Configure data source

Your electricity price is configured under **Configuration → Tariffs & Forecasts → Add tariff → Add grid import tariff**. The currency can be changed under **Configuration → General → Currency**.

### Fixed electricity tariff

For a fixed electricity tariff, choose **Fixed Price** in the **Provider** field and enter your price per kWh. This information is used to calculate the actual charging costs.

### Time-dependent electricity tariff

If different prices apply at certain times, choose **Time-based Tariff** in the **Provider** field. Enter your regular price in the **Default price** field. With **Add zone** you can define as many periods as you like in which a different price applies, e.g. on weekdays from 2 to 6 am or at the weekend. Each zone has its own price and can be limited to specific days and hours.

### Dynamic electricity tariff via API

If you have an electricity tariff that follows electricity exchange prices, for example, you can also obtain the prices via an API. Choose your provider in the **Provider** field, e.g. [Tibber](https://tibber.com/de/), and enter the provider-specific access data such as the API token.

You can find a list of all supported tariffs under [tariffs](/en/tariffs). If your provider has an interface but is not yet supported by evcc, please submit a [Feature Request](https://github.com/evcc-io/evcc/issues/new/choose).

### Time-based grid fees

If your grid operator bills time-dependent grid fees (e.g. time-variable network charges according to § 14a EnWG in Germany), you can add them on top of any tariff using `chargesZones`. See [time-based grid fees](/en/reference/configuration/tariffs#charges-zones) for details.

## Smart feed-in

During certain periods of the day and in specific regions, there might be an abundance of solar power. At the same time, there may be almost no load on the grid. During these periods your energy provider might apply a cost for injecting your PV-power to the grid as supply is high but demand is low and the grid is overloaded. evcc supports smart feed-in and allows you to define a set point at which it will throttle PV inverters to prevent feed-in.

## Cheap grid charging

If you have configured a time-dependent or dynamic electricity tariff, the “Cheap grid charging” section will appear in the settings dialog at the charging point.

![Settings at the charging point](/_astro/co2-loadpoint-settings-en-light-1x.CZ3Pcidy.webp)

Settings at the charging point

Here you can see the energy prices for the coming hours and set a price limit.

![Screenshot of the Smart Grid Charging dialog with set price limit](/_astro/dynamicprice-modal-en-light-1x.p8fRfmWL.webp)

Screenshot of the Smart Grid Charging dialog with set price limit

This limit applies in **Smart** mode of the current charging point. If you click on “apply everywhere”, the limit is applied to all charging points. In addition to [Solar Surplus Charging](/en/features/solar-charging), fast charging is now activated in the hours with low electricity prices (green bars).

## Charging plan

By using [charging plans](/en/features/plans) you can regulate your energy costs even more precisely. All you have to do is enter your energy quantity (kWh) or your target charge level (%) and the desired departure time. If a time-dependent or dynamic electricity tariff is configured, the planning algorithm automatically selects the cheapest hours for charging.

![Screenshot of the charging plan dialog with price-optimised charging](/_astro/dynamicprice-plan-en-light-1x.fwFjPZCk.webp)

Screenshot of the charging plan dialog with price-optimised charging