Get Started with Honeywell Resideo Thermostats Learn how to connect and control your Honeywell Resideo devices with the Seam API.
Overview
Seam provides a universal API to connect and control many brands of devices such as smart locks, thermostats, and sensors. This guide provides a rapid introduction to connecting and controlling your Honeywell Resideo thermostats using the Seam API. To learn more about other brands of devices supported by Seam, head over to our integration page .
1. Install Seam SDK
Seam provides client libraries for many languages, such as JavaScript, Python, Ruby, PHP, and others, as well as a Postman collection and OpenAPI spec.
JavaScript Python Ruby PHP Java C# Go
Copy pip install seam
# For some development environments, use pip3 in this command instead of pip.
Copy composer require seamapi/seam
Gradle:
Copy // build.gradle
dependencies {
implementation 'io.github.seamapi:java:0.x.x'
}
Maven:
Copy <!-- pom.xml -->
< dependency >
< groupId >io.github.seamapi</ groupId >
< artifactId >java</ artifactId >
< version >0.x.x</ version >
</ dependency >
Copy go get github.com/seamapi/go
Once installed, sign-up for Seam to get your API key and export it as an environment variable:
Copy $ export SEAM_API_KEY=seam_test2ZTo_0mEYQW2TvNDCxG5Atpj85Ffw
This guide uses a sandbox workspace. You can only connect virtual thermostats to a sandbox workspace. If you need to connect a real Honeywell device, use a non-sandbox workspace and API key.
2. Link Honeywell Resideo Account with Seam
To control your Honeywell Resideo device using the Seam API, you must first authorize your Seam workspace against your Honeywell Resideo account. To do so, Seam provides Connect Webviews : pre-built UX flows that walk you through authorizing your application to control your Honeywell Resideo device.
Create a Connect Webview
Python JavaScript PHP Java Go
Copy from seam import Seam
seam = Seam ()
webview = seam . connect_webviews . create (accepted_providers = [ "honeywell_resideo" ])
assert webview . login_successful is False
# Send the Connect Webview URL to your user.
print (webview.url)
Copy import { Seam } from 'seam'
const seam = new Seam ()
const connectWebview = await seam . connectWebviews .create ({
accepted_providers : [ "honeywell_resideo" ] ,
})
console .log ( connectWebview .login_successful) // false
// Send the Connect Webview URL to your user.
console .log ( connectWebview .url)
Copy use Seam \ SeamClient ;
$seam = new SeamClient ( "YOUR_API_KEY" );
$webview = $seam -> connect_webviews -> create (
accepted_providers : [ "honeywell_resideo" ]
) ;
# Send this Connect Webview URL to your user.
echo json_encode ( $webview )
Copy ConnectWebview createdConnectWebview = seam . connectWebviews () . create ( ConnectWebviewsCreateRequest . builder ()
. acceptedProviders ( List . of (
AcceptedProvider . HONEYWELL_RESIDEO ))
. build ());
System . out . println ( createdConnectWebview . getLoginSuccessful ()); // false
// Send the Connect Webview URL to your user.
System . out . println ( createdConnectWebview . getUrl ());
Copy connectWebview, err := client.ConnectWebviews.Create(
context.Background(),
& api . ConnectWebviewsCreateRequest {
AcceptedProviders: [] api . AcceptedProvider {
api.AcceptedProviderHoneywellResideo,
},
},
)
if err != nil {
return err
}
fmt.Println(connectWebview.LoginSuccessful) // false
# Send the Connect Webview URL to your user.
fmt.Println(connectWebview.Url)
return nil
Authorize Your Workspace
Navigate to the URL that the Connect Webview object returns. Because you are using a sandbox workspace, complete the login flow by entering the following Honeywell Resideo sandbox test account credentials:
Get the New Connect Webview
After you complete the authorization login, you receive an event for connected_account.created
if you set up a webhook handler . Otherwise, you can poll for the Connect Webview until the status of this Connect Webview changes, as follows:
Python JavaScript PHP Java Go
Copy updated_webview = seam . connect_webviews . get (
webview.connect_webview_id
)
assert updated_webview . login_successful # true
Copy const updatedWebview = await seam . connectWebviews .get (
connectWebview .connect_webview_id ,
)
console .log ( updatedWebview .login_successful) // true
Copy $webview = $seam -> connect_webviews -> get ( $webview -> id ) ;
echo json_encode ( $webview ) ;
Copy ConnectWebview updatedConnectWebview = seam . connectWebviews () . get ( ConnectWebviewsGetRequest . builder ()
. connectWebviewId ( createdConnectWebview . getConnectWebviewId ())
. build ());
System . out . println ( updatedConnectWebview . getLoginSuccessful ()); // true
Copy updatedConnectWebview, err := client.ConnectWebviews.Get(
context.Background(),
& api . ConnectWebviewsGetRequest {
ConnectWebviewId: connectWebview.ConnectWebviewId,
},
)
if err != nil {
return err
}
fmt.Println(updatedConnectWebview.LoginSuccessful) // true
return nil
3. Retrieve your Honeywell Resideo Thermostat
Honeywell Resideo thermostats appear with the device_type
"honeywell_resideo_thermostat"
.
Python JavaScript PHP Java Go
Copy devices = seam . devices . list (device_type = "honeywell_resideo_thermostat" )
pprint (devices[ 0 ])
# Device(device_id='06a561b6-09d2-401c-a25f-ddb1e1efd59e',
# device_type='honeywell_resideo_thermostat',
# location=None,
# properties={'available_hvac_mode_settings': ['off',
# 'cool',
# 'heat',
# 'heat_cool'],
# 'current_climate_setting': {
# 'heating_set_point_celsius': 16.666666666666668,
# 'heating_set_point_fahrenheit': 62,
# 'hvac_mode_setting': 'heat',
# 'manual_override_allowed': True},
# 'fan_mode_setting': 'on',
# 'has_direct_power': True,
# 'honeywell_resideo_metadata': {'device_name': 'T61',
# 'honeywell_resideo_device_id': 'c47711ec-4e8e-4785-ad3b-7a7e3f81e2b5'},
# 'image_alt_text': 'Placeholder Lock Image',
# 'image_url': 'https://connect.getseam.com/assets/images/devices/unknown-lock.png',
# 'is_climate_setting_schedule_active': False,
# 'is_cooling': False,
# 'is_fan_running': True,
# 'is_heating': True,
# 'is_temporary_manual_override_active': False,
# 'manufacturer': 'honeywell_resideo',
# 'max_cooling_set_point_celsius': 32.22222222222222,
# 'max_cooling_set_point_fahrenheit': 90,
# 'max_heating_set_point_celsius': 32.22222222222222,
# 'max_heating_set_point_fahrenheit': 90,
# 'min_cooling_set_point_celsius': 10,
# 'min_cooling_set_point_fahrenheit': 50,
# 'min_heating_cooling_delta_celsius': -17.77777777777778,
# 'min_heating_cooling_delta_fahrenheit': -32,
# 'min_heating_set_point_celsius': 10,
# 'min_heating_set_point_fahrenheit': 50,
# 'model': {'accessory_keypad_supported': False,
# 'display_name': 'Thermostat',
# 'manufacturer_display_name': 'Honeywell Resideo'},
# 'name': 'T61',
# 'online': True,
# 'temperature_celsius': 24.444444444444446,
# 'temperature_fahrenheit': 76},
# capabilities_supported=['thermostat'],
# errors=[],
# warnings=[],
# connected_account_id='4f43e060-298f-4614-9791-dc492d629063',
# workspace_id='398d80b7-3f96-47c2-b85a-6f8ba21d07be',
# created_at='2024-02-29T19:44:40.762Z',
# is_managed=True)
Copy const devices = await seam . devices .list ({
device_type : 'honeywell_resideo_thermostat' ,
})
console .log (devices[ 0 ])
/*
{
device_id: '06a561b6-09d2-401c-a25f-ddb1e1efd59e',
device_type: 'honeywell_resideo_thermostat',
capabilities_supported: [ 'thermostat' ],
properties: {
online: true,
is_cooling: false,
is_heating: true,
manufacturer: 'honeywell_resideo',
is_fan_running: true,
fan_mode_setting: 'on',
has_direct_power: true,
honeywell_resideo_metadata: {
device_name: 'T61',
honeywell_resideo_device_id: 'c47711ec-4e8e-4785-ad3b-7a7e3f81e2b5'
},
temperature_celsius: 24.444444444444446,
temperature_fahrenheit: 76,
current_climate_setting: {
hvac_mode_setting: 'heat',
manual_override_allowed: true,
heating_set_point_celsius: 16.666666666666668,
heating_set_point_fahrenheit: 62
},
available_hvac_mode_settings: [ 'off', 'cool', 'heat', 'heat_cool' ],
max_cooling_set_point_celsius: 32.22222222222222,
max_heating_set_point_celsius: 32.22222222222222,
min_cooling_set_point_celsius: 10,
min_heating_set_point_celsius: 10,
min_heating_cooling_delta_celsius: -17.77777777777778,
is_temporary_manual_override_active: false,
name: 'T61',
model: {
display_name: 'Thermostat',
manufacturer_display_name: 'Honeywell Resideo',
accessory_keypad_supported: false
},
image_url: 'https://connect.getseam.com/assets/images/devices/unknown-lock.png',
image_alt_text: 'Placeholder Lock Image',
is_climate_setting_schedule_active: false,
min_heating_set_point_fahrenheit: 50,
max_heating_set_point_fahrenheit: 90,
min_cooling_set_point_fahrenheit: 50,
max_cooling_set_point_fahrenheit: 90,
min_heating_cooling_delta_fahrenheit: -32
},
location: null,
connected_account_id: '4f43e060-298f-4614-9791-dc492d629063',
workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
created_at: '2024-02-29T19:44:40.762Z',
errors: [],
warnings: [],
is_managed: true,
custom_metadata: {}
}
*/
Copy $devices = $seam -> devices -> list (
device_type : "honeywell_resideo_thermostat"
) ;
echo json_encode ( $devices[ 0 ] ), "\n" ;
// {"device_id":"06a561b6-09d2-401c-a25f-ddb1e1efd59e","device_type":"honeywell_resideo_thermostat","capabilities_supported":["thermostat"],"properties":{"online":true,"name":"T61","model":{"display_name":"Thermostat","manufacturer_display_name":"Honeywell Resideo",...}
Copy var devices = seam . devices () . list ( DevicesListRequest . builder ()
. deviceType ( DeviceType . HONEYWELL_RESIDEO_THERMOSTAT )
. build ());
System . out . println (devices);
// [{
// device_id: '06a561b6-09d2-401c-a25f-ddb1e1efd59e',
// device_type: 'honeywell_resideo_thermostat',
// capabilities_supported: [ 'thermostat' ],
// properties: {
// online: true,
// is_cooling: false,
// is_heating: true,
// manufacturer: 'honeywell_resideo',
// is_fan_running: true,
// fan_mode_setting: 'on',
// has_direct_power: true,
// honeywell_metadata: {
// device_name: 'T61',
// honeywell_device_id: 'c47711ec-4e8e-4785-ad3b-7a7e3f81e2b5'
// },
// temperature_celsius: 24.444444444444446,
// temperature_fahrenheit: 76,
// current_climate_setting: {
// hvac_mode_setting: 'heat',
// manual_override_allowed: true,
// heating_set_point_celsius: 16.666666666666668,
// heating_set_point_fahrenheit: 62
// },
// available_hvac_mode_settings: [ 'off', 'cool', 'heat', 'heat_cool' ],
// max_cooling_set_point_celsius: 32.22222222222222,
// max_heating_set_point_celsius: 32.22222222222222,
// min_cooling_set_point_celsius: 10,
// min_heating_set_point_celsius: 10,
// min_heating_cooling_delta_celsius: -17.77777777777778,
// is_temporary_manual_override_active: false,
// name: 'T61',
// model: {
// display_name: 'Thermostat',
// manufacturer_display_name: 'Honeywell Resideo',
// accessory_keypad_supported: false
// },
// image_url: 'https://connect.getseam.com/assets/images/devices/unknown-lock.png',
// image_alt_text: 'Placeholder Lock Image',
// is_climate_setting_schedule_active: false,
// min_heating_set_point_fahrenheit: 50,
// max_heating_set_point_fahrenheit: 90,
// min_cooling_set_point_fahrenheit: 50,
// max_cooling_set_point_fahrenheit: 90,
// min_heating_cooling_delta_fahrenheit: -32
// },
// location: null,
// connected_account_id: '4f43e060-298f-4614-9791-dc492d629063',
// workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
// created_at: '2024-02-29T19:44:40.762Z',
// errors: [],
// warnings: [],
// is_managed: true,
// custom_metadata: {}
// }]
Copy devices, err := client.Devices.List(
context.Background(), & api . DevicesListRequest {
DeviceType: api.DeviceTypeHoneywellResideoThermostat.Ptr(),
},
)
if err != nil {
return err
}
fmt.Println(devices)
return nil
// [{
// device_id: '06a561b6-09d2-401c-a25f-ddb1e1efd59e',
// device_type: 'honeywell_resideo_thermostat',
// capabilities_supported: [ 'thermostat' ],
// properties: {
// online: true,
// is_cooling: false,
// is_heating: true,
// manufacturer: 'honeywell_resideo',
// is_fan_running: true,
// fan_mode_setting: 'on',
// has_direct_power: true,
// honeywell_metadata: {
// device_name: 'T61',
// honeywell_device_id: 'c47711ec-4e8e-4785-ad3b-7a7e3f81e2b5'
// },
// temperature_celsius: 24.444444444444446,
// temperature_fahrenheit: 76,
// current_climate_setting: {
// hvac_mode_setting: 'heat',
// manual_override_allowed: true,
// heating_set_point_celsius: 16.666666666666668,
// heating_set_point_fahrenheit: 62
// },
// available_hvac_mode_settings: [ 'off', 'cool', 'heat', 'heat_cool' ],
// max_cooling_set_point_celsius: 32.22222222222222,
// max_heating_set_point_celsius: 32.22222222222222,
// min_cooling_set_point_celsius: 10,
// min_heating_set_point_celsius: 10,
// min_heating_cooling_delta_celsius: -17.77777777777778,
// is_temporary_manual_override_active: false,
// name: 'T61',
// model: {
// display_name: 'Thermostat',
// manufacturer_display_name: 'Honeywell Resideo',
// accessory_keypad_supported: false
// },
// image_url: 'https://connect.getseam.com/assets/images/devices/unknown-lock.png',
// image_alt_text: 'Placeholder Lock Image',
// is_climate_setting_schedule_active: false,
// min_heating_set_point_fahrenheit: 50,
// max_heating_set_point_fahrenheit: 90,
// min_cooling_set_point_fahrenheit: 50,
// max_cooling_set_point_fahrenheit: 90,
// min_heating_cooling_delta_fahrenheit: -32
// },
// location: null,
// connected_account_id: '4f43e060-298f-4614-9791-dc492d629063',
// workspace_id: '398d80b7-3f96-47c2-b85a-6f8ba21d07be',
// created_at: '2024-02-29T19:44:40.762Z',
// errors: [],
// warnings: [],
// is_managed: true,
// custom_metadata: {}
// }]
4. Set the Current HVAC and Fan Mode Settings
Seam enables you to adjust the current heating and cooling settings on a smart thermostat, including the HVAC mode and the corresponding set points . It also enables you to configure the fan mode . These two operations return action attempts .
For example, use the following code samples to set your thermostat to heat mode and the fan mode to on:
Python JavaScript PHP Java Go
Copy heat_request = seam . thermostats . heat (
device = "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
heating_set_point_celsius = 20
)
pprint (heat_request)
# ActionAttempt(action_attempt_id='97125745-15d9-4970-b5be-c34ec3ce1c81',
# action_type='SET_HEAT',
# status='success',
# result={},
# error=None)
fan_on_request = seam . thermostats . set_fan_mode (
device = "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
fan_mode = "on"
)
pprint (fan_on_request)
# ActionAttempt(action_attempt_id='9c9b584b-c645-4ce0-a9c2-79b6f1db2396',
# action_type='SET_FAN_MODE',
# status='success',
# result={},
# error=None)
Copy const heat_request = await seam . thermostats .heat ({
device_id : "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
heating_set_point_celsius : 20
})
console .log (heat_request)
// {
// actionAttempt: {
// status: 'success',
// action_attempt_id: '38c06dba-99b1-4c10-b542-f98e2963cb52',
// action_type: 'SET_HEAT',
// result: {},
// error: null
// }
// }
const fan_on_request = await seam . thermostats .setFanMode ({
device_id : "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
fan_mode_setting : "on"
})
console .log (fan_on_request)
// {
// actionAttempt: {
// status: 'success',
// action_attempt_id: 'fca8cb4f-6e0c-4c37-878b-ebe17df46456',
// action_type: 'SET_FAN_MODE',
// result: {},
// error: null
// }
// }
Copy $heat_request = $seam -> thermostats -> heat (
device_id : "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
heating_set_point_celsius : 20
) ;
$fan_on_request = $seam -> thermostats -> set_fan_mode (
device_id : "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
fan_mode_setting : "on"
) ;
Copy var deviceId = "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ;
seam . thermostats () . heat ( ThermostatsHeatRequest . builder ()
. deviceId (deviceId)
. heatingSetPointCelsius ( 20.0 )
. build ());
Device thermostat = seam . thermostats ()
. get ( ThermostatsGetRequest . builder ()
. deviceId (deviceId)
. build ());
System . out . println ( "Thermostat ID: " + thermostat . getDeviceId ());
System . out . println ( "Mode: " + thermostat . getProperties () . getCurrentClimateSetting () . get () . getHvacModeSetting ());
System . out . println ( "Heating set point (Celsius): " +
thermostat . getProperties () . getCurrentClimateSetting () . get () . getHeatingSetPointCelsius ());
// Thermostat ID: 06a561b6-09d2-401c-a25f-ddb1e1efd59e
// Mode: Optional[heat]
// Heating set point (Celsius): Optional[20.0]
Copy heat_request, uErr := client.Thermostats.Heat(context.Background(), & api . ThermostatsHeatRequest {
DeviceId: "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
HeatingSetPointCelsius: api.Float64( 20 ),
})
if uErr != nil {
return uErr
}
fmt.Println(heat_request)
// {
// "action_attempt": {
// "status": "pending",
// "action_type": "SET_HEAT",
// "action_attempt_id": "241e79cd-4bda-499f-8e2e-d7ae01d273cf",
// "result": null,
// "error": null
// },
// "ok": true
// }
fan_on_request, uErr := client.Thermostats.SetFanMode(context.Background(), & api . ThermostatsSetFanModeRequest {
DeviceId: "06a561b6-09d2-401c-a25f-ddb1e1efd59e" ,
FanMode: api.FanModeOn.Ptr(),
})
if uErr != nil {
return uErr
}
fmt.Println(fan_on_request)
return nil
// {
// "action_attempt": {
// "status": "pending",
// "action_type": "SET_FAN_MODE",
// "action_attempt_id": "1a6993af-4b00-4ca5-bacf-074164959878",
// "result": null,
// "error": null
// },
// "ok": true
// }
Next Steps
Now that you have completed this guide, you can try to connect a real Honeywell Resideo device. To do so, make sure to switch to a non-sandbox workspace and API key because you cannot connect real devices to sandbox workspaces.
If you have any questions or want to report an issue, email us at support@seam.co .