type: markdown
content: |-
{%- set plan = state_attr("sensor.skole_navn", "ugeplan") %}
{%- set ugedag = as_timestamp(now()) | timestamp_custom('%w')|int %}
{%- set list = plan.split('
') %}
{%- for i in range(6) %}
{%- if 'idræt' in (list[i]|lower) %}
{{ list[i][0:16] | replace('<','') | replace('/','') }} - Idræt
{%- endif %}
{%- if 'bibliotek' in (list[i]|lower) %}
{{ list[i][0:16] | replace('<','') | replace('/','') }} - Bibliotek
{%- endif %}
{%- endfor %}
title: Dage med bibliotek eller idræt