From 92c89adf6b547908b2eb5fa77b9dc4ce59061ff0 Mon Sep 17 00:00:00 2001 From: Troels Johannesen Date: Thu, 16 Jul 2026 18:25:11 +0200 Subject: [PATCH] Add Voltcast tariff (#31848) --- templates/definition/tariff/voltcast.yaml | 89 +++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 templates/definition/tariff/voltcast.yaml diff --git a/templates/definition/tariff/voltcast.yaml b/templates/definition/tariff/voltcast.yaml new file mode 100644 index 000000000..cdb8de1d4 --- /dev/null +++ b/templates/definition/tariff/voltcast.yaml @@ -0,0 +1,89 @@ +template: voltcast +products: + - brand: Voltcast +requirements: + description: + en: "Requires a Voltcast API key — free DE-LU tier, paid any-zone tiers at [voltcast.com](https://voltcast.com/register). Forecast accuracy is published daily at [voltcast.com/accuracy](https://voltcast.com/accuracy)." + de: "Benötigt einen Voltcast API-Schlüssel — kostenloser DE-LU-Tarif, kostenpflichtige Tarife für alle Zonen auf [voltcast.com](https://voltcast.com/register). Die Prognosegenauigkeit wird täglich unter [voltcast.com/accuracy](https://voltcast.com/accuracy) veröffentlicht." + evcc: ["skiptest"] +group: price +countries: ["EU"] +params: + - name: apikey + required: true + help: + en: API key from https://voltcast.com/dashboard + de: API-Schlüssel von https://voltcast.com/dashboard + - name: zone + type: choice + default: DE-LU + example: DE-LU + description: + generic: Bidding zone + choice: + [ + "AL", + "AT", + "BE", + "BG", + "CH", + "CZ", + "DE-LU", + "DK1", + "DK2", + "EE", + "ES", + "FI", + "FR", + "GR", + "HR", + "HU", + "IE-SEM", + "IT-CALA", + "IT-CNOR", + "IT-CSUD", + "IT-NORD", + "IT-SARD", + "IT-SICI", + "IT-SUD", + "LT", + "LV", + "ME", + "MK", + "NL", + "NO1", + "NO2", + "NO3", + "NO4", + "NO5", + "PL", + "PT", + "RO", + "RS", + "SE1", + "SE2", + "SE3", + "SE4", + "SI", + "SK", + "UA", + "XK", + ] + - preset: tariff-base + - preset: tariff-features +render: | + type: custom + features: ["cacheable"] + {{ include "tariff-base" . }} + {{ include "tariff-features" . }} + forecast: + source: http + uri: https://voltcast.com/api/v1/forecasts/{{ .zone }}?horizon=48h + headers: + - Authorization: Bearer {{ .apikey }} + jq: | + [ .data[] | { + start: .target_start, + end: (.target_start | fromdate + 900 | todate), + value: (.p50 / 1000) + } ] | tostring