Add BKW feed-in tariff (#31424)
Co-authored-by: Simon Bergamin <simon.bergamin@sbb.ch> Co-authored-by: andig <cpuidle@gmail.com>
This commit is contained in:
parent
67f7f286ac
commit
ef5cd8ac4b
1 changed files with 28 additions and 0 deletions
28
templates/definition/tariff/bkw.yaml
Normal file
28
templates/definition/tariff/bkw.yaml
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue