Set Temp based on outside temp

Hi All
Im trying to set a temp in the porch which has a generic thermostat
This is usually set to 16 during times at home and 14 when away, night time etc.
However id like it always to just be 10 degrees warmer than outside upto 16 degrees.

Im using the metoffice to give me the external reading.
Because its poorly insulated when its like 1 degree it cant warm to 16 so just runs all the time.

I dont mind if this is run every x minutes but would prefer it ran on external temp changes

Thankyou for any pointers

Check better thermostat integration from hacs.

Fundamentally you’ll need to create an automation that calculates and then sets the generic thermostats setpoint. I would do this as two steps:

  1. Create a sensor template that calculates what the setpoint should be. This would be the outside the min of temperature plus 10 or 16.
  2. Create an automation with a state trigger on the sensor template, that calls the climate service to update the setpoint on the generic thermostat.