From 8a42b0d74a294a6adb6a5479fb259804d2d6d99c Mon Sep 17 00:00:00 2001 From: Ingo <71161062+iseeberg79@users.noreply.github.com> Date: Thu, 9 Jul 2026 13:26:09 +0200 Subject: [PATCH] open-meteo: use icon_seamless model (#31570) --- templates/definition/tariff/open-meteo.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/definition/tariff/open-meteo.yaml b/templates/definition/tariff/open-meteo.yaml index bd5a237c5..cb3ba0907 100644 --- a/templates/definition/tariff/open-meteo.yaml +++ b/templates/definition/tariff/open-meteo.yaml @@ -57,12 +57,24 @@ params: - name: interval default: 1h advanced: true + - name: model + description: + en: Weather model + de: Wettermodell + help: + en: See [Open-Meteo API docs](https://open-meteo.com/en/docs/dwd-api) + de: Siehe [Open-Meteo API docs](https://open-meteo.com/en/docs/dwd-api) + type: choice + choice: ["best_match", "icon_seamless"] + default: best_match + required: true + advanced: true render: | type: custom tariff: solar forecast: source: http - uri: https://api.open-meteo.com/v1/forecast?latitude={{ .lat }}&longitude={{ .lon }}&azimuth={{ .az }}&tilt={{ .dec }}&minutely_15=temperature_2m,global_tilted_irradiance_instant&daily=sunrise,sunset&forecast_days=5&timezone=GMT&timeformat=unixtime + uri: https://api.open-meteo.com/v1/forecast?latitude={{ .lat }}&longitude={{ .lon }}&azimuth={{ .az }}&tilt={{ .dec }}&minutely_15=temperature_2m,global_tilted_irradiance_instant&daily=sunrise,sunset&forecast_days=5&timezone=GMT&timeformat=unixtime{{ if ne .model "best_match" }}&models={{ .model }}{{ end }} jq: | def alphatemp: {{ .alphatemp }}; # temperature coefficient def rossmodel: {{ .rossmodel }}; # cooling type