System time date 01-01-2020 but sensors show week and day from last year

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.

Happy New Year!! :tada: :fireworks:

To answer your question, the usual reason. :stuck_out_tongue_winking_eye:

See Working without Entities.

haha :smiley: thanks. first learning lesson in 2 x 20 :smiley:

1 Like

At least it wasn’t this:

1 Like