Skip to content

Commit

Permalink
Make the weather description fit the entire screen
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Nov 27, 2024
1 parent 503e3d1 commit 27305dc
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lovelace/views/weer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 27305dc

Please sign in to comment.