nest.class.php
public function enableHumidifier($enabled, $serial_number = NULL) {
        $serial_number = $this->getDefaultSerial($serial_number);
        $data = json_encode(array('target_humidity_enabled' => ((boolean)$enabled)));
        return $this->doPOST("/v2/put/device." . $serial_number, $data);
    }
public function enableHumidifier($enabled, $serial_number = NULL) {
        $serial_number = $this->getDefaultSerial($serial_number);
        $data = json_encode(array('target_humidity_enabled' => ((boolean)$enabled)));
        return $this->doPOST("/v2/put/device." . $serial_number, $data);
    }
Enable or disable Nest Sense Humidifier.

@param bool   $enabled       True to enable auto-away.
@param string $serial_number The thermostat serial number. Defaults to the first device of the account.

@return stdClass|bool The object returned by the API call, or FALSE on error.