Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106138

Run an automation during a time period

$
0
0

Hi!.

I wrote a template condition that it’s working fine, but I would like to tweak it a little further so that it will run from last Saturday of October to the last Saturday of March instead of a fixed day. This is to detect the change from winter time to summer time.

{% set n = now() %}
{{ not (n.month == 10 and n.day >=24 or n.month == 3 and n.day <= 27) }}

Any inputs?

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106138

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>