Hey, im trying to create and automation that will check if its an even week and based on this make a Lovelace card to show when my garbage is pick up. However im stuck at trying to make it have condition to if its even or uneven weeks.
I searched much but most post seems to be from 2020 and the code won’t work anymore. I Tried
value_template: {{(now().strftime('%U') | int % 2) == 1}}
and many other but it just gives me error that the value template is wrong.
Does anyone know any way to do it or a way to point me in the right direction.