Automations using Sunrise & Sunset triggers are very confusing

I’m trying to create a single automation that triggers exactly at Sunrise and Sunset or based on a separate Input_Select entity

So I need to use a nested IF or CHOOSE after the WHEN (triggers) to check the Time again : Sunrise or Sunset.

I dont see how to do this since the IF and CHOOSE are not using the same methods the WHEN is for Sunrise/Sunset?

the Trigger…

the Condition…

thus, the IF statement can only have AFTER or BEFORE options – not AT? …

The trigger will fire at the event, a few microseconds will pass, then the conditions will be processed… So it is after the event time, saying it is at the event time would be incorrect.

If you don’t like that logic, add IDs to your triggers and use Trigger conditions in your If/Then or Choose action.

thank you! I never used Trigger IDs before. Very nice feature!