evcc-io/templates/definition/tariff/energyforecast.yaml
andig 466a23d474
Some checks failed
Release / call-build-workflow (push) Has been cancelled
Release / Publish Docker :release (push) Has been cancelled
Release / Github & APT (push) Has been cancelled
Release / Demo (push) Has been cancelled
Release / Hassio Addon (push) Has been cancelled
chore: fix template
2026-01-24 15:21:57 +01:00

28 lines
895 B
YAML

template: energyforecast
products:
- brand: Energy Forecast
requirements:
evcc: ["skiptest"]
group: price
countries: ["DE"]
params:
- name: token
required: true
- name: domain
type: choice
choice: [DE-LU, AT, FR, NL, BE, PL, DK1, DK2]
- preset: tariff-base
- preset: tariff-features
render: |
type: custom
{{ include "tariff-base" . }}
{{ include "tariff-features" . }}
forecast:
source: http
uri: https://www.energyforecast.de/api/v1/predictions/next_96_hours?resolution=QUARTER_HOURLY&fixed_cost_cent=0&vat=0&token={{ .token }}{{ if .domain }}&market_zone={{ .domain }}{{ end }}
jq: |
map({
"start": .start | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime | strftime("%Y-%m-%dT%H:%M:%SZ"),
"end": .end | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime | strftime("%Y-%m-%dT%H:%M:%SZ"),
"value": .price
}) | tostring