mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
fixes and updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user