New Dashboard Title feature - Dynamic weather description

Hi all,

With the new title description in dashboards in 2025.3.0. Thought I’d just share a dynamic description that changes based on current weather condition. I just provided chatGPT the different states documented here and told it to come up with descriptions as didn’t want to manually type all conditions.

Sharing here so you can tweak to your own setup but here is the template and what it ends up looking like.

# 👋🏼 Hi {{ user }}
{% set temp = state_attr('weather.home', 'temperature') %}
{% set unit = state_attr('weather.home', 'temperature_unit') %}
{{ 
  {
    'clear-night': "🌙 The night sky is crystal clear—perfect for stargazing! A cool " ~ temp ~ unit ~ " makes it even better.",
    'cloudy': "☁️ The clouds have taken over the sky. No sun for now! With " ~ temp ~ unit ~ ", it might feel a bit gloomy.",
    'fog': "🌫️ It's super foggy out there! Feels like a scene from a mystery movie. The temperature is at " ~ temp ~ unit ~ ", so stay cozy!",
    'hail': "❄️⚡ Hailstones are tumbling from the sky—watch your head! And with " ~ temp ~ unit ~ ", it's definitely a chilly one.",
    'lightning': "⚡ Boom! Crack! Thunderstorms are putting on a light show. At " ~ temp ~ unit ~ ", it's quite the dramatic scene!",
    'lightning-rainy': "⛈️ Thunder, lightning, and rain—nature's way of making noise! The temperature is " ~ temp ~ unit ~ ", so stay warm and dry.",
    'partlycloudy': "⛅ A mix of sun and clouds—nature can't decide today! At " ~ temp ~ unit ~ ", it's a day for layers!",
    'pouring': "🌧️💦 It's absolutely pouring! Time to test that raincoat! The temperature is " ~ temp ~ unit ~ ", so dress accordingly.",
    'rainy': "☔ Raindrops keep falling—grab your umbrella! With " ~ temp ~ unit ~ ", it might be a cozy tea-and-blanket day.",
    'snowy': "❄️ The world is turning into a winter wonderland! At " ~ temp ~ unit ~ ", it's definitely time for hot chocolate!",
    'snowy-rainy': "🌨️🌧️ Snow and rain are teaming up for a messy weather day! The temperature is " ~ temp ~ unit ~ ", so dress for everything!",
    'sunny': "☀️ The sun is shining bright—don’t forget your sunglasses! At " ~ temp ~ unit ~ ", it's the perfect day to be outside!",
    'windy': "💨 Hold onto your hat! The wind is howling today! The temperature is " ~ temp ~ unit ~ ", making it feel even stronger!",
    'windy-variant': "🌬️💨 It's windy and cloudy—brace yourself for a blustery day! With " ~ temp ~ unit ~ ", it’s a good day for a warm coat.",
    'exceptional': "🌪️🌊 Extreme weather alert! Stay safe and be prepared! At " ~ temp ~ unit ~ ", conditions could be unpredictable!"
  }[states('weather.home') | default('sunny')]
}}

4 Likes