hello,
problem with this codes. first works, 2nd and 3rd not
- platform: template
sensors:
current_weekday:
value_template: "{{ ['Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag','Sonntag'][now().weekday()] }}"
- platform: template
sensors:
current_month:
value_template: "{{ ['Januar','Februar','Maerz','April','Mai','Juni','July','August','September','Oktober','November','Dezember'][now().month()-1] }}"
- platform: template
sensors:
current_day:
value_template: "{{ now().day() }}"