Skip to main content

Python API for talking to the Honeywell Lyric™ Thermostat

Project description

Installation

Using pip

# Install package from PyPi $ pip install python-lyric

Get a client_id and client_secret from https://developer.honeywell.com

Use it in your script:

import lyric

lapi = lyric.Lyric(client_id=client_id, client_secret=client_secret,

token_cache_file=token_cache_file, redirect_uri=redirect_uri, app_name=app_name)

for location in lapi.locations:

print (‘id: %s’ % location.id) print (‘name: %s’ % location.name) print (‘city: %s’ % location.city)

for user in location.users:

print (‘id: %s’ % user.id) print (‘name: %s’ % user.name) print (‘firstname: %s’ % user.firstname) print (‘lastname: %s’ % user.lastname)

for thermostat in location.thermostats:

print (‘id: %s’ % thermostat.id) print (‘name: %s’ % thermostat.name) thermostat.temperatureSetpoint = 20

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-lyric-1.1.4.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

python_lyric-1.1.4-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page