Skip to content

Instantly share code, notes, and snippets.

@ikidnapmyself
Created May 8, 2026 19:44
Show Gist options
  • Select an option

  • Save ikidnapmyself/fe02fd601c33ec8ffc7934b3fa720bc7 to your computer and use it in GitHub Desktop.

Select an option

Save ikidnapmyself/fe02fd601c33ec8ffc7934b3fa720bc7 to your computer and use it in GitHub Desktop.
Home Assistant Cards
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