Save and load states for multiple input entities?

I defined multiple sets of input entities as a program control for my heating. Each program slot consists of a day range (f.e. Mon-Fri, Sat-Sun, Mon-Sun), a start time (HH:MM) and a mode (Comfort, Sleeping, Away, Eco).

Now I want to implement a save and restore feature, which allows me to store the current settings for all program slots that can be restored later. In other words: I want to define heating “scenes”.

Do you know if something like this already exists? Or some “best practices” which I should follow when implementing something like this myself?

Nobody? Is this really a wheel yet to be invented? :slightly_smiling_face: