41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
template: spottyenergy
|
|
products:
|
|
- brand: Spotty Energie
|
|
requirements:
|
|
evcc: ["skiptest"]
|
|
group: price
|
|
countries: ["AT"]
|
|
params:
|
|
- name: contractid
|
|
example: ffffffff-4444-6666-2222-aaaaaabbbbbb
|
|
required: true
|
|
description:
|
|
en: Contract ID
|
|
de: Vertragsnummer
|
|
help:
|
|
de: "Die Vertragsnummer bekommst du im Kundenportal [i.spottyenergie.at](https://i.spottyenergie.at/)"
|
|
en: "You can get your contract id from the customer portal [i.spottyenergie.at](https://i.spottyenergie.at/)"
|
|
- name: pricetype
|
|
default: CONSUMPTION
|
|
type: choice
|
|
choice: ["MARKET", "CONSUMPTION", "GENERATION"]
|
|
required: true
|
|
description:
|
|
en: Price type
|
|
de: Preistyp
|
|
help:
|
|
de: "Preistyp, entweder Börsenpreis, Verbrauchspreis oder Einspeisevergütung (falls vereinbart), siehe [spottyenergie.at](https://www.spottyenergie.at/blog/energie-smart-produzieren)"
|
|
en: "Price type, either spotmarket price, consumption price or generation compensation (if contractually agreed), more info at [spottyenergie.at](https://www.spottyenergie.at/blog/energie-smart-produzieren)"
|
|
- preset: tariff-base
|
|
render: |
|
|
type: custom
|
|
{{ include "base" . }}
|
|
forecast:
|
|
source: http
|
|
uri: https://i.spottyenergie.at/api/prices/{{ .pricetype }}/{{ unquote .contractid }}
|
|
jq: |
|
|
[ .[] | {
|
|
start: .from,
|
|
end: (.from | fromdate + 900 | todate),
|
|
value: (.price/100)
|
|
} ] | tostring
|