Does anyone know of a PID temperature controller that accepts a PWM signal (like

Does anyone know of a PID temperature controller that accepts a PWM signal (like one that is used to control spindle speed in a CNC) as an input to set the target temperature?
This would allow much easier 3D printing on my CNC machine.

in most cases you need just on-off control with preset temperature

I know but then I’d have to be there when the printing stops.
If it’s reliable enough, I could start a print and go away after 2-3 layers.

Does your cnc controller have a spare digital out that you could use to switch temp on/off? If not, a custom PID controller isn’t that hard to make with any microcontroller.

I have tons of IO ports but using the spindle signal would be the most elegant solution.
I can already manually set a temperature using my gutted ThingOMatic. But I’d like to get rid of that.