Sets a specified to .
POST /thermostats/heat_cool ⇒ { 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 heat-cool mode.
cooling_set_point_celsius
Number
Desired in °C. You must set one of the cooling_set_point
parameters.
cooling_set_point_fahrenheit
Number
Desired in °F. You must set one of the cooling_set_point
parameters.
heating_set_point_celsius
Number
heating_set_point_fahrenheit
Number
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 heat-cool (auto) mode
Specify the desired heating set point in °C or °F.
Code
await seam.thermostats.heatCool({
device_id: "123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
});
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT_COOL"
}
Code
seam.thermostats.heat_cool(
device_id="123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius=25,
heating_set_point_celsius=20,
)
Output
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="pending",
action_type="SET_HEAT_COOL",
)
Code
seam.thermostats.heat_cool(
device_id: "123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
)
Output
{
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_HEAT_COOL",
}
Code
<?php
$seam->thermostats->heat_cool(
device_id: "123e4567-e89b-12d3-a456-426614174000",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20
);
Output
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "pending",
"action_type" => "SET_HEAT_COOL",
];
Code
seam thermostats heat-cool --device_id "123e4567-e89b-12d3-a456-426614174000" --cooling_set_point_celsius 25 --heating_set_point_celsius 20
Output
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT_COOL"
}
Code
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),
},
)
}
Output
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "pending", ActionType: "SET_HEAT_COOL"}
Code
curl --include --request POST "https://connect.getseam.com/thermostats/heat_cool" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "123e4567-e89b-12d3-a456-426614174000",
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20
}
EOF
Output
{
"action_attempt": {
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"action_type": "SET_HEAT_COOL"
}
}