I know this is super old, but just thought I’d throw out there that I set this exact thing up.
I created a “Simulated Thermostat” in My Devices (just manually create a New Device and pick Simulated Thermostat from the drop down). I then use WebCore to keep it synced. In the example below I’m averaging two temp sensors but you can also do max/min/med/etc… It looks like code, but you’re really just interacting with drop-downs as you navigate the script.
Example:
The wiki for it is here: https://wiki.webcore.co/ and there is a very helpful thread here: [DEPRECATED Thread: visit community.webcore.co for assistance] webCoRE - Piston Design Help (ask your fellow members for assistance)
My job (or pison in webcore terms) to update the thermostat (you can import it using that 4 letter code thing):

