POST /thermostats/heat ⇒ { action_attempt }
Request
await seam.thermostats.heat({
device_id: "123e4567-e89b-12d3-a456-426614174000",
heating_set_point_celsius: 25,
});
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT"
}
Request
seam.thermostats.heat(
device_id="123e4567-e89b-12d3-a456-426614174000", heating_set_point_celsius=25
)
Response
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_HEAT",
)
Request
seam.thermostats.heat(device_id: "123e4567-e89b-12d3-a456-426614174000", heating_set_point_celsius: 25)
Response
{"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000", "status" => "pending", "action_type" => "SET_HEAT"}
Request
<?php
$seam->thermostats->heat(
device_id: "123e4567-e89b-12d3-a456-426614174000",
heating_set_point_celsius: 25
);
Response
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_HEAT",
];
Request
seam thermostats heat --device_id "123e4567-e89b-12d3-a456-426614174000" --heating_set_point_celsius 25
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT"
}
Request
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.Heat(
context.Background(),
api.ThermostatsHeatRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
HeatingSetPointCelsius: api.Float64(25),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_HEAT"}
ID of the desired thermostat device.
heating_set_point_celsius
heating_set_point_fahrenheit