Create a Climate Preset

Creates a climate preset for a specified thermostat.

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

// void
Authentication Methods
  • API key

  • Client session token

  • Personal access token Must also include the seam-workspace header in the request.

To learn more, see Authentication.

Request Parameters

climate_preset_key String (Required)

Unique key to identify the climate preset.


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 Set Points.


cooling_set_point_fahrenheit Number

Temperature to which the thermostat should cool (in °F). See also Set Points.


fan_mode_setting String

Desired fan mode setting, such as on, auto, or circulate.


heating_set_point_celsius Number

Temperature to which the thermostat should heat (in °C). See also Set Points.


heating_set_point_fahrenheit Number

Temperature to which the thermostat should heat (in °F). See also Set Points.


hvac_mode_setting String

Desired HVAC mode setting, such as heat, cool, heat_cool, or off.


manual_override_allowed Boolean

Indicates whether a person at the thermostat or using the API can change the thermostat's settings.


name String

User-friendly name to identify the climate preset.


Response

void


Examples

Last updated

Was this helpful?

Revision created

ci: Generate docs