diff --git a/config/templates/speech/briefing.yaml b/config/templates/speech/briefing.yaml index 79b2095b..06f1d593 100755 --- a/config/templates/speech/briefing.yaml +++ b/config/templates/speech/briefing.yaml @@ -35,6 +35,10 @@ Outside, it is going to be {{ states('sensor.dark_sky_minutely_summary') }} {%- endmacro -%} + {%- macro lightning() -%} + There have been {{ states('sensor.blitzortung_lightning_counter') }} lightning strikes detected within {{(states('sensor.blitzortung_lightning_distance') | int / 1.69) | round (1, 'floor')}} Miles of our House. Please make sure everyone is inside the house. + {%- endmacro -%} + {%- macro light_check() -%} {% if states.group.all_lights.state != 'off' -%} There are @@ -284,6 +288,12 @@ {{ outside_weather() }} {% endif %} + {% if (states('sensor.blitzortung_lightning_counter')|int) > 0 %} + {{ lightning() }} + {% endif %} + + {{ states('sensor.blitzortung_lightning_counter') }} lightning strike(s) + {{ DoorOpened }} {{ DoorClosed }}