ESPHome - modify PID output before feeding into SLOW_PWM output for heater of underfloor heating system

i have set up a PID temperature control inside the ESP and its working fine as standalone. No i want to make the output of the PID controller switchable depending on manual input coming from HA (to make setup of PID parameters easier from UI of HA).
So i have the need to do some LAMBDA actions in-between the PID output and the slow_PWM input.

But all trials fail, as PID always have the need for a real OUTPUT - and i only can create template outputs , which do not connect to PID as an output.

Hope my problem has become understandable…