Add lightning alerts to all briefings

This commit is contained in:
2023-02-27 16:46:18 -05:00
parent e190ca8921
commit 4e962db707
7 changed files with 88 additions and 4 deletions

View File

@ -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') %}
{{ [