Condition Sun -45 min How?

Hi! Im new to try to convert to using node red for most of my automations in stead of YAML.

I have started “easy” with my out door lights. But i have a coditions that is

Sunset -45 min

and i cant find any good node to use where i can use Sunset -45min as a condition.

Please help.


Time node, I think.

Before sunrise is probably not needed since it will trigger on a time

isnt that valid only when its at time -45 min to sunset?

I want i to be valid -45 to sunset → Sunrise and only in that time frame

Sorry I thought of trigger.
Time range node:

1 Like