evcc-io/templates/definition/tariff/energypriceforecast.yaml

70 lines
2.1 KiB
YAML

template: energypriceforecast
products:
- brand: Energy Price Forecast EU
description:
generic: Predicted spot prices
requirements:
description:
de: "Day-Ahead-Strompreise plus 4 Tage Prognose [energypriceforecast.eu](https://energypriceforecast.eu/de/evcc-strompreis-co2-prognose/)"
en: "Day-ahead spot prices plus a 4-day forecast [energypriceforecast.eu](https://energypriceforecast.eu/en/evcc-electricity-price-co2-forecast/)"
evcc: ["skiptest"]
group: price
countries: ["DE", "NL", "BE", "DK", "FR", "AT", "CZ", "PL", "FI", "SE", "NO"]
params:
- name: region
example: DE
type: choice
choice:
[
"DE",
"NL",
"BE",
"DK1",
"DK2",
"FR",
"AT",
"CZ",
"PL",
"FI",
"SE1",
"SE2",
"SE3",
"SE4",
"NO1",
"NO2",
"NO3",
"NO4",
"NO5",
]
required: true
- name: currency
choice: ["EUR", "DKK", "CZK", "PLN", "SEK", "NOK"]
- name: apikey
help:
en: "Optional for forecasts up to 120 hours. [Get an API key](https://energypriceforecast.eu/en/api-early-access/)."
de: "Optional für Prognosen bis zu 120 Stunden. [API-Key erhalten](https://energypriceforecast.eu/de/api-early-access/)."
- name: horizon
default: 120
type: int
unit: h
description:
en: Forecast horizon
de: Prognosehorizont
help:
en: Anonymous access is limited to 48 hours from October 1, 2026. An API key allows up to 120 hours.
de: Anonymer Zugriff ist ab 1. Oktober 2026 auf 48 Stunden begrenzt. Mit API-Key sind bis zu 120 Stunden möglich.
required: true
- preset: tariff-base
- preset: tariff-features
render: |
type: custom
{{ include "base" . }}
{{ include "features" (merge (dict "basefeatures" (list "cacheable")) .) }}
forecast:
source: http
uri: https://api.energypriceforecast.eu/api/v1/evcc/tariff?country={{.region}}&type=grid&currency={{.currency}}&hours={{.horizon}}
{{ if .apikey }}
auth:
type: bearer
token: {{ .apikey }}
{{- end }}