Skip to main content
Use Seam to connect a Cielo account, list its devices as thermostats, set a device’s HVAC mode and set point, and schedule climate presets. Each Cielo device reports its own capabilities, and only Cielo Smart Thermostats support heat_cool. Check the Cielo-specific restrictions before you build.
The Cielo integration is in beta. To enable it for your workspaces, contact Seam support.
For real devices, complete the Cielo setup guide first. Create a Seam account and get an API key to try virtual Cielo thermostats 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 spec. First, install a Seam SDK, as follows:
Next, go to https://console.seam.co/ and sign up for Seam to get your API key. Then, export your API key as an environment variable.
This guide uses a sandbox workspace. You can only connect virtual devices and systems in this type of workspace. If you want to connect a real Cielo device, use a non-sandbox workspace and API key.

To control your Cielo devices using the Seam API, you must first authorize your Seam workspace to connect to your Cielo account. If your application needs to connect to your users’ Cielo accounts, Seam provides fully-embedded, customizable client-side Connect Webviews to collect their authorization securely. Cielo connects through an API key instead of a password. Your user creates the key at home.cielowigle.com and pastes it into the Connect Webview. For the steps your users follow, see the Cielo setup guide.
This guide shows you how to create a Connect Webview programmatically using the Seam API.The Seam Console provides another easy way to connect devices to your Seam workspace.Go to https://console.seam.co/. On the Devices page, click + Add Devices. Then, see 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:
Output:

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 within our suite of Seam Components that help you build your device management flow.
Because you’re using a sandbox workspace, you connect Seam’s test Cielo account. We provide virtual devices 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, paste the Cielo sandbox API key, 1234.
  2. Click Submit.
Confirm that authorization through the Connect Webview was successful by querying its status. Code:
Output:

Step 3: Retrieve Cielo thermostat devices

When you link a Cielo account with Seam, we create a device object for each Cielo device in the account that heats or cools. Devices that control a fan-only unit don’t appear. You can retrieve these devices using the List Devices and Get Device endpoints. The device’s device_type is cielo_thermostat, and properties.cielo_metadata identifies the Cielo device by its name and MAC address. The device also reports the room’s temperature and humidity, its current climate setting, its supported HVAC modes, and its set point range. Code:
Output:

Step 4: Control your Cielo thermostat

Each device that you connect to Seam has a specific set of capabilities. Capability flags tell your application what each device supports. For Cielo, check can_hvac_heat, can_hvac_cool, and can_hvac_heat_cool before you send a command. Most Breez devices support heat, cool, and off, and a Cielo Smart Thermostat also supports heat_cool. Try out the following actions on your Cielo device:

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/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. The set point must be within the device’s range, such as min_heating_set_point_celsius and max_heating_set_point_celsius. In this example, set the Living Room Mini Split to heat with a heating set point of 21 °C. Each of these HVAC mode endpoints returns an action attempt to track the progress of the operation. Code:
Output:
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.

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_celsius show what Cielo reports for the device. properties.temperature_celsius is the room’s measured temperature, not the set point. Code:
Output:
If the reported settings don’t match yet, Seam may not have read the device since the change. Seam reads each Cielo account every 5 minutes. Get the device again after a short wait, or listen for thermostat events instead of retrying the command. For a Breez device, the reported setting is the last one sent to the air conditioner. For details, see Settings on Breez Devices Are Sent, Not Confirmed. If you test a real device, record its original mode and set point and restore them after the test. Changing the set point also leaves any active Cielo preset.

Create and schedule climate presets

You can use the Seam API to create climate presets for Cielo devices. 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. Because Seam doesn’t support fan modes for Cielo, leave out fan_mode_setting when you create a Cielo climate preset. In this example, create comfort and eco presets for the Living Room Mini Split, set eco as the fallback, and schedule the comfort preset for a guest’s stay. Code:
For more about presets and schedules, see Creating and Managing Climate Presets and Creating and Managing Thermostat Schedules.

Step 5: Connect a real Cielo device

Now that you have learned the basics of using the Seam API, you can connect and control a real Cielo device. To do so, switch to a non-sandbox workspace and API key. For the steps your users follow to create a Cielo API key and connect it, see the Cielo setup guide.

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 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 Cielo devices, you can learn more about what you can do with the Seam API.
If you have any questions or want to report an issue, email us at support@seam.co.

seam-api-key

Get an API Key (free)

Sign up for the Seam Console and get your API keys. →
seam-contact-us-light

Contact Sales

Got a project or a specific question? Contact our team to get answers. →