Add fog warning to all housewide briefings
This commit is contained in:
@ -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 %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
@ -64,12 +64,19 @@
|
||||
] | random }}
|
||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% 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 %}
|
||||
</p>
|
||||
<p>
|
||||
{{ [
|
||||
|
@ -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 %}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.tony_streaming_today','on') %}
|
||||
|
@ -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 %}
|
||||
</p>
|
||||
|
||||
{%- endmacro -%}
|
||||
|
@ -72,12 +72,20 @@
|
||||
] | random }}
|
||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% 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 %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user