From de704d210778f09f549879cbb4e0d53409ded70b Mon Sep 17 00:00:00 2001 From: Tom Jason Schwanke Date: Tue, 29 Oct 2024 11:46:12 +0100 Subject: [PATCH] Add Spotty Energy tariff (#16946) --- templates/definition/tariff/spottyenergy.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 templates/definition/tariff/spottyenergy.yaml diff --git a/templates/definition/tariff/spottyenergy.yaml b/templates/definition/tariff/spottyenergy.yaml new file mode 100644 index 000000000..4418d3e6d --- /dev/null +++ b/templates/definition/tariff/spottyenergy.yaml @@ -0,0 +1,23 @@ +template: spottyenergy +products: + - brand: Spotty Energie +requirements: + description: + de: "Nur für Österreich verfügbar." + en: "Only available for Austria." +group: price +params: + - name: contractId + example: ffffffff-4444-6666-2222-aaaaaabbbbbb + required: true + help: + de: "Die Vertragsnummer bekommst du im Kundenportal https://i.spottyenergie.at/" + en: "You can get your contract id from the customer portal https://i.spottyenergie.at/" + - preset: tariff-base +render: | + type: custom + {{ include "tariff-base" . }} + forecast: + source: http + uri: https://i.spottyenergie.at/api/prices/MARKET/{{ .contractId }} + jq: '[.[] | {start: .from, end: (.from | fromdate + 3600 | todate), price: (.price/100)}] | tostring'