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
File details
Details for the file python-lyric-1.1.4.tar.gz
.
File metadata
- Download URL: python-lyric-1.1.4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6a0b35a0762e01e56a700f435cf713e7dbd47359df3d0a163baf48a587c8ba |
|
MD5 | 447268d461fe3948b9c41a72349c4103 |
|
BLAKE2b-256 | 1dfd589215c249435de63e37a606f96d8d04a6e821f58f33b7ccaf824f00884b |
Provenance
File details
Details for the file python_lyric-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: python_lyric-1.1.4-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a9211d2b2d100f327ebda8763235bc8c9eaa5daf8c839acda20dd26570b0cc |
|
MD5 | 76024ed252f77deed5a422229312d48d |
|
BLAKE2b-256 | b8a514fe875e0759a97a9d046bed3caabe5c7d94b79040599b5350165a3b2717 |