Confirming that Home Assistant could be used like a smart thermostat

Home Assistant is capable of what you require with the following provisos.

  1. Your hardware (plugs, temperature sensors) are supported
  2. 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)