Add delay and direct start to generic thermostat

In larger buildings, as well as many other hydronic heating systems, it’s common practice to start the heating according to the outdoor temperature. At least in Europe.
I would like to add two things, the first is a time delay to turn on heating, or cooling for that matter. The second is a second set point where the thermostat turns on regardless of delay. A nice feature to have would be an integration of temperature deviation and time, like the I portion of a PID regulator, where the thermostat turns on when this reaches a certain value. This is also common in hydronic heating systems, primarily with on/off heat pumps.