Sets the for a specified .
POST /thermostats/set_fan_mode ⇒ { action_attempt }
Authentication Methods
Personal access token
Must also include the seam-workspace
header in the request.
To learn more, see .
Request Parameters
device_id
String (Required)
ID of the thermostat device for which you want to set the fan mode.
fan_mode
String
fan_mode_setting
String
Desired for the thermostat.
Response
SET_FAN_MODE
{
action_attempt_id: [example value],
action_type: [example value],
error: [example value],
result: [example value],
status: [example value]
}
Examples
Set fan mode setting
Specify the desired fan mode setting.
Code
await seam.thermostats.setFanMode({
device_id: "123e4567-e89b-12d3-a456-426614174000",
fan_mode_setting: "auto",
});
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_FAN_MODE"
}
Code
seam.thermostats.set_fan_mode(
device_id="123e4567-e89b-12d3-a456-426614174000", fan_mode_setting="auto"
)
Output
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_FAN_MODE",
)
Code
seam.thermostats.set_fan_mode(
device_id: "123e4567-e89b-12d3-a456-426614174000",
fan_mode_setting: "auto",
)
Output
{
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_FAN_MODE",
}
Code
<?php
$seam->thermostats->set_fan_mode(
device_id: "123e4567-e89b-12d3-a456-426614174000",
fan_mode_setting: "auto"
);
Output
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_FAN_MODE",
];
Code
seam thermostats set-fan-mode --device_id "123e4567-e89b-12d3-a456-426614174000" --fan_mode_setting "auto"
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_FAN_MODE"
}
Code
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.SetFanMode(
context.Background(),
api.ThermostatsSetFanModeRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
FanModeSetting: api.String("auto"),
},
)
}
Output
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_FAN_MODE"}
Code
curl --include --request POST "https://connect.getseam.com/thermostats/set_fan_mode" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "123e4567-e89b-12d3-a456-426614174000",
"fan_mode_setting": "auto"
}
EOF
Output
{
"action_attempt": {
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_FAN_MODE"
}
}