Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tariffs: Improve Spotty Energie template #16973

Merged
merged 7 commits into from
Oct 30, 2024
Merged
11 changes: 9 additions & 2 deletions templates/definition/tariff/spottyenergy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,24 @@ requirements:
en: "Only available for Austria."
group: price
params:
- name: contractId
- 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/"
- name: pricetype
example: CONSUMPTION
tomjschwanke marked this conversation as resolved.
Show resolved Hide resolved
validvalues: ["MARKET", "CONSUMPTION", "GENERATION"]
required: true
help:
de: "Preistyp, entweder Börsenpreis, Verbrauchspreis oder Einspeisevergütunt (falls vereinbart), siehe https://www.spottyenergie.at/blog/energie-smart-produzieren"
tomjschwanke marked this conversation as resolved.
Show resolved Hide resolved
en: "Price type, either spotmarket price, consumption price or generation compensation (if contractually agreed), more info at https://www.spottyenergie.at/blog/energie-smart-produzieren"
- preset: tariff-base
render: |
type: custom
{{ include "tariff-base" . }}
forecast:
source: http
uri: https://i.spottyenergie.at/api/prices/MARKET/{{ .contractId }}
uri: https://i.spottyenergie.at/api/prices/{{ .pricetype }}/{{ .contractid }}
jq: '[.[] | {start: .from, end: (.from | fromdate + 3600 | todate), price: (.price/100)}] | tostring'