Sets a specified to .
POST /thermostats/off ⇒ { 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 that you want to set to off mode.
Response
SET_HVAC_MODE
{
action_attempt_id: [example value],
action_type: [example value],
error: [example value],
result: [example value],
status: [example value]
}
Examples
Set to off mode
Specify the device_id
of the thermostat that you want to set to off mode.
Code
await seam.thermostats.off({
device_id: "123e4567-e89b-12d3-a456-426614174000",
});
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_THERMOSTAT_OFF"
}
Code
seam.thermostats.off(device_id="123e4567-e89b-12d3-a456-426614174000")
Output
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_THERMOSTAT_OFF",
)
Code
seam.thermostats.off(device_id: "123e4567-e89b-12d3-a456-426614174000")
Output
{
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_THERMOSTAT_OFF",
}
Code
<?php
$seam->thermostats->off(device_id: "123e4567-e89b-12d3-a456-426614174000");
Output
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_THERMOSTAT_OFF",
];
Code
seam thermostats off --device_id "123e4567-e89b-12d3-a456-426614174000"
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_THERMOSTAT_OFF"
}
Code
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.Off(
context.Background(),
api.ThermostatsOffRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
},
)
}
Output
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_THERMOSTAT_OFF"}
Code
curl --include --request POST "https://connect.getseam.com/thermostats/off" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "123e4567-e89b-12d3-a456-426614174000"
}
EOF
Output
{
"action_attempt": {
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_THERMOSTAT_OFF"
}
}