Controlling thermostat through external temperature sensors

Hi everyone,

Currently I am facing a predicament where my garage unit “thermostat” or otherwise temperature controller is widely inaccurate and constantly goes through temperature swings. I’ve installed three ESP8266’s with temperature controllers and configured them in Home Assistant to retrieve an average temperature of the garage. I’ve also configured a BroadLink Smart IR to be able to control my dumb thermostat. My question is it possible to be able to control my thermostat through the broadlink based on the average temperature reading from the ESP sensors? The ideal situation would be if the SmartIR sends temperature commands based on a smart offset of the ESP sensors. This is a little beyond my league of technical knowledge so Id be very grateful if someone could point me in the right direction if this is even possible.

Thank you!