Variable offset in sunset

Hi.
I have an irrigation automation that triggers “input.before” “next_rising” (ok with this, it works)
and should trigger “input.after” “next_setting”.
The problem is that “next_setting” I suppose is next day’s, and trigger offsets don’t accept templating.
Is there a workaround?
Something more elegant than “trigger before rising and trigger after sunset, but if sun is down then delay is input.after, else delay is 0”, templating a delay in the automation before the action?

Thanks in advance.

1 Like

This will sort that problem:

I’ll look into It.
Thank you :slight_smile: