Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: conditional
- conditions:
- - entity: binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_1
- state: 'on'
- card:
- type: entity-filter
- entities:
- - binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_1
- - binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_2
- - binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_3
- - binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_4
- - binary_sensor.warning_meckenbeuren_bodenseekreis_baden_wurttemberg_5
- state_filter:
- - 'on'
- card:
- type: markdown
- title: NINA Warnmeldungen
- content: |-
- {% for list in config.entities %}
- {% if "Vorwarnung" not in state_attr(list.entity, 'headline') -%}
- {% if state_attr(list.entity, 'severity') == "Extreme" -%} <ha-alert alert-type="error"
- {%- elif state_attr(list.entity, 'severity') == "Severe" -%} <ha-alert alert-type="warning"
- {%- else %} <ha-alert alert-type="info" {% endif %}
- title="{{ state_attr(list.entity, 'headline') }}">
- {{- state_attr(list.entity, 'description') -}}
- <br> <br> {% if state_attr(list.entity, 'recommended_actions') != "" %} **Empfohlene Aktionen:**
- {{ state_attr(list.entity, 'recommended_actions') }} <br> <br> {% endif -%}
- [Meldung ansehen (warnung.bund.de)](https://warnung.bund.de/meldungen/{{ state_attr(list.entity, 'id') }})
- {% if state_attr(list.entity, 'expires') != "" -%}
- Endet: {{ as_datetime(state_attr(list.entity, 'expires')).strftime('%d.%m.%Y - %H:%M') }}
- {%- endif %} </ha-alert>
- {%- endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement