Python API client to the ESI Controls API for monitoring and controlling your thermostat.
Project description
pyesi
Introduction
Python API client to the ESI Controls API for monitoring and controlling your thermostat.
Usage
Authenticate
You need to log in and authenticate the client.
from esi_controls import *
client = Esi()
user = client.login()
client.authenticate(user.token, user.user_id)
Get device list
You can discover all of your devices
devices = client.get_device_list()
for device in devices:
print(
f"Name: {device.name}, Temp: {device.inside_temperature} ({device.current_temperature})")
Set thermostat
You can update the current temperature
client.set_thermostat(device.id, "180")
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
esi-controls-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for esi_controls-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d4a2b14808714cee482310fbb9bc34d4230f79f4c7e87e5f6eee7db5ad324b |
|
MD5 | 67572ad138c5b7378586a5844fcf09a8 |
|
BLAKE2b-256 | f01764ffedc0926d24f09d6c0109d5968b7476def1a80a310d9ed418092022e4 |