var_dump($success); echo "Setting fan mode: on with timer (15 minutes)...\n"; $success = $nest->setFanModeOnWithTimer(FAN_TIMER_15M); // Available: FAN_TIMER_15M, FAN_TIMER_30M, FAN_TIMER_45M, FAN_TIMER_1H, FAN_TIMER_2H, FAN_TIMER_4H, FAN_TIMER_8H, FAN_TIMER_12H //$success = $nest->setFanMode(array(FAN_MODE_TIMER, 900)); // Same as above. See the FAN_TIMER_* defines for the possible values. var_dump($success); echo "Canceling timer that was just set...\n"; $success = $nest->cancelFanModeOnWithTimer(); var_dump($success); echo "Setting fan mode to 30 minutes per hour...\n"; $success = $nest->setFanModeMinutesPerHour(FAN_MODE_MINUTES_PER_HOUR_30); // Available: FAN_MODE_MINUTES_PER_HOUR_15, FAN_MODE_MINUTES_PER_HOUR_30, FAN_MODE_MINUTES_PER_HOUR_45, FAN_MODE_MINUTES_PER_HOUR_ALWAYS_ON //$success = $nest->setFanMode(array(FAN_MODE_MINUTES_PER_HOUR, 1800)); // Same as above. See the FAN_MODE_MINUTES_PER_HOUR_* defines for the possible values. var_dump($success); echo "Setting fan mode to run every day, but only between 5am and 10pm...\n"; $success = $nest->setFanEveryDaySchedule(5, 22); // Send 0,0 to run all day long var_dump($success); echo "Turning system off...\n"; $success = $nest->turnOff(); var_dump($success); echo "Setting away mode...\n"; $success = $nest->setAway(AWAY_MODE_ON); // Available: AWAY_MODE_ON, AWAY_MODE_OFF var_dump($success); echo "Enabling (Nest Sense) Auto-Away...\n"; $success = $nest->setAutoAwayEnabled(true); var_dump($success); echo "Setting dual-fuel breakpoint (use alternative heat when the outdoor temperature is below -5°)...\n"; // Note: when using temperatures, it will use the units you set on the device. I'm using celsius on my device, so I'm using celsius here. $success = $nest->setDualFuelBreakpoint(-5);