> ## Documentation Index
> Fetch the complete documentation index at: https://www.seam.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Started with Honeywell Total Connect Comfort Thermostats

> Connect Honeywell Total Connect Comfort thermostats to Seam, check each thermostat's supported modes, set the HVAC mode and temperature, and schedule climate presets.

Use Seam to connect a Honeywell Total Connect Comfort account, list its thermostats, set a thermostat's HVAC mode and set points, and schedule climate presets. Each thermostat reports its own capabilities. Check the [Honeywell Total Connect Comfort-specific restrictions](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/index.md#brand-specific-restrictions) before you build.

> [!NOTE]
>
> The Honeywell Total Connect Comfort integration is in beta and available in all workspaces. If you run into an issue or have feedback, contact [Seam support](mailto:support@seam.co).

For real devices, complete the [Honeywell Total Connect Comfort setup guide](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/honeywell-tcc-setup-guide.md) first. [Create a Seam account and get an API key](https://console.seam.co/) to try [virtual Total Connect Comfort thermostats](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/sandbox-honeywell-tcc-thermostats.md) in a sandbox workspace.

## Step 1: Install a Seam SDK

Seam provides client libraries for many languages, including JavaScript, Python, Ruby, PHP, and others, as well as a Postman collection and an [OpenAPI](https://connect.getseam.com/openapi.json) spec.

* JavaScript / TypeScript ([npm](https://www.npmjs.com/package/seam), [GitHub](https://github.com/seamapi/javascript))
* Python ([pip](https://pypi.org/project/seam/), [GitHub](https://github.com/seamapi/python))
* Ruby Gem ([rubygem](https://rubygems.org/gems/seam), [GitHub](https://github.com/seamapi/ruby))
* PHP ([packagist](https://packagist.org/packages/seamapi/seam), [GitHub](https://github.com/seamapi/php))
* C# ([nuget](https://www.nuget.org/packages/Seam), [GitHub](https://github.com/seamapi/csharp))

First, install a Seam SDK, as follows:

> [tab] JavaScript
>
> ```bash theme={"dark"}
> npm i seam
> ```

> [tab] Python
>
> ```bash theme={"dark"}
> pip install seam
> # For some development environments, use pip3 in this command instead of pip.
> ```

> [tab] Ruby
>
> ```bash theme={"dark"}
> bundle add seam
> ```

> [tab] PHP
>
> ```bash theme={"dark"}
> composer require seamapi/seam
> ```

> [tab] C#
>
> Install using [nuget](https://www.nuget.org/packages/Seam).

Next, go to [https://console.seam.co/](https://console.seam.co/) and [sign up for Seam](https://www.seam.co/docs/core-concepts/seam-console.md#create-a-seam-account) to get your [API key](https://www.seam.co/docs/core-concepts/authentication/api-keys.md).

Then, export your API key as an environment variable.

```bash theme={"dark"}
$ export SEAM_API_KEY=seam_test2bMS_94SrGUXuNR2JmJkjtvBQDg5c
```

> [!NOTE]
>
> This guide uses a [sandbox
> workspace](https://www.seam.co/docs/core-concepts/workspaces.md#sandbox-workspaces). You can only connect
> virtual devices and systems in this type of workspace. If you want to connect
> a real Total Connect Comfort thermostat, use a [non-sandbox
> workspace](https://www.seam.co/docs/core-concepts/workspaces.md#production-workspaces) and API key.

***

## Step 2: Link your Total Connect Comfort account with Seam

To control your Total Connect Comfort thermostats using the Seam API, you must first authorize your Seam workspace to connect to your Total Connect Comfort account. If your application needs to connect to your users' Total Connect Comfort accounts, Seam provides fully-embedded, [customizable](https://www.seam.co/docs/core-concepts/connect-webviews/customizing-connect-webviews.md) client-side [Connect Webviews](https://www.seam.co/docs/core-concepts/connect-webviews.md) to collect their authorization securely.

Your user signs in with the e-mail address and password of their Total Connect Comfort account. Seam stores the password encrypted, so it can sign in again when the Total Connect Comfort session ends. For the steps your users follow, see the [Honeywell Total Connect Comfort setup guide](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/honeywell-tcc-setup-guide.md).

> [!TIP]
>
> This guide shows you how to create a Connect Webview programmatically using the Seam API.
>
> The [Seam Console](https://www.seam.co/docs/core-concepts/seam-console.md) provides another easy way to connect devices to your Seam workspace.
>
> Go to [https://console.seam.co/](https://console.seam.co/). On the **Devices** page, click **+ Add Devices**. Then, see [Authorize your workspace](#authorize-your-workspace) in this guide to complete the Connect Webview authorization flow.

### Create a Connect Webview

Create a `connect_webview` object and then note the returned URL.

The C# examples in this guide send requests to the Seam API directly.

**Code:**

```javascript JavaScript theme={"dark"}
import { Seam } from 'seam'

const seam = new Seam() // Seam automatically uses your exported SEAM_API_KEY.

const connectWebview = await seam.connectWebviews.create({
  accepted_providers: ['honeywell_tcc'],
})

console.log(connectWebview.login_successful) // false

// Use the returned Connect Webview URL to display
// the Connect Webview authorization flow to your user.
console.log(connectWebview.url)
```

```bash cURL theme={"dark"}
curl -X 'POST' \
  'https://connect.getseam.com/connect_webviews/create' \
  -H 'accept: application/json' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d '{
  "accepted_providers": ["honeywell_tcc"]
}' | jq -r '"Login Successful (false): " + (.connect_webview.login_successful | tostring),
  "URL: " + .connect_webview.url'
  # Use the returned Connect Webview URL to display
  # the Connect Webview authorization flow to your user.
```

```python Python theme={"dark"}
from seam import Seam

seam = Seam()  # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(accepted_providers=["honeywell_tcc"])

assert connect_webview.login_successful is False

# Use the returned Connect Webview URL to display
# the Connect Webview authorization flow to your user.
print(connect_webview.url)
```

```ruby Ruby theme={"dark"}
require "seam"

seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(accepted_providers: ["honeywell_tcc"])

puts connect_webview.login_successful # false

# Use the returned Connect Webview URL to display
# the Connect Webview authorization flow to your user.
puts connect_webview.url
```

```php PHP theme={"dark"}
<?php
require 'vendor/autoload.php';

$seam = new Seam\SeamClient(); // Seam automatically uses your exported SEAM_API_KEY.

$connect_webview = $seam->connect_webviews->create(
    accepted_providers: ["honeywell_tcc"]
);

echo $connect_webview->login_successful ? 'true' : 'false', "\n"; // false

// Use the returned Connect Webview URL to display
// the Connect Webview authorization flow to your user.
echo $connect_webview->url;
```

```csharp C# theme={"dark"}
using System;
using Seam.Client;
using Newtonsoft.Json.Linq;

var seam = new SeamClient(Environment.GetEnvironmentVariable("SEAM_API_KEY"));

var connectWebviewResponse = await seam.PostAsync<JObject>(
    "/connect_webviews/create",
    new RequestOptions {
        Data = new { accepted_providers = new[] { "honeywell_tcc" } }
    }
);
var connectWebview = connectWebviewResponse.EnsureData("/connect_webviews/create")["connect_webview"]!;

Console.WriteLine((bool)connectWebview["login_successful"]!); // False

// Use the returned Connect Webview URL to display
// the Connect Webview authorization flow to your user.
Console.WriteLine((string)connectWebview["url"]!);
```

```bash Seam CLI theme={"dark"}
seam connect-webviews create --accepted_providers ["honeywell_tcc"]
```

**Output:**

```json theme={"dark"}
{
  "connect_webview_id": "12345678-1234-1234-1234-123456789012",
  "login_successful": false,
  "url": "https://connect.getseam.com/connect_webviews/view?connect_webview_id=12345678-1234-1234-1234-123456789012&auth_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  ...
}
```

***

### Authorize Your Workspace

In a web browser, go to the URL that the Connect Webview object returned.

For application developers, you can redirect your user to this Connect Webview URL so that they can authorize your app to control their devices using Seam. We even provide a prebuilt [Connect Account Button](https://www.seam.co/docs/ui-components/overview/react-components/connect-account-button.md) within our suite of [Seam Components](https://www.seam.co/docs/ui-components/overview.md) that help you build your device management flow.

> [!TIP]
>
> Because you're using a sandbox workspace, you connect Seam's test Total
> Connect Comfort account. We provide [virtual
> devices](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/sandbox-honeywell-tcc-thermostats.md) for each of the brands that we
> support. These sandbox devices and systems enable you to test your app with
> devices from multiple brands without the need to own all the corresponding
> physical devices.

Complete the Connect Webview authorization flow, as follows:

1. In the Connect Webview, enter the [Total Connect Comfort sandbox credentials](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/sandbox-honeywell-tcc-thermostats.md): e-mail address `jane@example.com` and password `1234`.
2. Submit the form.

Confirm that authorization through the Connect Webview was successful by querying its status.

**Code:**

```javascript JavaScript theme={"dark"}
const updatedConnectWebview = await seam.connectWebviews.get({
  connect_webview_id: connectWebview.connect_webview_id,
})

console.log(updatedConnectWebview.login_successful) // true
```

```bash cURL theme={"dark"}
curl -X 'POST' \
  'https://connect.getseam.com/connect_webviews/get' \
  -H 'accept: application/json' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d "{
  \"connect_webview_id\": \"${connect_webview_id}\"
}" | jq -r '"Login Successful (true): " + (.connect_webview.login_successful | tostring)'
```

```python Python theme={"dark"}
updated_connect_webview = seam.connect_webviews.get(
    connect_webview_id=connect_webview.connect_webview_id
)

assert updated_connect_webview.login_successful is True
```

```ruby Ruby theme={"dark"}
updated_connect_webview = seam.connect_webviews.get(
  connect_webview_id: connect_webview.connect_webview_id
)

puts updated_connect_webview.login_successful # true
```

```php PHP theme={"dark"}
$updated_connect_webview = $seam->connect_webviews->get(
    connect_webview_id: $connect_webview->connect_webview_id
);

echo $updated_connect_webview->login_successful ? 'true' : 'false', "\n"; // true
```

```csharp C# theme={"dark"}
var updatedConnectWebviewResponse = await seam.PostAsync<JObject>(
    "/connect_webviews/get",
    new RequestOptions {
        Data = new { connect_webview_id = (string)connectWebview["connect_webview_id"]! }
    }
);
var updatedConnectWebview = updatedConnectWebviewResponse.EnsureData("/connect_webviews/get")["connect_webview"]!;

Console.WriteLine((bool)updatedConnectWebview["login_successful"]!); // True
```

```bash Seam CLI theme={"dark"}
seam connect-webviews get --connect_webview_id "12345678-1234-1234-1234-123456789012"
```

**Output:**

```json theme={"dark"}
{
  "connect_webview_id": "12345678-1234-1234-1234-123456789012",
  "login_successful": true,
  ...
}
```

***

## Step 3: Retrieve Total Connect Comfort thermostat devices

When you link a Total Connect Comfort account with Seam, we create a `device` object for each thermostat in the account. You can retrieve these devices using the [List Devices](https://www.seam.co/docs/api/devices/list.md) and [Get Device](https://www.seam.co/docs/api/devices/get.md) endpoints.

The device's `device_type` is `honeywell_tcc_thermostat`, and `properties.honeywell_tcc_metadata` identifies the thermostat by its Total Connect Comfort device ID, location ID, MAC address, and name. The device also reports the temperature, the humidity if the thermostat has a sensor, whether the system is heating or cooling, its current climate setting, its supported HVAC modes, and its set point range.

**Code:**

```javascript JavaScript theme={"dark"}
// Retrieve all devices, filtered by manufacturer,
// which is one of several filters that list() supports.
const allTccThermostats = await seam.devices.list({
  manufacturer: 'honeywell_tcc',
})

// Select the Hallway thermostat as an example.
const hallway = allTccThermostats.find(
  (device) => device.properties.honeywell_tcc_metadata?.device_name === 'Hallway',
)

// Inspect specific properties.
console.log('Current temperature: ' + hallway.properties.temperature_fahrenheit)
console.log('HVAC modes: ' + hallway.properties.available_hvac_mode_settings)

// View the entire returned device object.
console.log(hallway)
```

```bash cURL theme={"dark"}
# Retrieve all devices, filtered by manufacturer, which is
# one of several filters that the list endpoint supports.
all_tcc_thermostats=$(
  curl -X 'POST' \
    'https://connect.getseam.com/devices/list' \
    -H 'accept: application/json' \
    -H "Authorization: Bearer ${SEAM_API_KEY}" \
    -H 'Content-Type: application/json' \
    -d '{
    "manufacturer": "honeywell_tcc"
  }')

# Select the Hallway thermostat as an example.
hallway=$(jq -r '.devices[] | select(.properties.honeywell_tcc_metadata.device_name == "Hallway")' <<< ${all_tcc_thermostats})

# Inspect specific properties.
echo $(jq -r '"Current temperature: " + (.properties.temperature_fahrenheit | tostring)' <<< ${hallway})
echo $(jq -r '"HVAC modes: " + (.properties.available_hvac_mode_settings | join(","))' <<< ${hallway})

# View the entire returned device object.
echo ${hallway}
```

```python Python theme={"dark"}
from pprint import pprint

# Retrieve all devices, filtered by manufacturer,
# which is one of several filters that list() supports.
all_tcc_thermostats = seam.devices.list(manufacturer="honeywell_tcc")

# Select the Hallway thermostat as an example.
hallway = next(
    device
    for device in all_tcc_thermostats
    if device.properties["honeywell_tcc_metadata"]["device_name"] == "Hallway"
)

# Inspect specific properties.
pprint("Current temperature: " + str(hallway.properties["temperature_fahrenheit"]))
pprint("HVAC modes: " + str(hallway.properties["available_hvac_mode_settings"]))

# View the entire returned device object.
pprint(hallway)
```

```ruby Ruby theme={"dark"}
# Retrieve all devices, filtered by manufacturer,
# which is one of several filters that list() supports.
all_tcc_thermostats = seam.devices.list(manufacturer: "honeywell_tcc")

# Select the Hallway thermostat as an example.
hallway = all_tcc_thermostats.find do |device|
  device.properties.honeywell_tcc_metadata.device_name == "Hallway"
end

# Inspect specific properties.
puts "Current temperature: " + hallway.properties.temperature_fahrenheit.to_s
puts "HVAC modes: " + hallway.properties.available_hvac_mode_settings.join(",")

# View the entire returned device object.
puts hallway.inspect
```

```php PHP theme={"dark"}
// Retrieve all devices, filtered by manufacturer,
// which is one of several filters that list() supports.
$all_tcc_thermostats = $seam->devices->list(manufacturer: "honeywell_tcc");

// Select the Hallway thermostat as an example.
$hallway = null;
foreach ($all_tcc_thermostats as $device) {
    if ($device->properties->honeywell_tcc_metadata->device_name === "Hallway") {
        $hallway = $device;
        break;
    }
}

// Inspect specific properties.
echo "Current temperature: ", $hallway->properties->temperature_fahrenheit, "\n";
echo "HVAC modes: ", implode(",", $hallway->properties->available_hvac_mode_settings), "\n";

// View the entire returned device object.
echo json_encode($hallway, JSON_PRETTY_PRINT);
```

```csharp C# theme={"dark"}
using System.Linq;

var devicesResponse = await seam.PostAsync<JObject>(
    "/devices/list",
    new RequestOptions { Data = new { manufacturer = "honeywell_tcc" } }
);
var allTccThermostats = (JArray)devicesResponse.EnsureData("/devices/list")["devices"]!;

// Select the Hallway thermostat as an example.
var hallway = allTccThermostats.First(
    device => (string?)device["properties"]?["honeywell_tcc_metadata"]?["device_name"] == "Hallway"
);

// Inspect specific properties.
Console.WriteLine("Current temperature: " + hallway["properties"]!["temperature_fahrenheit"]);
Console.WriteLine("HVAC modes: " + string.Join(",", hallway["properties"]!["available_hvac_mode_settings"]!));

// View the entire returned device object.
Console.WriteLine(hallway);
```

```bash Seam CLI theme={"dark"}
seam devices list --manufacturer "honeywell_tcc"
```

**Output:**

```json theme={"dark"}
Current temperature: 71
HVAC modes: off,cool,heat,heat_cool
{
  "device_id": "11111111-1111-1111-2222-444444444444",
  "device_type": "honeywell_tcc_thermostat",
  "display_name": "Hallway",
  "workspace_id": "00000000-0000-0000-0000-000000000000",
  "connected_account_id": "11111111-1111-1111-1111-222222222222",
  "properties": {
    "manufacturer": "honeywell_tcc",
    "online": true,
    "name": "Hallway",
    "temperature_fahrenheit": 71,
    "relative_humidity": 0.45,
    "is_heating": true,
    "is_cooling": false,
    "available_hvac_mode_settings": ["off", "cool", "heat", "heat_cool"],
    "current_climate_setting": {
      "hvac_mode_setting": "heat_cool",
      "heating_set_point_fahrenheit": 68,
      "cooling_set_point_fahrenheit": 77,
      ...
    },
    "honeywell_tcc_metadata": {
      "device_id": "4100201",
      "mac_address": "00D02DA10001",
      "location_id": "2100101",
      "device_name": "Hallway"
    },
    ...
  },
  "can_hvac_heat": true,
  "can_hvac_cool": true,
  "can_hvac_heat_cool": true,
  "can_turn_off_hvac": true,
  ...
}
```

***

## Step 4: Control your Total Connect Comfort thermostat

Each device that you connect to Seam has a specific set of capabilities. [Capability flags](https://www.seam.co/docs/capability-guides/device-and-system-capabilities.md#capability-flags) tell your application what each device supports. For Total Connect Comfort, check `can_hvac_heat`, `can_hvac_cool`, `can_hvac_heat_cool`, and `can_turn_off_hvac` before you set the HVAC mode. Seam doesn't support fan mode control for Total Connect Comfort thermostats yet.

Try out the following actions on your Total Connect Comfort thermostat:

* [Set the HVAC mode](#set-the-hvac-mode)
* [Verify the change](#verify-the-change)
* [Create and schedule climate presets](#create-and-schedule-climate-presets)

### Set the HVAC mode

To set the HVAC mode, use any of the following endpoints or their equivalents in the Seam SDKs:

* `/thermostats/heat`
* `/thermostats/cool`
* `/thermostats/heat_cool`
* `/thermostats/off`
* `/thermostats/set_hvac_mode`

Specify the thermostat that you want to control by including the `device_id` in the request body. Also, include the desired temperature [set point](https://www.seam.co/docs/capability-guides/thermostats/understanding-thermostat-concepts/set-points.md). The set point must be within the thermostat's range, such as `min_heating_set_point_fahrenheit` and `max_heating_set_point_fahrenheit`. When Seam changes the set points, it sets a permanent hold on the thermostat.

In this example, set the Hallway thermostat to `heat` with a heating set point of 70 °F. Each of these HVAC mode endpoints returns an [action attempt](https://www.seam.co/docs/core-concepts/action-attempts.md) to track the progress of the operation.

**Code:**

```javascript JavaScript theme={"dark"}
// Confirm that the thermostat supports heat mode.
// You're using a capability flag here!
if (hallway.can_hvac_heat) {
  // Perform the heat operation and wait for the action attempt.
  const actionAttempt = await seam.thermostats.heat({
    device_id: hallway.device_id,
    heating_set_point_fahrenheit: 70,
  })

  console.log(actionAttempt)
}
```

```bash cURL theme={"dark"}
# Confirm that the thermostat supports heat mode.
# You're using a capability flag here!
if  $(jq -r '.can_hvac_heat' <<< ${hallway}); then \
  # Perform the heat operation and return an action attempt.
  curl -X 'POST' \
    'https://connect.getseam.com/thermostats/heat' \
    -H 'accept: application/json' \
    -H "Authorization: Bearer ${SEAM_API_KEY}" \
    -H 'Content-Type: application/json' \
    -d "{
      \"device_id\": \"$(jq -r '.device_id' <<< ${hallway})\",
      \"heating_set_point_fahrenheit\": 70
  }";
fi
```

```python Python theme={"dark"}
# Confirm that the thermostat supports heat mode.
# You're using a capability flag here!
if hallway.can_hvac_heat:
    # Perform the heat operation and wait for the action attempt.
    action_attempt = seam.thermostats.heat(
        device_id=hallway.device_id, heating_set_point_fahrenheit=70
    )

    pprint(action_attempt)
```

```ruby Ruby theme={"dark"}
# Confirm that the thermostat supports heat mode.
# You're using a capability flag here!
if hallway.can_hvac_heat
  # Perform the heat operation and wait for the action attempt.
  action_attempt = seam.thermostats.heat(
    device_id: hallway.device_id,
    heating_set_point_fahrenheit: 70,
  )

  puts action_attempt.inspect
end
```

```php PHP theme={"dark"}
// Confirm that the thermostat supports heat mode.
// You're using a capability flag here!
if ($hallway->can_hvac_heat) {
    // Perform the heat operation and wait for the action attempt.
    $action_attempt = $seam->thermostats->heat(
        device_id: $hallway->device_id,
        heating_set_point_fahrenheit: 70,
    );

    echo json_encode($action_attempt, JSON_PRETTY_PRINT);
}
```

```csharp C# theme={"dark"}
// Confirm that the thermostat supports heat mode.
// You're using a capability flag here!
if ((bool?)hallway["can_hvac_heat"] == true) {
    // Perform the heat operation and return an action attempt.
    var actionAttempt = await seam.Thermostats.HeatAsync(
        deviceId: (string)hallway["device_id"]!,
        heatingSetPointFahrenheit: 70
    );

    Console.WriteLine(actionAttempt);
}
```

```bash Seam CLI theme={"dark"}
seam thermostats heat --device_id "11111111-1111-1111-2222-444444444444" --heating_set_point_fahrenheit 70
```

**Output:**

```json theme={"dark"}
{
  "action_attempt_id": "11111111-2222-3333-4444-555555555555",
  "action_type": "SET_HVAC_MODE",
  "status": "success",
  "result": {},
  "error": null
}
```

> [!NOTE]
>
> Native SDK action methods and Seam CLI commands wait for the action attempt automatically. Raw HTTP
> calls do not. If you use raw HTTP, poll until the action attempt is no longer
> pending. See
> [Action Attempts](https://www.seam.co/docs/core-concepts/action-attempts.md).

### Verify the change

Confirm that the action attempt succeeded, then get the device and read `properties.current_climate_setting`. Its `hvac_mode_setting` and `heating_set_point_fahrenheit` show what Total Connect Comfort reports for the thermostat. `properties.temperature_fahrenheit` is the measured temperature, not the set point.

**Code:**

```javascript JavaScript theme={"dark"}
// Get the device by ID.
const updatedHallway = await seam.devices.get({
  device_id: hallway.device_id,
})

// Inspect properties.current_climate_setting
// to confirm that the thermostat is heating to 70 °F.
console.log(updatedHallway.properties.current_climate_setting)
```

```bash cURL theme={"dark"}
# Get the device by ID.
updated_hallway=$(
  curl -X 'POST' \
    'https://connect.getseam.com/devices/get' \
    -H 'accept: application/json' \
    -H "Authorization: Bearer ${SEAM_API_KEY}" \
    -H 'Content-Type: application/json' \
    -d "{
    \"device_id\": \"$(jq -r '.device_id' <<< ${hallway})\"
  }")

# Inspect properties.current_climate_setting
# to confirm that the thermostat is heating to 70 °F.
echo $(jq -r '.device.properties.current_climate_setting' <<< ${updated_hallway})
```

```python Python theme={"dark"}
# Get the device by ID.
updated_hallway = seam.devices.get(device_id=hallway.device_id)

# Inspect properties.current_climate_setting
# to confirm that the thermostat is heating to 70 °F.
pprint(updated_hallway.properties["current_climate_setting"])
```

```ruby Ruby theme={"dark"}
# Get the device by ID.
updated_hallway = seam.devices.get(device_id: hallway.device_id)

# Inspect properties.current_climate_setting
# to confirm that the thermostat is heating to 70 °F.
puts updated_hallway.properties.current_climate_setting.inspect
```

```php PHP theme={"dark"}
// Get the device by ID.
$updated_hallway = $seam->devices->get(device_id: $hallway->device_id);

// Inspect properties.current_climate_setting
// to confirm that the thermostat is heating to 70 °F.
echo json_encode($updated_hallway->properties->current_climate_setting, JSON_PRETTY_PRINT);
```

```csharp C# theme={"dark"}
// Get the device by ID.
var updatedHallwayResponse = await seam.PostAsync<JObject>(
    "/devices/get",
    new RequestOptions { Data = new { device_id = (string)hallway["device_id"]! } }
);
var updatedHallway = updatedHallwayResponse.EnsureData("/devices/get")["device"]!;

// Inspect properties.current_climate_setting
// to confirm that the thermostat is heating to 70 °F.
Console.WriteLine(updatedHallway["properties"]!["current_climate_setting"]);
```

```bash Seam CLI theme={"dark"}
seam devices get --device_id "11111111-1111-1111-2222-444444444444"
```

**Output:**

```json theme={"dark"}
{
  "hvac_mode_setting": "heat",
  "heating_set_point_fahrenheit": 70,
  ...
}
```

If the reported settings don't match yet, Seam may not have read the thermostat since the change. Seam reads each Total Connect Comfort account every 10 minutes. Get the device again after a wait, or listen for thermostat [events](https://www.seam.co/docs/api/thermostats/events.md) instead of retrying the command.

If you test a real thermostat, record its original mode and set points and restore them after the test. Because Seam sets a permanent hold, the thermostat doesn't return to its own program on its own.

### Create and schedule climate presets

You can use the Seam API to create climate presets for Total Connect Comfort thermostats. Each climate preset is a saved group of settings, such as the HVAC mode and set point. For example, you could create a comfort preset for when a vacation rental is occupied and an eco preset for when it's empty.

You can schedule climate presets to start and stop whenever you'd like, and set a fallback climate preset that applies outside your schedules. When Seam applies a climate preset, it sets the HVAC mode and set points in the same way as the HVAC mode endpoints.

In this example, create comfort and eco presets for the Hallway thermostat, set eco as the fallback, and schedule the comfort preset for a guest's stay.

**Code:**

```javascript JavaScript theme={"dark"}
// Create the climate presets.
await seam.thermostats.createClimatePreset({
  device_id: hallway.device_id,
  climate_preset_key: 'comfort',
  name: 'Comfort',
  hvac_mode_setting: 'heat',
  heating_set_point_fahrenheit: 70,
})

await seam.thermostats.createClimatePreset({
  device_id: hallway.device_id,
  climate_preset_key: 'eco',
  name: 'Eco',
  hvac_mode_setting: 'heat',
  heating_set_point_fahrenheit: 62,
})

// Set eco as the fallback climate preset.
await seam.thermostats.setFallbackClimatePreset({
  device_id: hallway.device_id,
  climate_preset_key: 'eco',
})

// Schedule the comfort preset for a guest's stay.
await seam.thermostats.schedules.create({
  device_id: hallway.device_id,
  name: "Jane's stay",
  climate_preset_key: 'comfort',
  starts_at: '2026-12-18T15:00:00Z',
  ends_at: '2026-12-22T11:00:00Z',
  is_override_allowed: true,
  max_override_period_minutes: 90,
})
```

```bash cURL theme={"dark"}
device_id=$(jq -r '.device_id' <<< ${hallway})

# Create the climate presets.
curl -X 'POST' \
  'https://connect.getseam.com/thermostats/create_climate_preset' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d "{
  \"device_id\": \"${device_id}\",
  \"climate_preset_key\": \"comfort\",
  \"name\": \"Comfort\",
  \"hvac_mode_setting\": \"heat\",
  \"heating_set_point_fahrenheit\": 70
}"

curl -X 'POST' \
  'https://connect.getseam.com/thermostats/create_climate_preset' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d "{
  \"device_id\": \"${device_id}\",
  \"climate_preset_key\": \"eco\",
  \"name\": \"Eco\",
  \"hvac_mode_setting\": \"heat\",
  \"heating_set_point_fahrenheit\": 62
}"

# Set eco as the fallback climate preset.
curl -X 'POST' \
  'https://connect.getseam.com/thermostats/set_fallback_climate_preset' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d "{
  \"device_id\": \"${device_id}\",
  \"climate_preset_key\": \"eco\"
}"

# Schedule the comfort preset for a guest's stay.
curl -X 'POST' \
  'https://connect.getseam.com/thermostats/schedules/create' \
  -H "Authorization: Bearer ${SEAM_API_KEY}" \
  -H 'Content-Type: application/json' \
  -d "{
  \"device_id\": \"${device_id}\",
  \"name\": \"Jane's stay\",
  \"climate_preset_key\": \"comfort\",
  \"starts_at\": \"2026-12-18T15:00:00Z\",
  \"ends_at\": \"2026-12-22T11:00:00Z\",
  \"is_override_allowed\": true,
  \"max_override_period_minutes\": 90
}"
```

```python Python theme={"dark"}
# Create the climate presets.
seam.thermostats.create_climate_preset(
    device_id=hallway.device_id,
    climate_preset_key="comfort",
    name="Comfort",
    hvac_mode_setting="heat",
    heating_set_point_fahrenheit=70,
)

seam.thermostats.create_climate_preset(
    device_id=hallway.device_id,
    climate_preset_key="eco",
    name="Eco",
    hvac_mode_setting="heat",
    heating_set_point_fahrenheit=62,
)

# Set eco as the fallback climate preset.
seam.thermostats.set_fallback_climate_preset(
    device_id=hallway.device_id, climate_preset_key="eco"
)

# Schedule the comfort preset for a guest's stay.
seam.thermostats.schedules.create(
    device_id=hallway.device_id,
    name="Jane's stay",
    climate_preset_key="comfort",
    starts_at="2026-12-18T15:00:00Z",
    ends_at="2026-12-22T11:00:00Z",
    is_override_allowed=True,
    max_override_period_minutes=90,
)
```

```ruby Ruby theme={"dark"}
# Create the climate presets.
seam.thermostats.create_climate_preset(
  device_id: hallway.device_id,
  climate_preset_key: "comfort",
  name: "Comfort",
  hvac_mode_setting: "heat",
  heating_set_point_fahrenheit: 70,
)

seam.thermostats.create_climate_preset(
  device_id: hallway.device_id,
  climate_preset_key: "eco",
  name: "Eco",
  hvac_mode_setting: "heat",
  heating_set_point_fahrenheit: 62,
)

# Set eco as the fallback climate preset.
seam.thermostats.set_fallback_climate_preset(
  device_id: hallway.device_id,
  climate_preset_key: "eco",
)

# Schedule the comfort preset for a guest's stay.
seam.thermostats.schedules.create(
  device_id: hallway.device_id,
  name: "Jane's stay",
  climate_preset_key: "comfort",
  starts_at: "2026-12-18T15:00:00Z",
  ends_at: "2026-12-22T11:00:00Z",
  is_override_allowed: true,
  max_override_period_minutes: 90,
)
```

```php PHP theme={"dark"}
// Create the climate presets.
$seam->thermostats->create_climate_preset(
    device_id: $hallway->device_id,
    climate_preset_key: "comfort",
    name: "Comfort",
    hvac_mode_setting: "heat",
    heating_set_point_fahrenheit: 70,
);

$seam->thermostats->create_climate_preset(
    device_id: $hallway->device_id,
    climate_preset_key: "eco",
    name: "Eco",
    hvac_mode_setting: "heat",
    heating_set_point_fahrenheit: 62,
);

// Set eco as the fallback climate preset.
$seam->thermostats->set_fallback_climate_preset(
    device_id: $hallway->device_id,
    climate_preset_key: "eco",
);

// Schedule the comfort preset for a guest's stay.
$seam->thermostats->schedules->create(
    device_id: $hallway->device_id,
    name: "Jane's stay",
    climate_preset_key: "comfort",
    starts_at: "2026-12-18T15:00:00Z",
    ends_at: "2026-12-22T11:00:00Z",
    is_override_allowed: true,
    max_override_period_minutes: 90,
);
```

```csharp C# theme={"dark"}
var deviceId = (string)hallway["device_id"]!;

// Create the climate presets.
await seam.PostAsync<JObject>(
    "/thermostats/create_climate_preset",
    new RequestOptions {
        Data = new {
            device_id = deviceId,
            climate_preset_key = "comfort",
            name = "Comfort",
            hvac_mode_setting = "heat",
            heating_set_point_fahrenheit = 70
        }
    }
);

await seam.PostAsync<JObject>(
    "/thermostats/create_climate_preset",
    new RequestOptions {
        Data = new {
            device_id = deviceId,
            climate_preset_key = "eco",
            name = "Eco",
            hvac_mode_setting = "heat",
            heating_set_point_fahrenheit = 62
        }
    }
);

// Set eco as the fallback climate preset.
await seam.PostAsync<JObject>(
    "/thermostats/set_fallback_climate_preset",
    new RequestOptions {
        Data = new { device_id = deviceId, climate_preset_key = "eco" }
    }
);

// Schedule the comfort preset for a guest's stay.
await seam.PostAsync<JObject>(
    "/thermostats/schedules/create",
    new RequestOptions {
        Data = new {
            device_id = deviceId,
            name = "Jane's stay",
            climate_preset_key = "comfort",
            starts_at = "2026-12-18T15:00:00Z",
            ends_at = "2026-12-22T11:00:00Z",
            is_override_allowed = true,
            max_override_period_minutes = 90
        }
    }
);
```

```bash Seam CLI theme={"dark"}
# Create the climate presets.
seam thermostats create-climate-preset --device_id "11111111-1111-1111-2222-444444444444" --climate_preset_key "comfort" --name "Comfort" --hvac_mode_setting "heat" --heating_set_point_fahrenheit 70
seam thermostats create-climate-preset --device_id "11111111-1111-1111-2222-444444444444" --climate_preset_key "eco" --name "Eco" --hvac_mode_setting "heat" --heating_set_point_fahrenheit 62

# Set eco as the fallback climate preset.
seam thermostats set-fallback-climate-preset --device_id "11111111-1111-1111-2222-444444444444" --climate_preset_key "eco"

# Schedule the comfort preset for a guest's stay.
seam thermostats schedules create --device_id "11111111-1111-1111-2222-444444444444" --name "Jane's stay" --climate_preset_key "comfort" --starts_at "2026-12-18T15:00:00Z" --ends_at "2026-12-22T11:00:00Z" --is_override_allowed true --max_override_period_minutes 90
```

For more about presets and schedules, see [Creating and Managing Climate Presets](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets.md) and [Creating and Managing Thermostat Schedules](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules.md).

***

## Step 5: Connect a real Total Connect Comfort thermostat

Now that you have learned the basics of using the Seam API, you can connect and control a real Total Connect Comfort thermostat. To do so, switch to a [non-sandbox workspace](https://www.seam.co/docs/core-concepts/workspaces.md#production-workspaces) and [API key](https://www.seam.co/docs/core-concepts/authentication/api-keys.md).

For the steps your users follow to connect their Total Connect Comfort account, see the [Honeywell Total Connect Comfort setup guide](https://www.seam.co/docs/device-and-system-integration-guides/honeywell-tcc-thermostats/honeywell-tcc-setup-guide.md).

***

## Step 6: Build your application!

The Seam API and Seam SDKs give you up-to-date information about your thermostats. Seam also sends thermostat-related events that let you monitor your thermostats and the connected heating and cooling systems. Our [simulation endpoints](https://www.seam.co/docs/capability-guides/thermostats/testing-your-thermostat-app-with-simulate-endpoints.md) help you test your app against events that are hard to reproduce with real devices.

***

## Next steps

Now that you've completed this getting started guide for Total Connect Comfort thermostats, you can learn more about what you can do with the Seam API.

* [ ] **Explore**\
  See the [other devices and system integrations](https://www.seam.co/docs/device-and-system-integration-guides.md) that Seam supports.
* [ ] **Learn**\
  Read about Seam [concepts](https://www.seam.co/docs/core-concepts/overview.md) and the [device and system capabilities](https://www.seam.co/docs/capability-guides/device-and-system-capabilities.md) that Seam supports.
* [ ] **Expand your abilities**\
  Find out what other [thermostat actions](https://www.seam.co/docs/capability-guides/thermostats.md) you can perform using the Seam API.
* [ ] **Use webhooks**\
  Learn how to use [webhooks](https://www.seam.co/docs/developer-tools/webhooks.md) as an efficient way to receive device events.

> [!NOTE]
>
> If you have any questions or want to report an issue, email us at
> [support@seam.co](mailto:support@seam.co).

***

## Quick links

> [card] [Get an API Key (free)](https://console.seam.co/)
>
> Sign up for the Seam Console and get your API keys. →

> [card] [Contact Sales](https://www.seam.co/contact-us)
>
> Got a project or a specific question? Contact our team to get answers. →


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.