evcc-io/templates/definition/tariff/epex-predictor.yaml
2026-04-30 09:25:12 +02:00

39 lines
1.2 KiB
YAML

template: epex-predictor
products:
- brand: EPEX Predictor
description:
generic: Predicted EPEX spot prices
requirements:
description:
de: EPEX Spot Preisvorhersagen von epexpredictor.batzill.com
en: EPEX spot price predictions from epexpredictor.batzill.com
evcc: ["skiptest"]
group: price
countries: ["DE", "AT", "NL", "BE", "SE", "DK"]
params:
- name: uri
default: https://epexpredictor.batzill.com
description:
en: API endpoint (for self-hosted instances)
de: API-Endpunkt (für selbst gehostete Instanzen)
advanced: true
- name: region
example: DE
type: choice
choice: ["DE", "AT", "NL", "BE", "SE1", "SE2", "SE3", "SE4", "DK1", "DK2"]
required: true
- preset: tariff-base
- preset: tariff-features
render: |
type: custom
{{ include "tariff-base" . }}
{{ include "tariff-features" . }}
forecast:
source: http
uri: {{ .uri }}/prices?region={{ .region }}&unit=EUR_PER_KWH&timezone=UTC
jq: |
[.prices[] | {
"start": .startsAt,
"end": (.startsAt | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime + 900 | strftime("%Y-%m-%dT%H:%M:%SZ")),
"value": .total
}] | tostring