Update the Thermostat Weekly Program

Updates the thermostat weekly program for a thermostat device. To configure a weekly program, specify the ID of the daily program that you want to use for each day of the week. When you update a weekly program, the set of programs that you specify overwrites any previous weekly program for the thermostat.

Updates the thermostat weekly program for a thermostat device.

Code:

await seam.thermostats.updateWeeklyProgram({
  device_id: "076546e8-966c-47dd-831b-8d98413bf070",
  monday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  tuesday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  wednesday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  thursday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  friday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  saturday_program_id: "3bf5a788-caf8-40c5-a7d5-78b72e9b3a28",
  sunday_program_id: "3bf5a788-caf8-40c5-a7d5-78b72e9b3a28",
});

Output:

{
  "action_attempt_id": "a1b2c3d4-e5f6-4a3b-2c1d-0e9f8a7b6c5d",
  "action_type": "PUSH_THERMOSTAT_PROGRAMS",
  "error": null,
  "result": {},
  "status": "success"
}
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

device_id String (Required)

ID of the thermostat device for which you want to update the weekly program.


friday_program_id String

ID of the thermostat daily program to run on Fridays.


monday_program_id String

ID of the thermostat daily program to run on Mondays.


saturday_program_id String

ID of the thermostat daily program to run on Saturdays.


sunday_program_id String

ID of the thermostat daily program to run on Sundays.


thursday_program_id String

ID of the thermostat daily program to run on Thursdays.


tuesday_program_id String

ID of the thermostat daily program to run on Tuesdays.


wednesday_program_id String

ID of the thermostat daily program to run on Wednesdays.


Response

action_attempt

{
  "action_attempt_id": "a1b2c3d4-e5f6-4a3b-2c1d-0e9f8a7b6c5d",
  "action_type": "PUSH_THERMOSTAT_PROGRAMS",
  "error": null,
  "result": {},
  "status": "success"
}

Last updated

Was this helpful?