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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file python-lyric-1.1.4.tar.gz.

File metadata

File hashes

Hashes for python-lyric-1.1.4.tar.gz
Algorithm Hash digest
SHA256 9d6a0b35a0762e01e56a700f435cf713e7dbd47359df3d0a163baf48a587c8ba
MD5 447268d461fe3948b9c41a72349c4103
BLAKE2b-256 1dfd589215c249435de63e37a606f96d8d04a6e821f58f33b7ccaf824f00884b

See more details on using hashes here.

Provenance

File details

Details for the file python_lyric-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_lyric-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a9211d2b2d100f327ebda8763235bc8c9eaa5daf8c839acda20dd26570b0cc
MD5 76024ed252f77deed5a422229312d48d
BLAKE2b-256 b8a514fe875e0759a97a9d046bed3caabe5c7d94b79040599b5350165a3b2717

See more details on using hashes here.

Provenance

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