How to set target temperature instead of switch heater on/off -> is generic thermostat the right approach

Hi,
I try to integrate my underfloor heating into HA. The heating comes with the intelligence to control the valve when setting the target temperature. To my understanding the generic thermostat would be the approach in case I want to replace the before mentioned logic with HA but I may be wrong.

Is there a way to configure the generic thermostat to set a target temperature through a rest integration rather than switching a heater on or off?

Or can anyone recommend a more suitable integration? The heating has a REST API to read the current temperature from connected sensors and to set a target temperature.
I have no way to control the status of the valve through the API.

Thomas