POST /thermostats/off ⇒ { action_attempt }
Request
await seam.thermostats.off({
device_id: "123e4567-e89b-12d3-a456-426614174000",
});
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_THERMOSTAT_OFF"
}
Request
seam.thermostats.off(device_id="123e4567-e89b-12d3-a456-426614174000")
Response
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_THERMOSTAT_OFF",
)
Request
seam.thermostats.off(device_id: "123e4567-e89b-12d3-a456-426614174000")
Response
{"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000", "status" => "pending", "action_type" => "SET_THERMOSTAT_OFF"}
Request
<?php
$seam->thermostats->off(device_id: "123e4567-e89b-12d3-a456-426614174000");
Response
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_THERMOSTAT_OFF",
];
Request
seam thermostats off --device_id "123e4567-e89b-12d3-a456-426614174000"
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_THERMOSTAT_OFF"
}
Request
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"),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_THERMOSTAT_OFF"}
ID of the desired thermostat device.