Some tweaks to TTS briefings for #97
This commit is contained in:
@ -37,9 +37,11 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% set alerts = states('weather_alerts_active_corrected') %}
|
||||
{% if states('sensor.weatheralerts_active_alerts') > '0' %}
|
||||
"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') }}.
|
||||
"There {% if alerts == '1' %}is{% else %}are{% endif %} {{ states('sensor.weather_alerts_active_corrected') }} weather {% if alerts == '1' %}alert{% else %}alerts{% endif %} active. "
|
||||
"{% if alerts == '1' %}It is{% else %}They are{% endif %}, "
|
||||
{{ states('sensor.weather_alert_string') }}.
|
||||
{% endif %}
|
||||
{% if (state_attr('weather.iron_nerd_weather_station','visibility') | int ) < 3 %}
|
||||
{{ [
|
||||
|
Reference in New Issue
Block a user