Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: markdown
- content: |-
- {%- set plan = state_attr("sensor.skole_navn", "ugeplan") %}
- {%- set ugedag = as_timestamp(now()) | timestamp_custom('%w')|int %}
- {%- set list = plan.split('<h3>') %}
- {%- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement