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…

Hi Maxnomo, does it help you if you have the PID controller in homeassitant? I created a pid controller/thermostat + slow_pwm integration here: GitHub - domectrl/ha-pid_controller: PID controller integration for HomeAssitant / GitHub - domectrl/ha-slow_pwm: Slow PWM integration to modulate binary output in homeassistant

Hi,Anton, thanks for the idea. It does not helpdesk my as i Wann tocbe totally independent from HA wirh my PID controller. My Solarien for now is to hardwire the PID hardware output to a hew GPIO input and then do Fürther actions wirh rhat new input.