POST /thermostats/set_fan_mode ⇒ { action_attempt }
Request
await seam.thermostats.setFanMode({
device_id: "123e4567-e89b-12d3-a456-426614174000",
fan_mode_setting: "auto",
});
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_FAN_MODE"
}
Request
seam.thermostats.set_fan_mode(
device_id="123e4567-e89b-12d3-a456-426614174000", fan_mode_setting="auto"
)
Response
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_FAN_MODE",
)
Request
seam.thermostats.set_fan_mode(device_id: "123e4567-e89b-12d3-a456-426614174000", fan_mode_setting: "auto")
Response
{"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000", "status" => "pending", "action_type" => "SET_FAN_MODE"}
Request
<?php
$seam->thermostats->set_fan_mode(
device_id: "123e4567-e89b-12d3-a456-426614174000",
fan_mode_setting: "auto"
);
Response
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_FAN_MODE",
];
Request
seam thermostats set-fan-mode --device_id "123e4567-e89b-12d3-a456-426614174000" --fan_mode_setting "auto"
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_FAN_MODE"
}
Request
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"),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_FAN_MODE"}