Rain Protection - Blind Controller Blueprint

This Home Assistant blueprint automatically manages exterior blinds when rain is forecasted, protecting windows from getting wet.
How it works
Every 30 minutes it queries the hourly forecast from your weather entity (optimized for Met.no, which provides precipitation in mm rather than probability percentages). When precipitation exceeds the configured threshold, it either asks for confirmation via mobile notification or acts automatically — depending on your settings. When rain stops, it can ask to raise the blinds or do it automatically.
Key features
Rain detection — Uses weather.get_forecasts with a configurable mm/h threshold and lookahead window (default 1h for maximum reactivity). Reference: drizzle 0.1–0.5, light rain 0.5–2.0 ← recommended, moderate 2.0–10, heavy >10 mm/h.
Confirmation mode — Each direction (down/up) can independently ask for confirmation via actionable mobile notification with Yes/No buttons, or act fully automatically.
Smart state detection — Uses a reference blind to detect whether blinds are already at the rain position, avoiding duplicate actions and enabling the “rain stopped” logic.
Inverted logic support — Configurable for integrations that use reversed position values (0=open vs 0=closed).
Flood control — Configurable cooldown between notifications to avoid repeated alerts during sustained rain, plus a “do not disturb” schedule.
Test mode — Bypasses all 3 restrictions (precipitation threshold, cooldown and do-not-disturb schedule) to allow full end-to-end testing at any time. Notifications are clearly marked with :warning: TEST MODE ACTIVE.

https://www.mainmind.com/blog/automatizar-persianas-prevision-de-lluvia/