Thermostat schedule for varying electric rate

Hi everyone. Does anyone have a blueprint for a thermostat schedule to accommodate peak and off-peak electric rates? I’m looking for something that will schedule the thermostat to heat or cool the house in the off-peak hours and minimize running in the peak hours. For example, during the off-peak morning hours in the summer, cool the house to 66F then the setpoint would go to 72F during the peak afternoon hours. I know I can setup a schedule to do this, but was looking to see if someone had something built to save me some effort.

If possible, I also have solar generation that if there was extra solar capacity in the peak hours it could be used and the thermostat setpoint would adjust to use our not use that solar capacity.

Thanks.