diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index e4c2f9d..c1586ce 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -33,7 +33,17 @@
{{ states('sensor.current_conditions_detail') }} - + {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} {% if states('sensor.weatheralerts_active_alerts') > '0' %} "Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weatheralerts_active_alerts') }}. They are as follows. " {% if is_state('sensor.weatheralerts_alert_1','on') %} diff --git a/templates/speech/kallen_morning_briefing.yaml b/templates/speech/kallen_morning_briefing.yaml index c1cf3bf..130fd13 100644 --- a/templates/speech/kallen_morning_briefing.yaml +++ b/templates/speech/kallen_morning_briefing.yaml @@ -21,7 +21,19 @@ ] | random }} {% endif %}
- ++ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} +
Today the high temperature will be {{ state_attr('sensor.current_forecast','high_temp') }} degrees. {{ states('sensor.clothing_forecast_detail') }} diff --git a/templates/speech/kallen_nightly_briefing.yaml b/templates/speech/kallen_nightly_briefing.yaml index ced1b28..17e15dc 100644 --- a/templates/speech/kallen_nightly_briefing.yaml +++ b/templates/speech/kallen_nightly_briefing.yaml @@ -100,6 +100,17 @@ 'Do not forget to take your melatonin.'
++ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "Please ignore that strobing effect in your window. That is mother nature trying to distract you from sleeping. Do not give in! ", + "There is lightning outside, but you are safe because you are inside. Anti lightning turrets have already been deployed. ", + "Do not let the lightning outside keep you awake. The thunder will do a good enough job of that. ", + ] | random }} + {% endif %} +
+
Just for you, here is a random dad joke
It is currently {{states.weather.iron_nerd_weather_station.state}} and {{states.sensor.pirateweather_temperature.state|round}} degrees in Defiance.
++ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} +
{% if states('sensor.weatheralerts_active_alerts') > '0' %} "Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weatheralerts_active_alerts') }}. They are as follows. " diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 9d2b304..1555ed4 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -10,7 +10,19 @@ "My programmer decided that I should say something interesting here, and then he realized that he is not interesting. ", ] | random }}
- ++ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} +
{% if is_state('input_boolean.tony_streaming_today','on') %} {{ [ diff --git a/templates/speech/weather_briefing_full.yaml b/templates/speech/weather_briefing_full.yaml index b46f643..81b57ad 100644 --- a/templates/speech/weather_briefing_full.yaml +++ b/templates/speech/weather_briefing_full.yaml @@ -2,6 +2,20 @@ {# Weather Briefing #} {%- macro getReport() -%} +
+ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} +
+{{ states('sensor.current_conditions_detail') }}
diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index c63d66d..93abdba 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -60,7 +60,19 @@ Happy Birthday Emmalynn! {% endif %} - ++ {% if is_state('input_boolean.lightning_warning','on') %} + {% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %} + {{ [ + "There are reports of lightning in the area, please stay safe. ", + "My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ", + "A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ", + "Please exercise caution, as there is lightning in the area. ", + "That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ", + ] | random }} + "The nearest lightning strike is {{ ltgdist }} miles away. " + {% endif %} +
{% if states('sensor.weatheralerts_active_alerts') > '0' %} "Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weatheralerts_active_alerts') }}. They are as follows. "