Sunrise / Sunset in schedule

I’d like to create some schedules that use dynamic start / end times. IE a schedule that starts at sunrise but ends at noon, etc. The GUI currently just lets you pick hour ranges. It would be nice to be able to select a start and/or end time for the schedule to a dynamic value.

I think templating would let me do that but as far as I can tell templating isn’t supported for schedules. So for a feature request I’d say templating for schedules or sunrise/sunset options for schedule.

I was looking for the same (night lights/christmas lights schedules).