mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
25 lines
736 B
YAML
25 lines
736 B
YAML
title: NWS Alerts
|
|
path: nws-alerts
|
|
icon: mdi:cloud-alert
|
|
visible:
|
|
- user: 24a4bd075e7f41a497dd0390a1dd4a9f
|
|
|
|
cards:
|
|
- type: vertical-stack
|
|
cards:
|
|
- type: conditional
|
|
conditions:
|
|
- entity: sensor.nws_alerts
|
|
state_not: "0"
|
|
card:
|
|
type: markdown
|
|
content: |
|
|
{% set num_alerts = states('sensor.nws_alerts') | int %}
|
|
{% for alert_num in range(num_alerts) %}
|
|
---
|
|
# {{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Event }}
|
|
|
|
## {{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Headline }}
|
|
|
|
{{ state_attr('sensor.nws_alerts', 'Alerts')[alert_num].Description }}
|
|
{% endfor %} |