Like this?
You configure the virtual device to use a temp sensor and switch to control a heating and-or cooling device.