For floor heating (electrical, water) it is said the surface of the floor should not exceed certain maximal temperature (about 29 C) for human feet comfort. It is also mandatory (in some countries?) to install these floor temperature sensors under the floor surface while installing the floor heating. The hardware thermostats then work with them and ensure that the floor surface temperature is never exceeded.
Currently the generic thermostat switches the heating on and off only by one temperature sensor target_sensor and this is mostly the sensor of the room air temperature. So it turns on the heater until the room air temperature reaches the target_temp (considering given tolerances). If you have for example powerful electrical floor heating the temperature of the floor surface might quickly exceed the maximal value before the heating is turned off by reaching the target temperature in the air. That is undesirable.
I propose to add another sensor to the generic thermostat configuration that would receive the value of the floor temperature sensor. The Generic thermostat then would turn the heater off if the floor temperature exceeded the maximal value even if the temperature of the target_sensor had not yet reached the target_temp value. After the floor temperature dropped down below the maximal value again the heater would be turned on again (if room air still needed heating).
The maximal floor temperature should be configurable.
This whole added functionality should also by somehow reflected in the Generic thermostat card in Lovelace in order to see what exactly is happening - that the thermostat currently has switched off the heater not because the target temperature has been already reached but because it is waiting for cooling down the floor surface. The set floor maximal temperature should be also depicted on the temperature circle on the card.