update api for setting temp and fan mode