Comment on page
Create a Climate Setting Schedule
post
https://connect.getseam.com
/thermostats/climate_setting_schedules/create
/thermostats/climate_setting_schedules/create
Python
Javascript
seam.climate_setting_schedules.create(
"123e4567-e89b-12d3-a456-426614174001",
name="Guest #1234",
schedule_starts_at="2022-07-01T10:40:00Z",
schedule_ends_at="2022-07-10T10:40:00Z",
automatic_heating_enabled=True,
automatic_cooling_enabled=True,
heating_set_point_fahrenheit=70,
cooling_set_point_fahrenheit=75,
manual_override_enabled=true
)
# ClimateSettingSchedule:
# climate_setting_schedule_id: 123e4567-e89b-12d3-a456-426614174000
# device_id: 123e4567-e89b-12d3-a456-426614174001
# name: Guest Stay #1234
# schedule_starts_at: 2022-07-01T10:40:00Z
# schedule_ends_at: 2022-07-10T10:40:00Z
# created_at: 2022-07-06T23:26:42.223Z
# is_set_on_device: False
# automatic_heating_enabled: True
# automatic_cooling_enabled: True
# hvac_mode_setting: heat_cool
# cooling_set_point_fahrenheit: 75
# heating_set_point_fahrenheit: 65
# manual_override_allowed: False
await seam.climateSettingSchedules.create({
"device_id": "123e4567-e89b-12d3-a456-426614174001",
"name": "Guest Stay #1234",
"schedule_starts_at": "2022-07-01T10:40:00Z",
"schedule_ends_at": "2022-07-10T10:40:00Z",
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65,
"manual_override_allowed": true
});
/*
{
"climate_setting_schedule_id": "123e4567-e89b-12d3-a456-426614174000",
"device_id": "123e4567-e89b-12d3-a456-426614174001",
"name": "Guest Stay #1234",
"schedule_starts_at": "2022-07-01T10:40:00Z",
"schedule_ends_at": "2022-07-10T10:40:00Z",
"created_at": "2022-07-06T23:26:42.223Z",
"is_set_on_device": false,
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"hvac_mode_setting": "heat_cool",
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65,
"manual_override_allowed": false
}
*/
device_id | type: string |
ID of the Device |
name | type: string
Optional | Name of Climate Setting Schedule |
schedule_starts_at | type: string
Required | Date time when the Climate Setting Schedule should be programmed |
schedule_ends_at | type: string
Required | Date time when the Climate Setting Schedule should be removed |
automatic_heating_enabled | type: boolean
Default: false | When enabled, your system will only heat your home. Your thermostat will start heating to maintain the heating set point temperature selected. |
automatic_cooling_enabled | type: string
Default: false | When enabled, your system will only cooling your home. Your thermostat will start cooling to maintain the cooling set point temperature selected. |
heating_set_point_fahrenheit | type: number
Optional | When automatic_heating_enabled is set, a heating set point must be provided. The thermostat will start heating to maintain this temperature set point. |
cooling_set_point_fahrenheit | type: number
Optional | When automatic_cooling_enabled is set, a cooling set point must be provided. The thermostat will start cooling to maintain this temperature set point. |
manual_override_allowed | type: boolean
Default: true | Whether another user can use the thermostat or API to override this climate setting |
This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.
JSON
{
"action_attempt": {
"status": "pending",
"action_type": "CREATE_CLIMATE_SETTING_SCHEDULE",
"action_attempt_id": "c10e3db5-a5a2-47f2-a76f-48379ed9cd22",
"result": null,
"error": null
},
"climate_setting_schedule": {
"climate_setting_schedule_id": "123e4567-e89b-12d3-a456-426614174000",
"device_id": "123e4567-e89b-12d3-a456-426614174001",
"name": "Guest Stay #1234",
"schedule_starts_at": "2022-07-01T10:40:00Z",
"schedule_ends_at": "2022-07-10T10:40:00Z",
"created_at": "2022-07-06T23:26:42.223Z",
"is_set_on_device": false,
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"hvac_mode_setting": "heat_cool",
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65,
"manual_override_allowed": false
},
"ok": true
}
Last modified 19d ago