From 27305dc9807c5497160b12d677cc07ddf234688d Mon Sep 17 00:00:00 2001 From: golles Date: Wed, 27 Nov 2024 20:29:59 +0000 Subject: [PATCH] Make the weather description fit the entire screen --- lovelace/views/weer.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lovelace/views/weer.yaml b/lovelace/views/weer.yaml index 4ce6860..e2586b9 100644 --- a/lovelace/views/weer.yaml +++ b/lovelace/views/weer.yaml @@ -21,6 +21,15 @@ sections: heading: Weer heading_style: title icon: mdi:weather-sunny + - type: markdown + layout_options: + grid_columns: full + content: >- + {{ states("sensor.knmi_weersverwachting") }} + + {{ iif(is_state("binary_sensor.knmi_waarschuwing", "on"), state_attr("binary_sensor.knmi_waarschuwing", "description"), "") }} + + {{ iif(is_state("binary_sensor.meteoalarm", "on") and is_state("binary_sensor.knmi_waarschuwing", "off"), state_attr("binary_sensor.meteoalarm", "description"), "") }} - type: grid cards: @@ -38,12 +47,6 @@ sections: forecast_type: daily show_current: false - - type: markdown - content: >- - {{ states("sensor.knmi_weersverwachting") }} - {{ iif(is_state("binary_sensor.knmi_waarschuwing", "on"), state_attr("binary_sensor.knmi_waarschuwing", "description"), "") }} - {{ iif(is_state("binary_sensor.meteoalarm", "on") and is_state("binary_sensor.knmi_waarschuwing", "off"), state_attr("binary_sensor.meteoalarm", "description"), "") }} - - type: grid cards: - type: heading