Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Spring Social Ecobee Build Status Join%20Chat

Welcome to Spring Social Ecobee, the library that lets you talk to your Smart Thermostat from Ecobee.

Spring Social Ecobee is a community project and NOT officially supported by the Spring Social team. This should be clear given the project is under the domain com.greglturnquist.

Getting Started

You can get started real fast:

  1. Clone this project

  2. mvn package

  3. cd spring-social-ecobee-sample

  4. ECOBEE_APIKEY=your-ecobee-app-key mvn spring-boot:run

  5. Surf to localhost:8080

This small Spring Boot application will fire up and let the user login and register with their Ecobee thermostat, then give you a tour of the basics.

Want to use the code in your own project? Spring Social Ecobee releases (i.e. releases, release candidates, and milestones) are published to Maven Central.

For maven, add this to your pom.xml file:


For gradle, add this to your build.gradle file:

dependencies {

With this in place, you need to configure an EcobeeConnectionFactory:

public EcobeeConnectionFactory ecobeeConnectionFactory(ConnectionFactoryRegistry registry, Environment env) {
	final EcobeeConnectionFactory ecobeeConnectionFactory = new EcobeeConnectionFactory(env.getProperty("ecobee.apiKey"));
	return ecobeeConnectionFactory;

This fragment leans on Spring Framework’s Environment class along with Spring Boot’s relaxed bindings to fetch ecobee.apiKey. It will then create an EcobeeTemplate which you can fetch by auto-wiring. From there, you can explore it’s features.

Checkout the showcase application for more details.

Working with snapshots

As you can see from the badges at the top, this project integrates with Travis for continuous integration. On top of that, all commits to master get deployed as snapshots to Sonatype OSS. Snapshots aren’t synced to Maven Central, so if you wish to use a snapshot release in your build, you need to add some extra bits.

Below are some configuration options. If your tool isn’t found, you will have to look it up and use the repo listed above.


For maven, the simplest option is to add this to your pom.xml file:

		<name>Sonatype OSS Snapshots</name>

With maven, it’s possible to put repository settings inside profiles, etc. That isn’t covered here.


For gradle, the simplest option is to add this to your build.gradle file:

repositories {
	maven { url "" }

This is nowhere near exhaustive. Gradle has a plethora of options.


Spring Social Ecobee is released under version 2.0 of the Apache License


Spring Social extension to talk to an Ecobee thermostat



No packages published
You can’t perform that action at this time.