Did you try using Thermostat Controller new built in app introduced in 2.2.4
I think that is what you need!