Scheduler

See, that isn’t a schedule, that is behavior based on events.

See the Time of Day Design Pattern. Sunrise is an event you can get from the Astro binding and you can set a Time cron trigger to get an event to “switch off at a certain time”. Where the hard part comes in is if you want to be able to set the off time in one of the UIs, which is difficult to support right now.

The ToD DP can be expanded to include day of week states as well (e.g. add a vDay Item which can be set to WEEKDAY, WEEKEND, HOLIDAY). Then your heating rule can check the state of vDay to determine what to do and when to do it.

All of these are events and very well supported in OH.