Ask or search…
βŒƒK
Links

Retrieving Thermostats

Learn how to retrieve all thermostats or a specific thermostat by ID.

Retrieving All Thermostats

To retrieve all thermostats, issue a List Thermostats request. For filtering options, see the request body parameters for the List Thermostats request.
Python
cURL (bash)
JavaScript
PHP
C#
Java
Go
Request:
seam.thermostats.list()
Response:
[Device(
device_id='518f692b-f865-4590-8c3e-3849e9984c75',
device_type='ecobee_thermostat',
location=None,
properties={
'available_hvac_mode_settings': ['off', 'cool', 'heat', 'heat_cool'],
'can_enable_automatic_cooling': True,
'can_enable_automatic_heating': True,
'current_climate_setting': {
'automatic_cooling_enabled': True,
'automatic_heating_enabled': True,
'cooling_set_point_celsius': 25,
'cooling_set_point_fahrenheit': 77,
'heating_set_point_celsius': 20,
'heating_set_point_fahrenheit': 68,
'hvac_mode_setting': 'heat_cool',
'manual_override_allowed': True
},
'default_climate_setting': {
'automatic_cooling_enabled': True,
'automatic_heating_enabled': True,
'cooling_set_point_celsius': 25,
'cooling_set_point_fahrenheit': 77,
'heating_set_point_celsius': 20,
'heating_set_point_fahrenheit': 68,
'hvac_mode_setting': 'heat_cool',
'manual_override_allowed': True
},
'ecobee_metadata': {
'device_name': 'Thermostat 1',
'ecobee_device_id': 'a64074f3-a0aa-4dbb-bbd3-f17f61701602'
},
'fan_mode_setting': 'auto',
'has_direct_power': True,
'image_alt_text': 'Ecobee 3 Lite Thermostat',
'image_url': 'https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png',
'is_climate_setting_schedule_active': False,
'is_cooling': False,
'is_cooling_available': True,
'is_fan_running': False,
'is_heating': False,
'is_heating_available': True,
'is_temporary_manual_override_active': False,
'manufacturer': 'ecobee',
'max_cooling_set_point_celsius': 33.333333333333336,
'max_cooling_set_point_fahrenheit': 92,
'max_heating_set_point_celsius': 26.11111111111111,
'max_heating_set_point_fahrenheit': 79,
'min_cooling_set_point_celsius': 18.333333333333336,
'min_cooling_set_point_fahrenheit': 65,
'min_heating_cooling_delta_celsius': 2.7777777777777777,
'min_heating_cooling_delta_fahrenheit': 5,
'min_heating_set_point_celsius': 7.222222222222222,
'min_heating_set_point_fahrenheit': 45,
'model': {
'accessory_keypad_supported': False,
'display_name': 'Thermostat',
'manufacturer_display_name': 'Ecobee',
'offline_access_codes_supported': False,
'online_access_codes_supported': True
},
'name': 'Thermostat 1',
'online': True,
'relative_humidity': 0.36,
'temperature_celsius': 21.11111111111111,
'temperature_fahrenheit': 70
},
capabilities_supported=['thermostat'],
errors=[],
warnings=[],
connected_account_id='2c00bc71-bca5-42c2-a1c5-74fd93ffcba1',
workspace_id='398d80b7-3f96-47c2-b85a-6f8ba21d07be',
created_at='2023-10-30T10:36:18.387Z',
is_managed=True
)]
Request:
# Use GET or POST.
curl -X 'GET' \
'https://connect.getseam.com/thermostats/list' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${API_KEY}' \
-H 'Content-Type: application/json' \
-d '{}'
Response:
{
"thermostats": [
{
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"is_cooling": false,
"is_heating": false,
"manufacturer": "ecobee",
"is_fan_running": false,
"ecobee_metadata": {
"device_name": "Thermostat 1",
"ecobee_device_id": "a64074f3-a0aa-4dbb-bbd3-f17f61701602"
},
"fan_mode_setting": "auto",
"has_direct_power": true,
"relative_humidity": 0.36,
"temperature_celsius": 21.11111111111111,
"is_cooling_available": true,
"is_heating_available": true,
"temperature_fahrenheit": 70,
"current_climate_setting": {
"hvac_mode_setting": "heat_cool",
"manual_override_allowed": true,
"automatic_cooling_enabled": true,
"automatic_heating_enabled": true,
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20,
"cooling_set_point_fahrenheit": 77,
"heating_set_point_fahrenheit": 68
},
"default_climate_setting": {
"hvac_mode_setting": "heat_cool",
"manual_override_allowed": true,
"automatic_cooling_enabled": true,
"automatic_heating_enabled": true,
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20,
"cooling_set_point_fahrenheit": 77,
"heating_set_point_fahrenheit": 68
},
"available_hvac_mode_settings": [
"off",
"cool",
"heat",
"heat_cool"
],
"can_enable_automatic_cooling": true,
"can_enable_automatic_heating": true,
"offline_access_codes_enabled": false,
"max_cooling_set_point_celsius": 33.333333333333336,
"max_heating_set_point_celsius": 26.11111111111111,
"min_cooling_set_point_celsius": 18.333333333333336,
"min_heating_set_point_celsius": 7.222222222222222,
"min_heating_cooling_delta_celsius": 2.7777777777777777,
"is_temporary_manual_override_active": false,
"name": "Thermostat 1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false,
},
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"is_climate_setting_schedule_active": false,
"min_heating_set_point_fahrenheit": 45,
"max_heating_set_point_fahrenheit": 79,
"min_cooling_set_point_fahrenheit": 65,
"max_cooling_set_point_fahrenheit": 92,
"min_heating_cooling_delta_fahrenheit": 5
},
"location": null,
"connected_account_id": "2c00bc71-bca5-42c2-a1c5-74fd93ffcba1",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"created_at": "2023-10-30T10:36:18.387Z",
"errors": [],
"warnings": [],
"is_managed": true
}
],
"ok": true
}
Request:
console.log(await seam.thermostats.list())
Response:
[
{
device_id: '518f692b-f865-4590-8c3e-3849e9984c75',
device_type: 'ecobee_thermostat',
capabilities_supported: [ 'thermostat' ],
properties: {
online: true,
is_cooling: false,
is_heating: false,
manufacturer: 'ecobee',
is_fan_running: false,
ecobee_metadata: [Object],
fan_mode_setting: 'auto',
has_direct_power: true,
relative_humidity: 0.36,
temperature_celsius: 21.11111111111111,
is_cooling_available: true,
is_heating_available: true,
temperature_fahrenheit: 70,
current_climate_setting: [Object],
default_climate_setting: [Object],
available_hvac_mode_settings: [Array],
can_enable_automatic_cooling: true,
can_enable_automatic_heating: true,
max_cooling_set_point_celsius: 33.333333333333336,
max_heating_set_point_celsius: 26.11111111111111,
min_cooling_set_point_celsius: 18.333333333333336,
min_heating_set_point_celsius: 7.222222222222222,
min_heating_cooling_delta_celsius: 2.7777777777777777,
is_temporary_manual_override_active: false,
name: 'Thermostat 1',
model: [Object],
image_url: 'https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png',
image_alt_text: 'Ecobee 3 Lite Thermostat',
is_climate_setting_schedule_active: false,
min_heating_set_point_fahrenheit: 45,
max_heating_set_point_fahrenheit: 79,
min_cooling_set_point_fahrenheit: 65,
max_cooling_set_point_fahrenheit: 92,
min_heating_cooling_delta_fahrenheit: 5
},
location: null,
connected_account_id: '2c00bc71-bca5-42c2-a1c5-74fd93ffcba1',
workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
created_at: '2023-10-30T10:36:18.387Z',
errors: [],
warnings: [],
is_managed: true
}
]
Request:
$thermostats = $seam->thermostats->list();
echo json_encode($thermostats, JSON_PRETTY_PRINT);
Response:
[
{
"device_id": "5ce2cd35-09b1-458c-bb08-51ee83c35be7",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"name": "Thermostat_1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"offline_access_codes_supported": null,
"online_access_codes_supported": null,
"accessory_keypad_supported": false
},
"has_direct_power": true,
"battery_level": null,
"battery": null,
"manufacturer": "ecobee",
"image_url": "https:\/\/connect.getseam.com\/assets\/images\/devices\/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"serial_number": null,
...
"ecobee_metadata": {
"ecobee_device_id": "c44f7f6a-97c6-4317-99a1-dae14fe20bb5",
"device_name": "Thermostat_1"
},
...
"temperature_fahrenheit": 70,
"temperature_celsius": 21.11111111111111,
"relative_humidity": 0.36,
"can_enable_automatic_heating": true,
"can_enable_automatic_cooling": true,
"available_hvac_mode_settings": [
"off",
"cool",
"heat",
"heat_cool"
],
"is_heating_available": true,
"is_cooling_available": true,
"is_heating": false,
"is_cooling": false,
"is_fan_running": false,
"fan_mode_setting": "auto",
"is_temporary_manual_override_active": false,
"current_climate_setting": {
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"hvac_mode_setting": "heat_cool",
"cooling_set_point_celsius": 23.88888888888889,
"heating_set_point_celsius": 18.333333333333336,
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65,
"manual_override_allowed": true
},
"default_climate_setting": null,
"is_climate_setting_schedule_active": false,
"active_climate_setting_schedule": null,
"min_cooling_set_point_celsius": 18.333333333333336,
"min_cooling_set_point_fahrenheit": 65,
"max_cooling_set_point_celsius": 33.333333333333336,
"max_cooling_set_point_fahrenheit": 92,
"min_heating_set_point_celsius": 7.222222222222222,
"min_heating_set_point_fahrenheit": 45,
"max_heating_set_point_celsius": 26.11111111111111,
"max_heating_set_point_fahrenheit": 79,
"min_heating_cooling_delta_celsius": 2.7777777777777777,
"min_heating_cooling_delta_fahrenheit": 5,
"assa_abloy_credential_service_metadata": null
},
"location": null,
"connected_account_id": "aaf37f42-f5a1-4223-a7db-2b61700bf2a9",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"errors": [],
"warnings": [],
"created_at": "2024-02-29T21:24:29.792Z",
"is_managed": true,
"custom_metadata": {}
},...
]
Request:
var thermostats = seam.Thermostats.List();
foreach (var thermostat in thermostats)
{
Console.WriteLine(thermostat);
}
Response:
{
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"name": "Thermostat 1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false
},
"has_direct_power": true,
"manufacturer": "ecobee",
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"ecobee_metadata": {
"ecobee_device_id": "a64074f3-a0aa-4dbb-bbd3-f17f61701602",
"device_name": "Thermostat 1"
}
},
"connected_account_id": "2c00bc71-bca5-42c2-a1c5-74fd93ffcba1",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"errors": [],
"warnings": [],
"created_at": "2023-10-30T10:36:18.387Z",
"is_managed": true
}
Request:
var thermostats = seam.thermostats().list();
System.out.println(thermostats);
Response:
{
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"name": "Thermostat 1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false
},
"has_direct_power": true,
"manufacturer": "ecobee",
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"ecobee_metadata": {
"ecobee_device_id": "a64074f3-a0aa-4dbb-bbd3-f17f61701602",
"device_name": "Thermostat 1"
}
},
"connected_account_id": "2c00bc71-bca5-42c2-a1c5-74fd93ffcba1",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"errors": [],
"warnings": [],
"created_at": "2023-10-30T10:36:18.387Z",
"is_managed": true
}
Request:
thermostats, uErr := client.Thermostats.List(context.Background(), nil)
​
if uErr != nil {
return uErr
}
​
fmt.Println(thermostats)
return nil
Response:
[{
"device_id": "5ce2cd35-09b1-458c-bb08-51ee83c35be7",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"is_cooling": false,
"is_heating": false,
"manufacturer": "ecobee",
"is_fan_running": false,
"ecobee_metadata": {
"device_name": "Thermostat_1",
"ecobee_device_id": "c44f7f6a-97c6-4317-99a1-dae14fe20bb5"
},
"fan_mode_setting": "auto",
"has_direct_power": true,
"relative_humidity": 0.36,
"temperature_celsius": 21.11111111111111,
"is_cooling_available": true,
"is_heating_available": true,
"temperature_fahrenheit": 70,
"current_climate_setting": {
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"hvac_mode_setting": "heat_cool",
"manual_override_allowed": true,
"cooling_set_point_celsius": 23.88888888888889,
"heating_set_point_celsius": 18.333333333333336,
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65
},
"available_hvac_mode_settings": [
"off",
"cool",
"heat",
"heat_cool"
],
"can_enable_automatic_cooling": true,
"can_enable_automatic_heating": true,
"max_cooling_set_point_celsius": 33.333333333333336,
"max_heating_set_point_celsius": 26.11111111111111,
"min_cooling_set_point_celsius": 18.333333333333336,
"min_heating_set_point_celsius": 7.222222222222222,
"min_heating_cooling_delta_celsius": 2.7777777777777777,
"is_temporary_manual_override_active": false,
"name": "Thermostat_1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false
},
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"is_climate_setting_schedule_active": false,
"min_heating_set_point_fahrenheit": 45,
"max_heating_set_point_fahrenheit": 79,
"min_cooling_set_point_fahrenheit": 65,
"max_cooling_set_point_fahrenheit": 92,
"min_heating_cooling_delta_fahrenheit": 5
},
"location": null,
"connected_account_id": "aaf37f42-f5a1-4223-a7db-2b61700bf2a9",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"created_at": "2024-02-29T21:24:29.792Z",
"errors": [],
"warnings": [],
"is_managed": true,
"custom_metadata": {}
}...]

Retrieving Individual Thermostats

To retrieve a specific thermostat, include the desired device_id in the Get Thermostat or Get Device request.
Python
cURL (bash)
JavaScript
PHP
C#
Java
Go
Request:
device_id = "518f692b-f865-4590-8c3e-3849e9984c75"
thermostat = seam.thermostats.get(device_id)
​
pprint(thermostat)
Response:
Device(
device_id='518f692b-f865-4590-8c3e-3849e9984c75',
device_type='ecobee_thermostat',
location=None,
properties={
'available_hvac_mode_settings': ['off', 'cool', 'heat', 'heat_cool'],
'can_enable_automatic_cooling': True,
'can_enable_automatic_heating': True,
'current_climate_setting': {
'automatic_cooling_enabled': True,
'automatic_heating_enabled': True,
'cooling_set_point_celsius': 25,
'cooling_set_point_fahrenheit': 77,
'heating_set_point_celsius': 20,
'heating_set_point_fahrenheit': 68,
'hvac_mode_setting': 'heat_cool',
'manual_override_allowed': True
},
'default_climate_setting': {
'automatic_cooling_enabled': True,
'automatic_heating_enabled': True,
'cooling_set_point_celsius': 25,
'cooling_set_point_fahrenheit': 77,
'heating_set_point_celsius': 20,
'heating_set_point_fahrenheit': 68,
'hvac_mode_setting': 'heat_cool',
'manual_override_allowed': True
},
'ecobee_metadata': {
'device_name': 'Thermostat 1',
'ecobee_device_id': 'a64074f3-a0aa-4dbb-bbd3-f17f61701602'
},
'fan_mode_setting': 'auto',
'has_direct_power': True,
'image_alt_text': 'Ecobee 3 Lite Thermostat',
'image_url': 'https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png',
'is_climate_setting_schedule_active': False,
'is_cooling': False,
'is_cooling_available': True,
'is_fan_running': False,
'is_heating': False,
'is_heating_available': True,
'is_temporary_manual_override_active': False,
'manufacturer': 'ecobee',
'max_cooling_set_point_celsius': 33.333333333333336,
'max_cooling_set_point_fahrenheit': 92,
'max_heating_set_point_celsius': 26.11111111111111,
'max_heating_set_point_fahrenheit': 79,
'min_cooling_set_point_celsius': 18.333333333333336,
'min_cooling_set_point_fahrenheit': 65,
'min_heating_cooling_delta_celsius': 2.7777777777777777,
'min_heating_cooling_delta_fahrenheit': 5,
'min_heating_set_point_celsius': 7.222222222222222,
'min_heating_set_point_fahrenheit': 45,
'model': {
'accessory_keypad_supported': False,
'display_name': 'Thermostat',
'manufacturer_display_name': 'Ecobee',
'offline_access_codes_supported': False,
'online_access_codes_supported': True
},
'name': 'Thermostat 1',
'online': True,
'relative_humidity': 0.36,
'temperature_celsius': 21.11111111111111,
'temperature_fahrenheit': 70
},
capabilities_supported=['thermostat'],
errors=[],
warnings=[],
connected_account_id='2c00bc71-bca5-42c2-a1c5-74fd93ffcba1',
workspace_id='398d80b7-3f96-47c2-b85a-6f8ba21d07be',
created_at='2023-10-30T10:36:18.387Z',
is_managed=True
)
​
Request:
# Use GET or POST.
curl -X 'GET' \
'https://connect.getseam.com/thermostats/get' \
-H 'accept: application/json' \
-H 'Authorization: Bearer ${API_KEY}' \
-H 'Content-Type: application/json' \
-d '{
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75"
}'
Response:
{
"thermostat": {
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"is_cooling": false,
"is_heating": false,
"manufacturer": "ecobee",
"is_fan_running": false,
"ecobee_metadata": {
"device_name": "Thermostat 1",
"ecobee_device_id": "a64074f3-a0aa-4dbb-bbd3-f17f61701602"
},
"fan_mode_setting": "auto",
"has_direct_power": true,
"relative_humidity": 0.36,
"temperature_celsius": 21.11111111111111,
"is_cooling_available": true,
"is_heating_available": true,
"temperature_fahrenheit": 70,
"current_climate_setting": {
"hvac_mode_setting": "heat_cool",
"manual_override_allowed": true,
"automatic_cooling_enabled": true,
"automatic_heating_enabled": true,
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20,
"cooling_set_point_fahrenheit": 77,
"heating_set_point_fahrenheit": 68
},
"default_climate_setting": {
"hvac_mode_setting": "heat_cool",
"manual_override_allowed": true,
"automatic_cooling_enabled": true,
"automatic_heating_enabled": true,
"cooling_set_point_celsius": 25,
"heating_set_point_celsius": 20,
"cooling_set_point_fahrenheit": 77,
"heating_set_point_fahrenheit": 68
},
"available_hvac_mode_settings": [
"off",
"cool",
"heat",
"heat_cool"
],
"can_enable_automatic_cooling": true,
"can_enable_automatic_heating": true,
"max_cooling_set_point_celsius": 33.333333333333336,
"max_heating_set_point_celsius": 26.11111111111111,
"min_cooling_set_point_celsius": 18.333333333333336,
"min_heating_set_point_celsius": 7.222222222222222,
"min_heating_cooling_delta_celsius": 2.7777777777777777,
"is_temporary_manual_override_active": false,
"name": "Thermostat 1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false
},
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"is_climate_setting_schedule_active": false,
"min_heating_set_point_fahrenheit": 45,
"max_heating_set_point_fahrenheit": 79,
"min_cooling_set_point_fahrenheit": 65,
"max_cooling_set_point_fahrenheit": 92,
"min_heating_cooling_delta_fahrenheit": 5
},
"location": null,
"connected_account_id": "2c00bc71-bca5-42c2-a1c5-74fd93ffcba1",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"created_at": "2023-10-30T10:36:18.387Z",
"errors": [],
"warnings": [],
"is_managed": true
},
"ok": true
}
Request:
console.log(await seam.thermostats.get({
device_id: "518f692b-f865-4590-8c3e-3849e9984c75"
}))
Response:
{
device_id: '518f692b-f865-4590-8c3e-3849e9984c75',
device_type: 'ecobee_thermostat',
capabilities_supported: [ 'thermostat' ],
properties: {
online: true,
is_cooling: false,
is_heating: false,
manufacturer: 'ecobee',
is_fan_running: false,
ecobee_metadata: {
device_name: 'Thermostat 1',
ecobee_device_id: 'a64074f3-a0aa-4dbb-bbd3-f17f61701602'
},
fan_mode_setting: 'auto',
has_direct_power: true,
relative_humidity: 0.36,
temperature_celsius: 21.11111111111111,
is_cooling_available: true,
is_heating_available: true,
temperature_fahrenheit: 70,
current_climate_setting: {
hvac_mode_setting: 'heat_cool',
manual_override_allowed: true,
automatic_cooling_enabled: true,
automatic_heating_enabled: true,
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
cooling_set_point_fahrenheit: 77,
heating_set_point_fahrenheit: 68
},
default_climate_setting: {
hvac_mode_setting: 'heat_cool',
manual_override_allowed: true,
automatic_cooling_enabled: true,
automatic_heating_enabled: true,
cooling_set_point_celsius: 25,
heating_set_point_celsius: 20,
cooling_set_point_fahrenheit: 77,
heating_set_point_fahrenheit: 68
},
available_hvac_mode_settings: [ 'off', 'cool', 'heat', 'heat_cool' ],
can_enable_automatic_cooling: true,
can_enable_automatic_heating: true,
max_cooling_set_point_celsius: 33.333333333333336,
max_heating_set_point_celsius: 26.11111111111111,
min_cooling_set_point_celsius: 18.333333333333336,
min_heating_set_point_celsius: 7.222222222222222,
min_heating_cooling_delta_celsius: 2.7777777777777777,
is_temporary_manual_override_active: false,
name: 'Thermostat 1',
model: {
display_name: 'Thermostat',
manufacturer_display_name: 'Ecobee',
accessory_keypad_supported: false
},
image_url: 'https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png',
image_alt_text: 'Ecobee 3 Lite Thermostat',
is_climate_setting_schedule_active: false,
min_heating_set_point_fahrenheit: 45,
max_heating_set_point_fahrenheit: 79,
min_cooling_set_point_fahrenheit: 65,
max_cooling_set_point_fahrenheit: 92,
min_heating_cooling_delta_fahrenheit: 5
},
location: null,
connected_account_id: '2c00bc71-bca5-42c2-a1c5-74fd93ffcba1',
workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
created_at: '2023-10-30T10:36:18.387Z',
errors: [],
warnings: [],
is_managed: true
}
Request:
$thermostat = $seam->thermostats->get(
device_id: "5ce2cd35-09b1-458c-bb08-51ee83c35be7"
);
echo json_encode($thermostat, JSON_PRETTY_PRINT);
Response:
{
"device_id": "5ce2cd35-09b1-458c-bb08-51ee83c35be7",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"name": "Thermostat_1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"offline_access_codes_supported": null,
"online_access_codes_supported": null,
"accessory_keypad_supported": false
},
"has_direct_power": true,
"battery_level": null,
"battery": null,
"manufacturer": "ecobee",
"image_url": "https:\/\/connect.getseam.com\/assets\/images\/devices\/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"serial_number": null,
...
"ecobee_metadata": {
"ecobee_device_id": "c44f7f6a-97c6-4317-99a1-dae14fe20bb5",
"device_name": "Thermostat_1"
},
...
"temperature_fahrenheit": 70,
"temperature_celsius": 21.11111111111111,
"relative_humidity": 0.36,
"can_enable_automatic_heating": true,
"can_enable_automatic_cooling": true,
"available_hvac_mode_settings": [
"off",
"cool",
"heat",
"heat_cool"
],
"is_heating_available": true,
"is_cooling_available": true,
"is_heating": false,
"is_cooling": false,
"is_fan_running": false,
"fan_mode_setting": "auto",
"is_temporary_manual_override_active": false,
"current_climate_setting": {
"automatic_heating_enabled": true,
"automatic_cooling_enabled": true,
"hvac_mode_setting": "heat_cool",
"cooling_set_point_celsius": 23.88888888888889,
"heating_set_point_celsius": 18.333333333333336,
"cooling_set_point_fahrenheit": 75,
"heating_set_point_fahrenheit": 65,
"manual_override_allowed": true
},
"default_climate_setting": null,
"is_climate_setting_schedule_active": false,
"active_climate_setting_schedule": null,
"min_cooling_set_point_celsius": 18.333333333333336,
"min_cooling_set_point_fahrenheit": 65,
"max_cooling_set_point_celsius": 33.333333333333336,
"max_cooling_set_point_fahrenheit": 92,
"min_heating_set_point_celsius": 7.222222222222222,
"min_heating_set_point_fahrenheit": 45,
"max_heating_set_point_celsius": 26.11111111111111,
"max_heating_set_point_fahrenheit": 79,
"min_heating_cooling_delta_celsius": 2.7777777777777777,
"min_heating_cooling_delta_fahrenheit": 5,
"assa_abloy_credential_service_metadata": null
},
"location": null,
"connected_account_id": "aaf37f42-f5a1-4223-a7db-2b61700bf2a9",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"errors": [],
"warnings": [],
"created_at": "2024-02-29T21:24:29.792Z",
"is_managed": true,
"custom_metadata": {}
}
Request:
Device thermostat = seam.Thermostats.Get(deviceId: "518f692b-f865-4590-8c3e-3849e9984c75");
Console.WriteLine(thermostat);
Response:
{
"device_id": "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type": "ecobee_thermostat",
"capabilities_supported": [
"thermostat"
],
"properties": {
"online": true,
"name": "Thermostat 1",
"model": {
"display_name": "Thermostat",
"manufacturer_display_name": "Ecobee",
"accessory_keypad_supported": false
},
"has_direct_power": true,
"manufacturer": "ecobee",
"image_url": "https://connect.getseam.com/assets/images/devices/ecobee_3-lite_front.png",
"image_alt_text": "Ecobee 3 Lite Thermostat",
"ecobee_metadata": {
"ecobee_device_id": "a64074f3-a0aa-4dbb-bbd3-f17f61701602",
"device_name": "Thermostat 1"
}
},
"connected_account_id": "2c00bc71-bca5-42c2-a1c5-74fd93ffcba1",
"workspace_id": "398d80b7-3f96-47c2-b85a-6f8ba21d07be",
"errors": [],
"warnings": [],
"created_at": "2023-10-30T10:36:18.387Z",
"is_managed": true
}
Request:
Device thermostat = seam.thermostats().get(ThermostatsGetRequest.builder()
.deviceId("518f692b-f865-4590-8c3e-3849e9984c75")
.build());
System.out.println(thermostat);
Response:
{
"device_id" : "518f692b-f865-4590-8c3e-3849e9984c75",
"device_type" : "ecobee_thermostat",
"capabilities_supported" : [ "thermostat" ],
"properties" : {
"online" : true,
"name" : "Thermostat 1",
"model" : {
"display_name" : "Thermostat",
"online_access_codes_supported" : true,
"accessory_keypad_supported" : false,
"manufacturer_display_name" : "Ecobee"
},
"current_climate_setting" : {
"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
},
"temperature_celsius" : 21.11111111111111,
"min_heating_set_point_celsius" : 7.222222222222222,
"max_cooling_set_point_fahrenheit"