Home Assistant is capable of what you require with the following provisos.
- Your hardware (plugs, temperature sensors) are supported
- You are willing to
a. write some automations to schedule the heating
b. create some generic thermostats to control the temperatures
c. or install a scheduling component (Custom integration)