Skip to content

chicago6061/python-ecobee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecobee

This is a simple library to talk to an Ecobee thermostat.

Usage

>>> import ecobee

>>> eapi = ecobee.Client(APIKEY, [THERMOSTAT_ID])
>>> eapi.update()

>>> t = eapi.get_thermostat(THERMOSTAT_ID)
>>> t.settings.get('hvacMode')
'heat'

>>> s = t.get_sensor('ei:0')
>>> print('{}: {}°F'.format(s.name, s.temperature))
Main Floor: 70.3°F

Event loop

You will probably want to use some kind of event loop where you call eapi.poll() (this method is referenced inside Thermostat and Sensor) on a regular basis, though the data is only updated every three minutes, so there's no need to do this often.

When poll() returns a thermostat ID, then you would all update() to refresh the data about that thermostat.

Implementation is of course up to the reader.

Reference material

Ecobee has lots of great documentation here: https://www.ecobee.com/home/developer/api/documentation/v1/index.shtml

About

Basic Python client for Ecobee thermostats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%