Generic thermostat show target temperature instead of HEAT

Greetings everyone, i have a generic thermostat entity for my homemade smart thermostat.
Now i have not implemented any on / off logic, i mainly control it through two scripts: On sets it to 22 degrees Celsius, Off sets it to 17 degrees.
I have it in my Tablet View as an entity, but it always displays “Heat” as the Value. Is it possible to Display the Target Temperature at this point instead? I haven’t been able to find information about this.
Thanks in advance