func (t *Thermostat) SetTargetTempF(temp int) *APIError {
	if temp < 50 || temp > 90 {
		return generateAPIError("Temperature must be between 50 and 90 Farenheit")
	}
	request := make(map[string]int)
	request["target_temperature_f"] = temp
	body, _ := json.Marshal(request)
	return t.setThermostat(body)
}
/*
SetTargetTempF sets the thermostat to an intended temp in farenheit
https://developer.nest.com/documentation/api#target_temperature_f

t.SetTargetTempF(78)
package nest
import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net/http"
)
func (t *Thermostat) SetFanTimerActive(setting bool) *APIError {
	request := make(map[string]bool)
	request["fan_timer_active"] = setting
	body, _ := json.Marshal(request)
	return t.setThermostat(body)
}
func (t *Thermostat) SetHvacMode(mode int) *APIError {
	requestMode := make(map[string]string)
	switch mode {
	case Cool:
		requestMode["hvac_mode"] = "cool"
	case Heat:
		requestMode["hvac_mode"] = "heat"
	case HeatCool:
		requestMode["hvac_mode"] = "heat-cool"
	case Off:
		requestMode["hvac_mode"] = "off"
	default:
		return generateAPIError("Invalid HvacMode requested - must be cool, heat, heat-cool or off")
	}
	body, _ := json.Marshal(requestMode)
	return t.setThermostat(body)
}
func (t *Thermostat) SetTargetTempC(temp float32) *APIError {
	if temp < 9 || temp > 32 {
		return generateAPIError("Temperature must be between 9 and 32 Celcius")
	}
	tempRequest := make(map[string]float32)
	tempRequest["target_temperature_c"] = temp
	body, _ := json.Marshal(tempRequest)
	return t.setThermostat(body)
}