POST /thermostats/activate_climate_preset ⇒ { action_attempt }
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"
}
Request
seam.thermostats.activate_climate_preset(
device_id="123e4567-e89b-12d3-a456-426614174000", climate_preset_key="occupied"
)
Response
ActionAttempt(
action_attempt_id="05de2295-d1dc-4748-aae3-9931658bde20",
status="pending",
action_type="ACTIVATE_CLIMATE_PRESET",
)
Request
seam.thermostats.activate_climate_preset(
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",
}
Request
<?php
$seam->thermostats->activate_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied"
);
Response
<?php
[
"action_attempt_id" => "05de2295-d1dc-4748-aae3-9931658bde20",
"status" => "pending",
"action_type" => "ACTIVATE_CLIMATE_PRESET",
];
Request
seam thermostats activate-climate-preset --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"
}
Request
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.ActivateClimatePreset(
context.Background(),
api.ThermostatsActivateClimatePresetRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
ClimatePresetKey: api.String("occupied"),
},
)
}
Response
api.ActionAttempt{ActionAttemptId: "05de2295-d1dc-4748-aae3-9931658bde20", Status: "pending", ActionType: "ACTIVATE_CLIMATE_PRESET"}
Climate preset key of the desired climate preset.
ID of the desired thermostat device.