Add functionality for tornado watches
This commit is contained in:
@ -33,6 +33,15 @@
|
||||
|
||||
<p>
|
||||
{{ states('sensor.current_conditions_detail') }}
|
||||
{% if is_state('input_boolean.tornado_alarm','on') %}
|
||||
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
|
||||
{% elif is_state('input_boolean.tornado_watch','on') %}
|
||||
{{ [
|
||||
"There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",
|
||||
"We are currently under a tornado watch. This means the possibility exists for a tornado to form. Be prepared, and be safe! ",
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
{{ [
|
||||
|
@ -53,6 +53,15 @@
|
||||
It is currently {{states.weather.iron_nerd_weather_station.state}} and {{states.sensor.pirateweather_temperature.state|round}} degrees in Defiance.
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.tornado_alarm','on') %}
|
||||
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
|
||||
{% elif is_state('input_boolean.tornado_watch','on') %}
|
||||
{{ [
|
||||
"There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",
|
||||
"We are currently under a tornado watch. This means the possibility exists for a tornado to form. Be prepared, and be safe! ",
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
{{ [
|
||||
|
@ -11,6 +11,15 @@
|
||||
] | random }}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.tornado_alarm','on') %}
|
||||
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
|
||||
{% elif is_state('input_boolean.tornado_watch','on') %}
|
||||
{{ [
|
||||
"There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",
|
||||
"We are currently under a tornado watch. This means the possibility exists for a tornado to form. Be prepared, and be safe! ",
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
{{ [
|
||||
|
@ -3,6 +3,15 @@
|
||||
{%- macro getReport() -%}
|
||||
|
||||
<p>
|
||||
{% if is_state('input_boolean.tornado_alarm','on') %}
|
||||
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
|
||||
{% elif is_state('input_boolean.tornado_watch','on') %}
|
||||
{{ [
|
||||
"There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",
|
||||
"We are currently under a tornado watch. This means the possibility exists for a tornado to form. Be prepared, and be safe! ",
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
{{ [
|
||||
|
@ -61,6 +61,15 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.tornado_alarm','on') %}
|
||||
"We are under a tornado warning. If you are not already in shelter, you should be. Get on it! "
|
||||
{% elif is_state('input_boolean.tornado_watch','on') %}
|
||||
{{ [
|
||||
"There is currently a tornado watch active. Please keep an eye on the sky and your local weather reports. ",
|
||||
"We are currently under a tornado watch. This means the possibility exists for a tornado to form. Be prepared, and be safe! ",
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% set ltgdist = (states('sensor.blitzortung_lightning_distance') | int) / 1.609 | round %}
|
||||
{{ [
|
||||
|
Reference in New Issue
Block a user