Good night everyone.
I would like my automation to start at sunset or an hour before it depending on the month we are in.
I wrote this:
trigger:
- platform: sun
event: sunset
# D'inverno parte al tramonto, altrimenti un'ora prima
offset: "{{ iif((now().month in [1, 2, 3, 10, 11, 12]), '00:00:00', '-01:00:00') }}"
But there’s no way to make it work…