Skip to main content

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


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)

Uploaded Source

Built Distribution

esi_controls-0.0.1-py3-none-any.whl (3.5 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