Add EWS Schönau eco power tariff (#24045)

This commit is contained in:
Bockhorn-IT 2025-10-04 12:27:40 +02:00 • committed by GitHub
parent 9dd4599fc2
commit c79c73a189
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,38 @@
template: ews
products:
- brand: EWS
description:
generic: Dynamic eco power price of EWS Elektrizitätswerke Schönau
requirements:
evcc: ["skiptest"]
description:
de: "Ein API-Key kann unter der E-Mail-Adresse api@ews-schoenau.de erfragt werden."
en: "You can request an API key at api@ews-schoenau.de"
countries: ["DE"]
group: price
params:
- name: apiKey
type: string
required: true
mask: true
example: pub_dpa_8476c477d8a039529478ebd690d35ddd80e3308ffc
render: |
type: custom
forecast:
source: http
uri: https://api.ews-schoenau.de/v1/dynamicprices/EWS-OEKO-DYN
headers:
- X-API-Key: {{ .apiKey }}
cache: 60m
timeout: 10s
jq: >
( (.today // []) + (.tomorrow // []) )
| map(
( .startsAt | strptime("%Y-%m-%dT%H:%M:%S.%f%z") | mktime ) as $s
| {
start: ( $s | strftime("%Y-%m-%dT%H:%M:%SZ") ),
end: ( ($s+900) | strftime("%Y-%m-%dT%H:%M:%SZ") ),
value: ( .total / 100.0 )
}
)
| tostring