From 334b7963e819fd7256ccfd83dbdf4a07c13f2156 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Tue, 18 Mar 2025 01:37:52 -0400 Subject: [PATCH] Add ability to show when tornado production is possible --- custom_templates/weather.jinja | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_templates/weather.jinja b/custom_templates/weather.jinja index f95f438..2291048 100644 --- a/custom_templates/weather.jinja +++ b/custom_templates/weather.jinja @@ -19,6 +19,11 @@ {% if type in ['alerts','full'] %} {% if is_state('input_boolean.tornado_alarm','on') %} We are under a tornado warning. If you are not already in shelter, you should be. Get on it! + {% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %} + We are under a severe thunderstorm warning. + {% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible' == true) %} + The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter! + {% endif %} {% elif states('sensor.weatheralerts_active_alerts') > '0' and method != 'dashboard' %} Current weather alerts: {{ states('sensor.weather_alert_string') }}. {% endif %} @@ -49,6 +54,11 @@ {% endif %} {% if is_state('input_boolean.tornado_alarm','on') %} "We are under a tornado warning. If you are not already in shelter, you should be. Get on it! " + {% elif is_state('binary_sensor.severe_thunderstorm_warning','on') %} + "We are under a severe thunderstorm warning. " + {% if state_attr('binary_sensor.severe_thunderstorm_warning','tornado_possible' == true) %} + "The incoming storm has the potential to produce a tornado, so please pay attention and prepare to take shelter! " + {% endif %} {% elif is_state('input_boolean.tornado_watch','on') %} {{ [ "There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",