Hi all,
HAPPY 2 x 20!!!
Can someone tell me why I still see (today) Day of Year : 365 and week 52
root@raspberrypi:/usr/share/hassio/homeassistant# date
Wed 1 Jan 11:23:48 CET 2020
---
platform: template
sensors:
dayofyear:
value_template: "{{ now().strftime('%j') }}"
---
platform: template
sensors:
weekofyear:
value_template: "{{ now().strftime('%U') }}"
Cheers!!
EDIT:
Added
entity_id: sensor.date
to it so the sensor get triggered when date is change.