Set the HVAC Mode
POST /thermostats/set_hvac_mode ⇒ { action_attempt }
Sets the HVAC mode for a specified thermostat.
Request
await seam.thermostats.setHvacMode({
device_id: "123e4567-e89b-12d3-a456-426614174000",
hvac_mode_setting: "heat_cool",
heating_set_point_celsius: 20,
cooling_set_point_celsius: 25,
});
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "success",
"action_type": "SET_HVAC_MODE"
}
Request
seam.thermostats.set_hvac_mode(
device_id="123e4567-e89b-12d3-a456-426614174000",
hvac_mode_setting="heat_cool",
heating_set_point_celsius=20,
cooling_set_point_celsius=25,
)
Response
ActionAttempt(
action_attempt_id="123e4567-e89b-12d3-a456-426614174000",
status="success",
action_type="SET_HVAC_MODE",
)
Request
seam.thermostats.set_hvac_mode(
device_id: "123e4567-e89b-12d3-a456-426614174000",
hvac_mode_setting: "heat_cool",
heating_set_point_celsius: 20,
cooling_set_point_celsius: 25,
)
Response
{
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "success",
"action_type" => "SET_HVAC_MODE",
}
Request
<?php
$seam->thermostats->set_hvac_mode(
device_id: "123e4567-e89b-12d3-a456-426614174000",
hvac_mode_setting: "heat_cool",
heating_set_point_celsius: 20,
cooling_set_point_celsius: 25
);
Response
<?php
[
"action_attempt_id" => "123e4567-e89b-12d3-a456-426614174000",
"status" => "success",
"action_type" => "SET_HVAC_MODE",
];
Request
seam thermostats set-hvac-mode --device_id "123e4567-e89b-12d3-a456-426614174000" --hvac_mode_setting "heat_cool" --heating_set_point_celsius 20 --cooling_set_point_celsius 25
Response
{
"action_attempt_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "success",
"action_type": "SET_HVAC_MODE"
}
Request
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.SetHvacMode(
context.Background(),
api.ThermostatsSetHvacModeRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
HvacModeSetting: api.String("heat_cool"),
HeatingSetPointCelsius: api.Float64(20),
CoolingSetPointCelsius: api.Float64(25),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "123e4567-e89b-12d3-a456-426614174000", Status: "success", ActionType: "SET_HVAC_MODE"}
Authentication Methods
API key
Client session token
Personal access token Must also include the
seam-workspace
header in the request.
Request Parameters
Return Type
Last updated
Was this helpful?