diff --git a/templates/speech/daily_briefing.yaml b/templates/speech/daily_briefing.yaml index 3eb7b69..cd35ba4 100644 --- a/templates/speech/daily_briefing.yaml +++ b/templates/speech/daily_briefing.yaml @@ -48,6 +48,15 @@ "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 (states('sensor.kdfi_visibility') | int ) < 3 %} + {{ [ + "It is foggy outside, please exercise caution when driving. ", + "The visibility outside is quite low. If you will be driving soon, please be cautious. ", + "It is pea soup outside right now, and that is just as awful to drive in as it is to eat. Be careful! ", + "Look out the window. Do you notice that you cannot see anything? Bear that in mind if you intend to drive any time soon. ", + "Be advised, it is very difficult to see outside right now. Drive safely. " + ] | random }} + {% endif %}

diff --git a/templates/speech/morning_briefing.yaml b/templates/speech/morning_briefing.yaml index 5bcd320..b33bbec 100644 --- a/templates/speech/morning_briefing.yaml +++ b/templates/speech/morning_briefing.yaml @@ -64,12 +64,19 @@ ] | 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.weather_alerts_active_corrected') }}. They are as follows. " {{ states('sensor.weather_alert_string') }}. {% endif %} + {% if (states('sensor.kdfi_visibility') | int ) < 3 %} + {{ [ + "It is foggy outside, please exercise caution when driving. ", + "The visibility outside is quite low. If you will be driving soon, please be cautious. ", + "It is pea soup outside right now, and that is just as awful to drive in as it is to eat. Be careful! ", + "Look out the window. Do you notice that you cannot see anything? Bear that in mind if you intend to drive any time soon. ", + "Be advised, it is very difficult to see outside right now. Drive safely. " + ] | random }} + {% endif %}

{{ [ diff --git a/templates/speech/nightly_briefing.yaml b/templates/speech/nightly_briefing.yaml index 05e36de..78e97d1 100644 --- a/templates/speech/nightly_briefing.yaml +++ b/templates/speech/nightly_briefing.yaml @@ -22,6 +22,16 @@ ] | random }} "The nearest lightning strike is {{ ltgdist }} miles away. " {% endif %} + {% if (states('sensor.kdfi_visibility') | int ) < 3 %} + "I know it is night time, but just in case, " + {{ [ + "It is foggy outside, please exercise caution when driving. ", + "The visibility outside is quite low. If you will be driving soon, please be cautious. ", + "It is pea soup outside right now, and that is just as awful to drive in as it is to eat. Be careful! ", + "Look out the window. Do you notice that you cannot see anything? Bear that in mind if you intend to drive any time soon. ", + "Be advised, it is very difficult to see outside right now. Drive safely. " + ] | random }} + {% 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 08338c4..2ba97dc 100644 --- a/templates/speech/weather_briefing_full.yaml +++ b/templates/speech/weather_briefing_full.yaml @@ -31,6 +31,15 @@ "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 (states('sensor.kdfi_visibility') | int ) < 3 %} + {{ [ + "It is foggy outside, please exercise caution when driving. ", + "The visibility outside is quite low. If you will be driving soon, please be cautious. ", + "It is pea soup outside right now, and that is just as awful to drive in as it is to eat. Be careful! ", + "Look out the window. Do you notice that you cannot see anything? Bear that in mind if you intend to drive any time soon. ", + "Be advised, it is very difficult to see outside right now. Drive safely. " + ] | random }} + {% endif %}

{%- endmacro -%} diff --git a/templates/speech/welcome_home.yaml b/templates/speech/welcome_home.yaml index 600e27f..91d5381 100644 --- a/templates/speech/welcome_home.yaml +++ b/templates/speech/welcome_home.yaml @@ -72,12 +72,20 @@ ] | 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.weather_alerts_active_corrected') }}. They are as follows. " {{ states('sensor.weather_alert_string') }}. {% endif %} + {% if (states('sensor.kdfi_visibility') | int ) < 3 %} + "In case you are planning to go back out, " + {{ [ + "It is foggy outside, please exercise caution when driving. ", + "The visibility outside is quite low. If you will be driving soon, please be cautious. ", + "It is pea soup outside right now, and that is just as awful to drive in as it is to eat. Be careful! ", + "Look out the window. Do you notice that you cannot see anything? Bear that in mind if you intend to drive any time soon. ", + "Be advised, it is very difficult to see outside right now. Drive safely. " + ] | random }} + {% endif %}