Deleting Climate Setting Schedules

Learn how to delete your climate setting schedules.

To delete a climate setting schedule, specify the desired climate_setting_schedule_id in the Delete Climate Setting Schedule request. Note that if you delete an active climate setting schedule, the thermostat reverts back to the default climate setting.

Request:

climate_setting_schedule_id="6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7"

pprint(seam.thermostats.climate_setting_schedules.delete(climate_setting_schedule_id))

Response:

None

Once the climate setting schedule has been deleted, a request to get the climate setting schedule returns a 404 error.

Request:

climate_setting_schedule_id="6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7"

try:
    seam.thermostats.climate_setting_schedules.get(climate_setting_schedule_id)
except Exception as e:
    print(e)

Response:

SeamAPIException: status=404, request_id=fe322a24-e00a-4747-a9c7-45f60e8a0a22, metadata={'type': 'climate_setting_schedule_not_found', 'message': 'Could not find an climate_setting_schedule with device_id or climate_setting_schedule_id', 'data': {'climate_setting_schedule_id': '6f510b57-70b5-4dc8-b7f5-abe7c2bc6ba7'}, 'request_id': 'fe322a24-e00a-4747-a9c7-45f60e8a0a22'}

Last updated

Logo

© Seam Labs, Inc. All rights reserved.