Create a Thermostat Schedule

POST /thermostats/schedules/create ⇒ { thermostat_schedule }

Creates a thermostat schedule for a specified thermostat.

Request

await seam.thermostats.schedules.create({
  device_id: "123e4567-e89b-12d3-a456-426614174000",
  name: "Reservation 1",
  climate_preset_key: "occupied",
  starts_at: "2024-11-01T15:00:00Z",
  ends_at: "2024-11-05T12:00:00Z",
  max_override_period_minutes: 90,
});

Response

{
  "thermostat_schedule_id": "56d29fcf-0674-4db5-8e03-b2370a77460a",
  "name": "Reservation 1",
  "device_id": "2d488679-6f07-4810-aed2-e726872c1dd5",
  "climate_preset_key": "occupied",
  "starts_at": "2024-11-01T15:00:00.000Z",
  "ends_at": "2024-11-05T12:00:00.000Z",
  "max_override_period_minutes": 90
}

Request Parameters

climate_preset_key

Type: string Required: Yes

Key of the climate preset to use for the thermostat schedule.


device_id

Type: string Required: Yes

ID of the desired thermostat device.


ends_at

Type: string Required: Yes

Date and time at which the thermostat schedule ends, in ISO 8601 format.


is_override_allowed

Type: boolean Required: No


max_override_period_minutes

Type: number Required: No

Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also Specifying Manual Override Permissions.


name

Type: string Required: No

User-friendly name to identify the thermostat schedule.


starts_at

Type: string Required: Yes

Date and time at which the thermostat schedule starts, in ISO 8601 format.


Return Type

thermostat_schedule

Last updated

Logo

© Seam Labs, Inc. All rights reserved.