Custom Wifi Heater driver (imlementing Thermostat)

That is just the standard Virtual thermostat from HE. I couldn't tell you how in a custom driver I just assumed the command would work for your driver. I used this method to correct supported thermostat modes in the virtual and in another driver I was using for awhile. Perhaps looking at that code can help you.