I am not sure how it is in other areas of the world, but here in Germany the Christmas season officially starts with the “Adventszeit”. For Sundays prior to Christmas Eve we have the first Advent, where we light up the first candle on the “Adventskranz” and every Sunday one further candle is lit until on the forth Advent all four candles are burning.
Why am I telling all this? Currently I am using the following condition for my Christmas lighting automation:
- condition: template #Only between December 1 and January 6.
value_template: >
{% set n = now() %}
{{ n.month == 12 or ( n.month == 1 and ( 1 <= n.day <= 6 )) }}
Due to this the automation runs between the first of December and “Heilige Drei Könige”/Twelfth Day.
This year the first Advent was the 28th of November. Is there a way to create a template that is true for the time between the first Advent and Twelfth Day?