🌦 Weather Condition Alert Message (rain/snow/etc within a time window)

:sun_behind_rain_cloud: Weather Condition Alert – Blueprint

Welcome and thanks for trying out my new blueprint. I tried to make it really easy to use while making it customizable.
Let me know how you like it and if there are any improvements/additions you would want to see.

Import and deploy this blueprint directly into your Home Assistant instance:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.


Description

This blueprint monitors a weather entity and sends an alert when selected weather conditions (such as rain or snow) are expected within a configurable time window.

It’s designed to be flexible so you can:

  • Pick which weather conditions you care about (e.g., rain, snow, etc.).
  • Adjust how far ahead to look for those conditions.
  • Use whatever notification method works best in your setup.

Use Case Examples

There are a few ways I’m using this right now.
I have a mushroom-template card on my wall mounted dashboard that is visible based on a weather boolean being on. It then parses the weather message and if its raining plays a rain animation and if its snowing a snow animation.
I’m also using it for smart notifications to our family’s mobile phones so we arent caught out in the rain (and really easy to understand when bad weather is going to come)
Also useful for parking your car in a covered area if its about to snow.
You could use this for other automations such as retracting a sun cover or umbrella if its going to hail.


Requirements

  • A weather entity that provides forecast data
    (e.g. OpenWeatherMap, Met.no, AccuWeather, etc.).
  • A notification method if you want push notifications (e.g. notify.mobile_app_your_phone) or another notification target, depending on how you configured the blueprint.

How to use

After importing:

  1. Go to Settings → Automations & Scenes → Blueprints.

  2. Find Weather Condition Alert and click Create automation.

  3. Configure the inputs, for example (exact names depend on the blueprint):

    • Weather entity – your main weather entity (e.g. weather.home).
    • Conditions to monitor – choose the condition types you want alerts for (e.g. rain, snow).
    • Time window / forecast horizon – how far ahead to look.
    • Notification target – where to send the alert (mobile app, persistent notification, etc.).
  4. Save the automation and test by adjusting conditions or shortening the time window.

2 Likes

I have tried to use your blueprint but it is not sending the notifaction to my mobile devices.

Same for me

Yeah me neither

Thank you for letting me know! I will troubleshoot and post an update

Any other general feedback? It’s my first blueprint and I really want to try and have the best experience for anyone using it :slight_smile:

Is there an option to make an announcement on the media player? i can’t find it.

thats not currently a feature but I could look into adding it, could you please describe the behaviour that you would like or were thinking about?

:tada: Update – v2.0 (March 2026)

Hey everyone! Thanks for the feedback and patience — I’ve pushed a significant update to the blueprint.


:bug: Bug Fix: Mobile Notifications Now Work

@Addy-80 @Stepbystep @colfin22 — this one’s for you. There was a bug where the debug logging section was blocking the mobile notification logic from ever executing. If you had debug logging turned off (the default), notifications would silently never fire. This is now fixed — notifications work regardless of the debug setting.

To get the fix: Re-import the blueprint from the same link, or if you’ve already imported it, go to Settings → Automations & Scenes → Blueprints, find Weather Condition Alert, click the three dots, and select Re-import blueprint. Then reload your automations under Developer Tools → YAML → Reload Automations.


:cloud_with_rain: New Feature: Precipitation Tracking

The alert text message now automatically includes the total expected precipitation (in mm) when precipitation is forecast. For example:

Rain Notice! Rain expected between 3:00 PM and 5:00 PM in the next 12 hours. Total expected: 8.2 mm.

There’s also a new optional input to store the precipitation amount in a separate input_number helper. This is useful if you want to:

  • Display a gauge or badge on your dashboard showing the expected mm
  • Use it as a condition in other automations (e.g. “if expected precipitation > 20 mm, close the garage door”)
  • Track it over time with a history graph

To use this, create an input_number helper (Settings → Devices & Services → Helpers → Create Helper → Number) with min=0, max=500, step=0.1, and unit of measurement “mm”. Then enable “Track precipitation amount” in the blueprint config and select your helper. If you don’t need the standalone number, just leave it off — the text message will still include the precipitation info.


:clipboard: Full Changelog

  • Fixed: Mobile notifications no longer blocked by debug logging setting
  • Added: Precipitation total always included in alert text message
  • Added: Optional input_number helper for standalone precipitation tracking
  • Improved: All debug logging wrapped in if/then blocks for safer execution
  • Updated: Blueprint descriptions with clearer setup instructions

Quick update — just pushed another round of improvements:

  • Alert messages are now cleaner and more concise (removed the redundant “Notice!” prefix)
  • Precipitation amount is now shown inline in the message, e.g. “Rain expected around 8:00 PM in the next 12 hours (~0.2 mm).”
  • You can now manually test the automation via Developer Tools → Actions → automation.trigger without waiting for the next scheduled interval

As always, go to Settings → Automations & Scenes → Blueprints, find Weather Condition Alert, click the three dots → Re-import blueprint, then reload automations.

Got a feature request? Found a bug? Although this is a key part of my dashboard and ecosystem there may be people who have different needs or want to use it in new interesting ways. I am actively working on development of this and a NEW blueprint coming soon!
Happy to help support the community so let me know :slight_smile:

@cravevox please make “Alert helpers” optional

I like this blueprint. However, I want to run the the blueprint at an exact specified time (evening 19:00) so my wife can decide whether or not to protect her flowers from expected rain in the night.

Weather forecasts here (S.E. Asia) are not very reliable so I want to test two different weather services and if one of them shows an alert then send a warning to her phone and finish (never send two warnings). I also only want to send the warning when the expected precipitation is above a certain threshold (mm rain).

Any chance of adding something to your blueprint, such as “run at specific time” and “send rain warning only above xx mm expected rain”?

And if you want to go fancy… An option to include multiple weather sources?

Thanks for this Blueprint - just what I was looking for. :+1:
I tried the manual option but it didn’t update the helpers or send a message to my phone (which worked for the 30 min. interval).

Another question, the message reports times as AM/PM - although I run everything in 24 hours.

Thank you Sir.

Sorry for the silly question as i am newB to HA stuff.

What have to put in Alert boolean helper, anything specific or just what ever is easy for me to understand what is incoming?

I tried to Run and test the automation, but still do not get Phone alert, any way to test the alert or just wait for the next rain :).

I cant seem to get this to work… What else needs to happen with the helpers?