Update a Climate Preset
PATCH /thermostats/update_climate_preset ⇒ voidUpdates a specified climate preset for a specified thermostat.
Request
await seam.thermostats.updateClimatePreset({
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
cooling_set_point_celsius: 24,
manual_override_allowed: true,
});Response
// voidRequest
seam.thermostats.update_climate_preset(
device_id="123e4567-e89b-12d3-a456-426614174000",
climate_preset_key="occupied",
cooling_set_point_celsius=24,
manual_override_allowed=true,
)Response
NoneRequest
seam.thermostats.update_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
cooling_set_point_celsius: 24,
manual_override_allowed: true,
)Response
nilRequest
<?php
$seam->thermostats->update_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
cooling_set_point_celsius: 24,
manual_override_allowed: true
);Response
nullRequest
seam thermostats update-climate-preset --device_id "123e4567-e89b-12d3-a456-426614174000" --climate_preset_key "occupied" --cooling_set_point_celsius 24 --manual_override_allowed trueResponse
{}Request
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.UpdateClimatePreset(
context.Background(),
api.ThermostatsUpdateClimatePresetRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
ClimatePresetKey: api.String("occupied"),
CoolingSetPointCelsius: api.Float64(24),
ManualOverrideAllowed: api.Bool(true),
},
)
}Response
nilAuthentication Methods
API key
Personal access token Must also include the
seam-workspaceheader in the request.
Request Parameters
climate_preset_key
climate_preset_keyType: string Required: Yes
Unique key to identify the climate preset.
cooling_set_point_celsius
cooling_set_point_celsiusType: number Required: No
Temperature to which the thermostat should cool (in °C). See also Set Points.
cooling_set_point_fahrenheit
cooling_set_point_fahrenheitType: number Required: No
Temperature to which the thermostat should cool (in °F). See also Set Points.
device_id
device_idType: string Required: Yes
ID of the desired thermostat device.
fan_mode_setting
fan_mode_settingType: string Required: No
Desired fan mode setting, such as on, auto, or circulate.
heating_set_point_celsius
heating_set_point_celsiusType: number Required: No
Temperature to which the thermostat should heat (in °C). See also Set Points.
heating_set_point_fahrenheit
heating_set_point_fahrenheitType: number Required: No
Temperature to which the thermostat should heat (in °F). See also Set Points.
hvac_mode_setting
hvac_mode_settingType: string Required: No
Desired HVAC mode setting, such as heat, cool, heat_cool, or off.
manual_override_allowed
manual_override_allowedType: boolean Required: Yes
Indicates whether a person at the thermostat can change the thermostat's settings. See Specifying Manual Override Permissions.
name
nameType: string Required: No
User-friendly name to identify the climate preset.
Return Type
void
Last updated
Was this helpful?

