Added ability for briefings to read out active weather alerts
This commit is contained in:
@ -42,8 +42,23 @@
|
||||
It is currently {{states.weather.iron_nerd_weather_station.state}} and {{states.sensor.pirateweather_temperature.state|round}} degrees in Defiance.
|
||||
</p>
|
||||
<p>
|
||||
{% if states.sensor.weatheralerts_active_alerts.state | int > 0 %}
|
||||
There are currently {{states.sensor.weatheralerts_active_alerts.state }} active weather alerts for our area.
|
||||
{% if states('sensor.weatheralerts_active_alerts') > '0' %}
|
||||
"Currently there are weather alerts active. The total number of alerts is {{ states('sensor.weatheralerts_active_alerts') }}. They are as follows. "
|
||||
{% if is_state('sensor.weatheralerts_alert_1','on') %}
|
||||
"{{ state_attr('sensor.weatheralerts_alert_1','alert_event') }}"
|
||||
{% endif %}
|
||||
{% if is_state('sensor.weatheralerts_alert_2','on') %}
|
||||
"{{ state_attr('sensor.weatheralerts_alert_2','alert_event') }}"
|
||||
{% endif %}
|
||||
{% if is_state('sensor.weatheralerts_alert_3','on') %}
|
||||
"{{ state_attr('sensor.weatheralerts_alert_3','alert_event') }}"
|
||||
{% endif %}
|
||||
{% if is_state('sensor.weatheralerts_alert_4','on') %}
|
||||
"{{ state_attr('sensor.weatheralerts_alert_4','alert_event') }}"
|
||||
{% endif %}
|
||||
{% if is_state('sensor.weatheralerts_alert_5','on') %}
|
||||
"{{ state_attr('sensor.weatheralerts_alert_5','alert_event') }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user