Created
May 8, 2026 19:44
-
-
Save ikidnapmyself/fe02fd601c33ec8ffc7934b3fa720bc7 to your computer and use it in GitHub Desktop.
Home Assistant Cards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type: markdown | |
| content: |2 | |
| {% set condition = states('weather.buienradar') %} | |
| {% set temperature = states('sensor.buienradar_temperature') | float %} | |
| {% set feel_temperature = states('sensor.buienradar_feel_temperature') | float %} | |
| {% set wind_speed = states('sensor.buienradar_wind_speed') | float %} | |
| {% set minimum_rain = states('sensor.buienradar_minimum_rain_1d') | float %} | |
| {% set maximum_rain = states('sensor.buienradar_maximum_rain_1d') | float %} | |
| {% set minimum_temperature = states('sensor.minimum_temperature_1d') | float %} | |
| {% set temp_difference = (temperature - feel_temperature) | abs %} | |
| {% set hour = now().hour %} | |
| {# --- CHOOSE A BIG ICON FOR THE SKY CONDITION --- #} | |
| {% set cond_icon = 'π' %} | |
| {% if condition in ['clear', 'sunny'] %} | |
| {% set cond_icon = 'βοΈ' %} | |
| {% elif condition in ['partlycloudy', 'partly_cloudy'] %} | |
| {% set cond_icon = 'β ' %} | |
| {% elif condition in ['cloudy', 'overcast'] %} | |
| {% set cond_icon = 'βοΈ' %} | |
| {% elif condition in ['fog', 'foggy'] %} | |
| {% set cond_icon = 'π«οΈ' %} | |
| {% elif condition in ['rainy', 'rain', 'pouring'] %} | |
| {% set cond_icon = 'π§οΈ' %} | |
| {% elif condition in ['snowy', 'snow', 'snowy-rainy'] %} | |
| {% set cond_icon = 'βοΈ' %} | |
| {% elif condition in ['lightning', 'lightning-rainy', 'thunderstorm'] %} | |
| {% set cond_icon = 'β‘' %} | |
| {% endif %} | |
| {# --- TIME OF DAY GREETING --- #} | |
| {% if hour < 12 %} | |
| {% set greeting = 'Good morning' %} | |
| {% elif hour < 18 %} | |
| {% set greeting = 'Good afternoon' %} | |
| {% else %} | |
| {% set greeting = 'Good evening' %} | |
| {% endif %} | |
| # {{ cond_icon }} {{ greeting }}! | |
| **Outside:** `{{ temperature | round(1) }}Β°C` | |
| **Feels like:** `{{ feel_temperature | round(1) }}Β°C` | |
| _Current condition:_ **{{ condition | replace('_', ' ') | capitalize }}** | |
| {% if temp_difference > 2 %} | |
| > π¨ It feels noticeably different from the actual temperature. | |
| {% endif %} | |
| --- | |
| ### π Today at a glance | |
| - π§£ **Min temp:** `{{ minimum_temperature | round(1) }}Β°C` | |
| - π§ **Rain today:** `{{ minimum_rain | round(1) }} β {{ maximum_rain | round(1) }} mm` | |
| - π¬οΈ **Wind:** `{{ wind_speed | round(0) }} km/h` | |
| {% if wind_speed > 50 %} | |
| _(very windy β be careful outside!)_ | |
| {% elif wind_speed > 25 %} | |
| _(breezy β youβll feel it!)_ | |
| {% else %} | |
| _(quite calm)_ | |
| {% endif %} | |
| --- | |
| ### π What to wear | |
| {% if temperature < 0 %} | |
| π₯Ά **Very cold:** heavy coat, hat, scarf and gloves recommended. | |
| {% elif temperature < 8 %} | |
| π§₯ **Chilly:** warm coat or thick jacket is a good idea. | |
| {% elif temperature < 16 %} | |
| π **Mild:** light jacket or sweater should be enough. | |
| {% elif temperature < 24 %} | |
| π **Comfortable:** t-shirt with maybe a light layer. | |
| {% else %} | |
| π **Warm / hot:** light clothing, stay hydrated! | |
| {% endif %} | |
| {% if maximum_rain > 5 %} | |
| π **Umbrella: absolutely.** Expect proper rain today. | |
| {% elif maximum_rain > 0 %} | |
| β **Umbrella: optional.** A shower is possible. | |
| {% else %} | |
| π **No rain expected.** Enjoy the dry weather! | |
| {% endif %} | |
| --- | |
| ### β Activity suggestion | |
| {% if maximum_rain == 0 and wind_speed < 25 and temperature >= 15 %} | |
| π΄ **Great for being outside** β perfect for a walk, run or bike ride. | |
| {% elif maximum_rain > 8 %} | |
| πΊ **Best to stay cozy indoors** β movie, games or a good book day. | |
| {% elif wind_speed > 50 %} | |
| π¨ **Very windy** β avoid cycling in open areas and be cautious with loose items. | |
| {% elif temperature < 5 and maximum_rain > 0 %} | |
| βοΈ **Cold & wet** β short trips only, dress warmly and waterproof. | |
| {% else %} | |
| π€οΈ **Decent weather** β fine for errands or a short walk outside. | |
| {% endif %} | |
| title: π¦οΈ Today's Weather |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment