Creates a for a specified .
POST /thermostats/create_climate_preset ⇒ void
Authentication Methods
Personal access token
Must also include the seam-workspace
header in the request.
To learn more, see .
Request Parameters
climate_preset_key
String (Required)
Unique key to identify the .
device_id
String (Required)
ID of the thermostat device for which you want create a climate preset.
cooling_set_point_celsius
Number
Temperature to which the thermostat should cool (in °C). See also .
cooling_set_point_fahrenheit
Number
fan_mode_setting
String
heating_set_point_celsius
Number
heating_set_point_fahrenheit
Number
hvac_mode_setting
String
manual_override_allowed
Boolean
Indicates whether a person at the thermostat or using the API can change the thermostat's settings.
name
String
Response
void
Examples
Create a climate preset
Specify the device_id
of the desired thermostat, along with the desired settings for the climate preset, including manual_override_allowed
.
Code
await seam.thermostats.createClimatePreset({
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
name: "Occupied",
fan_mode_setting: "auto",
hvac_mode_setting: "heat_cool",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
manual_override_allowed: true,
});
Output
Code
seam.thermostats.create_climate_preset(
device_id="123e4567-e89b-12d3-a456-426614174000",
climate_preset_key="occupied",
name="Occupied",
fan_mode_setting="auto",
hvac_mode_setting="heat_cool",
cooling_set_point_celsius=25,
heating_set_point_celsius=20,
manual_override_allowed=true,
)
Output
Code
seam.thermostats.create_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
name: "Occupied",
fan_mode_setting: "auto",
hvac_mode_setting: "heat_cool",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
manual_override_allowed: true,
)
Output
Code
<?php
$seam->thermostats->create_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
name: "Occupied",
fan_mode_setting: "auto",
hvac_mode_setting: "heat_cool",
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
manual_override_allowed: true
);
Output
Code
seam thermostats create-climate-preset --device_id "123e4567-e89b-12d3-a456-426614174000" --climate_preset_key "occupied" --name "Occupied" --fan_mode_setting "auto" --hvac_mode_setting "heat_cool" --cooling_set_point_celsius 25 --heating_set_point_celsius 20 --manual_override_allowed true
Output
Code
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.CreateClimatePreset(
context.Background(),
api.ThermostatsCreateClimatePresetRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
ClimatePresetKey: api.String("occupied"),
Name: api.String("Occupied"),
FanModeSetting: api.String("auto"),
HvacModeSetting: api.String("heat_cool"),
CoolingSetPointCelsius: api.Float64(25),
HeatingSetPointCelsius: api.Float64(20),
ManualOverrideAllowed: api.Bool(true),
},
)
}
Output
Code
curl --include --request POST "https://connect.getseam.com/thermostats/create_climate_preset" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "123e4567-e89b-12d3-a456-426614174000",
"climate_preset_key": "occupied",
"name": "Occupied",
"fan_mode_setting": "auto",
"hvac_mode_setting": "heat_cool",
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20,
"manual_override_allowed": true
}
EOF
Output