With part of the initial code I just wanted to shortcut it.
As it lists basically January and February it just goes down till December. But here is the whole one:
- type: markdown ## Date
content: |
{% if now().month in (1,) %}
## {{ now().day }} Januar
{% elif now().month in (2,) %}
## {{ now().day }} Februar
{% elif now().month in (3,) %}
## {{ now().day }} März
{% elif now().month in (4,) %}
## {{ now().day }} April
{% elif now().month in (5,) %}
## {{ now().day }} Mai
{% elif now().month in (6,) %}
## {{ now().day }} Juni
{% elif now().month in (7,) %}
## {{ now().day }} Juli
{% elif now().month in (8,) %}
## {{ now().day }} August
{% elif now().month in (9,) %}
## {{ now().day }} September
{% elif now().month in (10,) %}
## {{ now().day }} Oktober
{% elif now().month in (11,) %}
## {{ now().day }} November
{% elif now().month in (12,) %}
## {{ now().day }} Dezember
{% endif %}
style: |
ha-card {
margin: 12px 14px -5px 14px;
box-shadow: none;
--paper-card-background-color: rgba(0, 0, 0, 0.0)
}
h2 {
font-size: 18px;
font-weight: 400;
padding-left: 10px;
border-left: 3px solid rgba(81, 134, 236);
}
Now I could look up the various parts but it seems like you want someone to do the templating AND the reference work.
I didn’t ask for someone providing me a full code. As I’m started with looking deeper into templating an python I just have not a real Idea where to start and why I’m asking in this forum.
I am assuming that you want the format to be “Es ist” ‘Montag’ “, der.” ‘01’ “.” ‘Juni’ "
With the single quoted items substituted for the actual calendar terms ?
Exactly.
You are aware that the python timestamp objects only return in English and will therefore need to be translated with dictionary arrays ?
No I’m not.