Hello, i am trying to make an automation where i need to do something before sunset. I did make an automation that should turn on a helper “tma” when its two hours before sunset and another one that turns the “tma” off on sunrise.
The problem for me is that the offset doesn’t matter. It is ignored. For me is the offset important. How to solve this? Or how you would do it?
Thanks.
My Automation:
alias: Turn on tma
description: ''
trigger:
- platform: sun
event: sunset
offset: '-2'
condition: []
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.tma
mode: single
3 posts - 2 participants