Added code to parse on/off/thermostat into the correct bits needed for the i2c link