From ef5cd8ac4b4b7fd452aff135635862f9f4ece0a3 Mon Sep 17 00:00:00 2001 From: saimonsez Date: Sun, 5 Jul 2026 10:12:04 +0200 Subject: [PATCH] Add BKW feed-in tariff (#31424) Co-authored-by: Simon Bergamin Co-authored-by: andig --- templates/definition/tariff/bkw.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 templates/definition/tariff/bkw.yaml diff --git a/templates/definition/tariff/bkw.yaml b/templates/definition/tariff/bkw.yaml new file mode 100644 index 000000000..1dd8c7af5 --- /dev/null +++ b/templates/definition/tariff/bkw.yaml @@ -0,0 +1,28 @@ +template: bkw +products: + - brand: BKW + description: + de: Dynamische Abnahmevergütung + en: Dynamic feed-in remuneration +requirements: + evcc: ["skiptest"] +group: price +countries: ["CH"] +params: + - preset: tariff-base + - name: tax + default: 0.081 +render: | + type: custom + {{ include "tariff-base" . }} + forecast: + source: http + uri: https://api.bkw.ch/api/dyntariffs/v1/tariffs + jq: | + [.prices[] | + { + start: (.start_timestamp), + end: (.end_timestamp), + value: (.feed_in[]? | select(.unit == "CHF_kWh") | .value) + } | select(.value != null) + ] | tostring