From 94f25696612bde1c8e60901dab0a80aa4293b63a Mon Sep 17 00:00:00 2001
From: Tony Stork
Date: Thu, 9 Mar 2023 18:39:58 -0500
Subject: [PATCH] Move weather alerts to proper place in nightly briefing
---
templates/speech/nightly_briefing.yaml | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml
index fc05224..a6329c9 100644
--- a/templates/speech/nightly_briefing.yaml
+++ b/templates/speech/nightly_briefing.yaml
@@ -20,6 +20,10 @@
"The National Weather Service has issued a tornado watch for our area. Be prepared to take shelter if a warning is issued! ",
] | random }}
{% endif %}
+ {% if states('sensor.weatheralerts_active_alerts') > '0' %}
+ "Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weather_alerts_active_corrected') }}. They are as follows. "
+ {{ states('sensor.weather_alert_string') }}.
+ {% endif %}
{% if is_state('input_boolean.lightning_warning','on') %}
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
{{ [
@@ -90,13 +94,6 @@
{% endif %}
-
- {% if states('sensor.weatheralerts_active_alerts') > '0' %}
- "Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weather_alerts_active_corrected') }}. They are as follows. "
- {{ states('sensor.weather_alert_string') }}.
- {% endif %}
-
-
{% if is_state('input_boolean.sports_updates','on') %}
{% if is_state('sensor.michigan_wolverines','PRE') %}