Help with template to execute script

Hello, I would like to make an automation that when pressing a button, depending on the state of the day, executes one or another script, but I get lost when making the script, can someone help me?

The idea would be that when pressing the button, depending on whether it is before sunrise, execute script 1 during the rest of the day until sunset script 2 and after sunset script 3.

someone guide me? Thank you!!

You can use the if-then construct or the choose construtpct

1 Like