Skip to main content

API Wrapper for Lennox S30 Cloud API

Project description

PyPI - lennoxs30api

API Wrapper for www.lennoxicomfort.com

By Pete Sage ()

Note: I'm working on a major refactor of this module and a push to PyPI.

This asyncio module connects to the Lennox Cloud API to retrieve data from S30 / E30 thermostats. This API does not work for older models that use a different API. Those models are supported by this project: https://github.com/thevoltagesource/myicomfort

Prerequistes:

  1. Python version 3.8.6 or later

  2. A Lennox sign-on (email address and password)

  3. You may need to install aiohttp https://docs.aiohttp.org/en/stable/

Install Instructions:

  1. Grab the repo

  2. Edit the test_async.py program to supply the following

    LOG_PATH = '/home/pete/lennoxs30api' # Directoy to stash the log file in

    EMAIL_ADDRESS = 'myemail@myemail.com'

    PASSWORD = 'mypassword'

Command Line Program Instructions:

The command line program uses asyncio and runs 3 different tasks

  • Task 1 (runner) - this task connects to the cloud API and periodically polls it at a 10 second interval

  • Task 2 (poller) - this task runs on a 15 second interval and prints out information from all active Zones

  • Task 3 (prompt) - this task reads from the command line and executes commands on behalf of the user to enabling API testing. Cmd List

      cool, heat, off - sets the HVAC mode to cool, heat or off.  usage - just type the word followed by enter eg cool
    
      auto, on, circulate - sets the Fan mocde to auto, on, or ciruclate
    
      csp <TempF> - sets the cool setpoint in F.  example  csp 76
    
      hsp <TempF> - sets the heat setpoint in F.  example hsp 65
    

To exit the program hit crtl-c

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

lennoxs30api-0.0.5.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lennoxs30api-0.0.5-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file lennoxs30api-0.0.5.tar.gz.

File metadata

  • Download URL: lennoxs30api-0.0.5.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for lennoxs30api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a31d7339ceffb9c8f7d030b8038f56c5247607730dd55fb15f8c00712c135371
MD5 37a49d6d520f58f611410aa581d3408e
BLAKE2b-256 4ef3f3da8eeccf2e389e789580f232e39293f749233061e05ad0197cc1d988c5

See more details on using hashes here.

File details

Details for the file lennoxs30api-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: lennoxs30api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6

File hashes

Hashes for lennoxs30api-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dd2ad7a19d408683ca1aa0736055c04526a672048fe62541f8fe7fec701c9488
MD5 74320cd8928acab19d895eab1e7c704d
BLAKE2b-256 7c52c8b1fd764993212f4f05e0faeea81e5e00b9bc08199b0558b7df1ba44059

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page