Activate a Climate Preset

POST /thermostats/activate_climate_preset ⇒ { action_attempt }

Activates a specified climate preset for a specified thermostat.

Request

await seam.thermostats.activateClimatePreset({
  device_id: "123e4567-e89b-12d3-a456-426614174000",
  climate_preset_key: "occupied",
});

Response

{
  "action_attempt_id": "05de2295-d1dc-4748-aae3-9931658bde20",
  "status": "pending",
  "action_type": "ACTIVATE_CLIMATE_PRESET"
}

Authentication Methods

  • API key

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

Request Parameters

climate_preset_key

Type: string Required: Yes

Climate preset key of the desired climate preset.


device_id

Type: string Required: Yes

ID of the desired thermostat device.


Return Type

action_attempt

ACTIVATE_CLIMATE_PRESET

Activating climate preset.

action_attempt_id

Format: UUID

The ID of the action attempt.


action_type

Format: String


error

Format: Object

message Format: String

type Format: String


result

Format: Object

This object has no properties.


status

Format: Enum

Possible enum values:

  • success

  • pending

  • error


Last updated

Was this helpful?