Sets a specified as the preset for a specified .
POST /thermostats/set_fallback_climate_preset ⇒ void
Authentication Methods
Personal access token
Must also include the seam-workspace
header in the request.
To learn more, see .
Request Parameters
climate_preset_key
(Required)
Climate preset key of the desired climate preset.
device_id
(Required)
ID of the desired thermostat device.
Response
void
Examples
Set the fallback climate preset
Specify the device_id
of the desired thermostat and the climate_preset_key
of the desired fallback climate preset.
Code
await seam.thermostats.setFallbackClimatePreset({
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "eco",
});
Output
Code
seam.thermostats.set_fallback_climate_preset(
device_id="123e4567-e89b-12d3-a456-426614174000", climate_preset_key="eco"
)
Output
Code
seam.thermostats.set_fallback_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "eco",
)
Output
Code
<?php
$seam->thermostats->set_fallback_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "eco"
);
Output
Code
seam thermostats set-fallback-climate-preset --device_id "123e4567-e89b-12d3-a456-426614174000" --climate_preset_key "eco"
Output
Code
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.SetFallbackClimatePreset(
context.Background(),
api.ThermostatsSetFallbackClimatePresetRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
ClimatePresetKey: api.String("eco"),
},
)
}
Output