Add lightning alerts to all briefings
This commit is contained in:
@ -10,7 +10,19 @@
|
||||
"My programmer decided that I should say something interesting here, and then he realized that he is not interesting. ",
|
||||
] | random }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('input_boolean.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. ",
|
||||
"My sensors detect the presence of lightning nearby, so you should prepare to take shelter if needed. ",
|
||||
"A little birdy told me there is lightning nearby. His feathers were all sticking up, I have no idea why. ",
|
||||
"Please exercise caution, as there is lightning in the area. ",
|
||||
"That flashing in the sky is not interstellar warfare, it is simply lightning. But you should still be careful outside. ",
|
||||
] | random }}
|
||||
"The nearest lightning strike is {{ ltgdist }} miles away. "
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.tony_streaming_today','on') %}
|
||||
{{ [
|
||||
|
Reference in New Issue
Block a user