Retrieving Climate Setting Schedules

Learn how to retrieve climate setting schedules by device or by specific ID.

Retrieving All Climate Setting Schedules for a Device

To retrieve all climate setting schedules for a device, include the device_id in the List Climate Setting Schedules request.

Request:

device_id = "518f692b-f865-4590-8c3e-3849e9984c75"
climate_setting_schedules = seam.thermostats.climate_setting_schedules.list(device=device_id)

pprint(climate_setting_schedules)

Response:

[ClimateSettingSchedule(automatic_heating_enabled=True,
                        automatic_cooling_enabled=True,
                        hvac_mode_setting='heat_cool',
                        cooling_set_point_celsius=25.555555555555557,
                        heating_set_point_celsius=18.333333333333336,
                        cooling_set_point_fahrenheit=78.0,
                        heating_set_point_fahrenheit=65.0,
                        manual_override_allowed=True,
                        schedule_type='time_bound',
                        name='Guest 1 Stay',
                        schedule_starts_at='2023-12-01T15:00:00.000Z',
                        schedule_ends_at='2023-12-08T11:00:00.000Z',
                        climate_setting_schedule_id='6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7',
                        is_set_on_device=False,
                        device_id='518f692b-f865-4590-8c3e-3849e9984c75',
                        created_at='2023-11-18T08:52:42.759Z'),
 ClimateSettingSchedule(automatic_heating_enabled=True,
                        automatic_cooling_enabled=True,
                        hvac_mode_setting='heat_cool',
                        cooling_set_point_celsius=25.0,
                        heating_set_point_celsius=20.0,
                        cooling_set_point_fahrenheit=77.0,
                        heating_set_point_fahrenheit=68.0,
                        manual_override_allowed=True,
                        schedule_type='time_bound',
                        name='Guest 2 Stay',
                        schedule_starts_at='2023-12-10T15:00:00.000Z',
                        schedule_ends_at='2023-12-17T11:00:00.000Z',
                        climate_setting_schedule_id='b7d5cc0c-defc-4af1-9448-85b96aff5fd6',
                        is_set_on_device=False,
                        device_id='518f692b-f865-4590-8c3e-3849e9984c75',
                        created_at='2023-11-19T09:52:36.855Z')]

Retrieving Individual Climate Setting Schedules

To retrieve a specific climate setting schedule, include the desired climate_setting_schedule_id in the Get Climate Setting Schedule request.

Request:

climate_setting_schedule_id = "6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7"
climate_setting_schedule = seam.thermostats.climate_setting_schedules.get(climate_setting_schedule_id)

pprint(climate_setting_schedule)

Response:

ClimateSettingSchedule(automatic_heating_enabled=True,
                       automatic_cooling_enabled=True,
                       hvac_mode_setting='heat_cool',
                       cooling_set_point_celsius=25.555555555555557,
                       heating_set_point_celsius=18.333333333333336,
                       cooling_set_point_fahrenheit=78.0,
                       heating_set_point_fahrenheit=65.0,
                       manual_override_allowed=True,
                       schedule_type='time_bound',
                       name='Guest 1 Stay',
                       schedule_starts_at='2023-12-01T15:00:00.000Z',
                       schedule_ends_at='2023-12-08T11:00:00.000Z',
                       climate_setting_schedule_id='6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7',
                       is_set_on_device=False,
                       device_id='518f692b-f865-4590-8c3e-3849e9984c75',
                       created_at='2023-11-18T08:52:42.759Z')

Last updated

Logo

Š Seam Labs, Inc. All rights reserved.