Every week has a number 1,2,3,4 and so on (jan 3-9 = week 1, jan 10-16 = week 2…), here in Sweden at least, and I would like to display this in the dashboard. Im thinking about using template sensor but I don’t know what to call in order to get week number. Any idea?
I believe you can get the week number as
{{ now().strftime("%W") }}
2 Likes
https://community.home-assistant.io/t/the-epic-time-conversion-and-manipulation-thread/85786/376?u=fatuuse
{{ now().strftime("%V") }}
For Sweden.