Several necessary changes for the new WeatherAlerts integration

This commit is contained in:
2026-04-03 05:20:18 -04:00
parent 9f6f35c848
commit 8ea1d4ca2b
7 changed files with 431 additions and 1764 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
<p>
{% set alerts = states('weather_alerts_active_corrected') %}
{% if states('sensor.weatheralerts_active_alerts') > '0' %}
{% if states('sensor.weatheralerts_defiance_ohz004_ohc039') > '0' %}
"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') }}.