Automation During Date Range

Here’s one way you could do this for the first automation:

condition:
  condition: template
  value_template: >
    {% set n = now() %}
    {{ n.month == 12 and n.day >=8
       or n.month == 1 and n.day <= 8 }}

And for the second:

condition:
  condition: template
  value_template: >
    {% set n = now() %}
    {{ not (n.month == 12 and n.day >=8
            or n.month == 1 and n.day <= 8) }}
7 Likes