Activating a Climate Preset
Learn how to activate a preconfigured climate preset immediately.
Activate a Climate Preset
await seam.thermostats.activateClimatePreset({
device_id: "2d488679-6f07-4810-aed2-e726872c1dd5",
climate_preset_key: "occupied"
});{
status: 'success',
action_attempt_id: '05de2295-d1dc-4748-aae3-9931658bde20',
action_type: 'ACTIVATE_CLIMATE_PRESET',
result: {},
error: null
}curl -X 'POST' \
'https://connect.getseam.com/thermostats/activate_climate_preset' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"device_id": "2d488679-6f07-4810-aed2-e726872c1dd5",
"climate_preset_key": "occupied"
}'{
"action_attempt": {
"status": "pending",
"action_type": "ACTIVATE_CLIMATE_PRESET",
"action_attempt_id": "05de2295-d1dc-4748-aae3-9931658bde20",
"result": null,
"error": null
},
"ok": true
}Poll the Action Attempt
Last updated
Was this helpful?

