From 8200697258e5470c0272aa6aa3e387ef625326e6 Mon Sep 17 00:00:00 2001 From: Micha Date: Sat, 13 Jun 2026 19:44:42 +0200 Subject: [PATCH] fix: parse glance weather gust as float via gjson toFloat erwartet eine Zahl, der HA-State kommt aber als String -> Template- Fehler. Boee jetzt direkt per (.Subrequest "gust").JSON.Float "state" lesen, gjson parst den numerischen String korrekt fuer den Schwellenvergleich. Co-Authored-By: Claude Fable 5 --- ops/glance/config/home.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/glance/config/home.yml b/ops/glance/config/home.yml index a44435e..8d24569 100644 --- a/ops/glance/config/home.yml +++ b/ops/glance/config/home.yml @@ -157,7 +157,7 @@ {{ $solar := (.Subrequest "solar").JSON.String "state" }} {{ $uv := (.Subrequest "uv").JSON.String "state" }} {{ $press := (.Subrequest "pressure").JSON.String "state" }} - {{ $gustF := toFloat $gust }} + {{ $gustF := (.Subrequest "gust").JSON.Float "state" }} {{ $divider := "border-left: 1px solid hsla(220, 40%, 70%, 0.14);" }}
{{ $temp }}°C