Sure, this is pretty basic home automation. I am assume you are referring to this device handler right?
I just tested it using Virtual Thermostat smartapp and it worked fine for your application.