fixes and updates

This commit is contained in:
CeeWeasel
2024-11-07 10:50:30 -05:00
parent dc0b357374
commit ce5f698934
33 changed files with 156 additions and 443 deletions
+2 -6
View File
@@ -18,15 +18,11 @@ cards:
content: |
---
# NWS First Active Alert
{% if state_attr('sensor.nws_alerts', 'title') != None and state_attr('sensor.nws_alerts', 'title').split(' - ')[0] is defined %}
## {{ states.sensor.nws_alerts.attributes.title.split(' - ')[0] }}
## {{ state_attr('sensor.nws_alerts', 'Alerts')[0].Headline }}
{{ state_attr('sensor.nws_alerts', 'display_desc').split('\n\n-\n\n')[0] }}
{{ state_attr('sensor.nws_alerts', 'Alerts')[0].Description }}
{% else %}
none
{% endif %}
- type: conditional
conditions:
- entity: sensor.nws_alerts