Some tweaks to TTS briefings for #97

This commit is contained in:
2023-08-27 13:42:34 -04:00
parent ba0a90a990
commit e37a356215
4 changed files with 23 additions and 16 deletions

View File

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