Creating and Managing Climate Presets
Learn how to create, list, update, and delete climate presets for thermostats.
Property
Description
Create a Climate Preset
# Get the thermostat.
thermostat = seam.devices.get(
device_id = "2d488679-6f07-4810-aed2-e726872c1dd5"
)
# Confirm that the thermostat supports heat_cool mode
# so that the climate presets can use this mode.
if thermostat.can_hvac_heat_cool:
# Create the climate presets.
seam.thermostats.create_climate_preset(
device_id = thermostat.device_id,
climate_preset_key = "occupied",
name = "Occupied",
fan_mode_setting = "auto",
hvac_mode_setting = "heat_cool",
cooling_set_point_celsius = 25,
heating_set_point_celsius = 20
)
seam.thermostats.create_climate_preset(
device_id: thermostat.device_id,
climate_preset_key = "unoccupied",
name = "Unoccupied",
fan_mode_setting = "auto",
hvac_mode_setting = "heat_cool",
cooling_set_point_celsius = 30,
heating_set_point_celsius = 15
) List All Climate Presets for a Thermostat
Update a Climate Preset
Delete a Climate Preset
Last updated
Was this helpful?

