implemented SetMode for the thermostat and fan
in the website models