I just made a test and it turns out there's a
bug!
Event name resolution will not work if the event is a composite event (using parentesys, and/or operators).
This is the case of @FromSunriseToSunset and @FromSunsetToSunrise.
I now fixed the bug, so it will be available with next update.
If you want to make it work now, you can use the expression instead of the event name.
For example @FromSunsetToSunrise is something like:
(* 19-23 * * *):(30-59 18 * * *)
* 0-5 * * *):(0-30 6 * * *)
You can copy from the Scheduler page the entry matching your timezone.
The only issue with this temporary work-around is that the time range is fixed and won't follow the sunrise/sunset change with time.