POST /thermostats/heat_cool ⇒ { action_attempt }
Sets a specified thermostat to heat-cool ("auto") mode.
Request
await seam.thermostats.heatCool({
device_id: "123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
});
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT_COOL"
}
Request
seam.thermostats.heat_cool(
device_id="123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius=25,
heating_set_point_celsius=20,
)
Response
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_HEAT_COOL",
)
Request
seam.thermostats.heat_cool(device_id: "123e4567-e89b-12d3-a456-426614174000", cooling_set_point_celsius: 25, heating_set_point_celsius: 20)
Response
{"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000", "status" => "pending", "action_type" => "SET_HEAT_COOL"}
Request
<?php
$seam->thermostats->heat_cool(
device_id: "123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20
);
Response
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_HEAT_COOL",
];
Request
seam thermostats heat-cool --device_id "123e4567-e89b-12d3-a456-426614174000" --cooling_set_point_celsius 25 --heating_set_point_celsius 20
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT_COOL"
}
Request
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.HeatCool(
context.Background(),
api.ThermostatsHeatCoolRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
CoolingSetPointCelsius: api.Float64(25),
HeatingSetPointCelsius: api.Float64(20),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_HEAT_COOL"}
Request Parameters
cooling_set_point_celsius
Type: number
Required: No
Desired cooling set point in °C. You must set one of the cooling_set_point
parameters.
cooling_set_point_fahrenheit
Type: number
Required: No
Desired cooling set point in °F. You must set one of the cooling_set_point
parameters.
device_id
Type: string
Required: Yes
ID of the desired thermostat device.
heating_set_point_celsius
Type: number
Required: No
Desired heating set point in °C. You must set one of the heating_set_point
parameters.
heating_set_point_fahrenheit
Type: number
Required: No
Desired heating set point in °F. You must set one of the heating_set_point
parameters.
Return Type
action_attempt