Add rain callout to weather briefing #89
This commit is contained in:
@ -26,6 +26,9 @@
|
|||||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||||
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
|
There is lightning in the area. Nearest strike is {{ ltgdist }} miles away.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if is_state('binary_sensor.raining_bayesian','on') %}
|
||||||
|
It is currently raining. Make sure all doors and windows are closed!
|
||||||
|
{% endif %}
|
||||||
{% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %}
|
{% if state_attr('weather.iron_nerd_weather_station','visibility') | int < 3 %}
|
||||||
Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles.
|
Caution: Current outdoor visibility is {{ state_attr('weather.iron_nerd_weather_station','visibility') }} miles.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -56,6 +59,14 @@
|
|||||||
] | random }}
|
] | random }}
|
||||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if is_state('binary_sensor.raining_bayesian','on') %}
|
||||||
|
{{ [
|
||||||
|
"I have looked outside and determined that it is raining. ",
|
||||||
|
"If you look outside the window, you will notice, it wainin. ",
|
||||||
|
"It wainin sideways! ",
|
||||||
|
"There appears to be excessive moisture currently falling from the sky. Plan accordingly. ",
|
||||||
|
] | random }}
|
||||||
|
{% endif %}
|
||||||
{% if (state_attr('weather.iron_nerd_weather_station','visibility') | int ) < 3 %}
|
{% if (state_attr('weather.iron_nerd_weather_station','visibility') | int ) < 3 %}
|
||||||
{{ [
|
{{ [
|
||||||
"It is foggy outside, please exercise caution when driving. ",
|
"It is foggy outside, please exercise caution when driving. ",
|
||||||
|
Reference in New Issue
Block a user