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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_lyric-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a9211d2b2d100f327ebda8763235bc8c9eaa5daf8c839acda20dd26570b0cc |
|
MD5 | 76024ed252f77deed5a422229312d48d |
|
BLAKE2b-256 | b8a514fe875e0759a97a9d046bed3caabe5c7d94b79040599b5350165a3b2717 |