Thermostat with PID controller

Never mind - got it. I should use the climate integration. It has the necessary service calls to set the temperature and the preset.