Copied from @nevesenin’s Target temperature adjustment depending on second temperature sensor which was inspired by Tado set offset using separate temperature sensor created by @Sanderma.
All I did was allow for the target temperature to be an input number.