Change lightning warning sensor to a binary sensor
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
"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') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
@ -26,7 +26,7 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.lightning_warning','on') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
@ -101,7 +101,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('input_boolean.lightning_warning','on') %}
|
||||
{% if is_state('binary_sensor.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! ",
|
||||
|
@ -54,7 +54,7 @@
|
||||
"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') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
@ -24,7 +24,7 @@
|
||||
"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 is_state('input_boolean.lightning_warning','on') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
@ -12,7 +12,7 @@
|
||||
"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') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
@ -71,7 +71,7 @@
|
||||
"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') %}
|
||||
{% if is_state('binary_sensor.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. ",
|
||||
|
Reference in New Issue
Block a user