Skip to main content

API Wrapper for Lennox S30 Cloud and LAN API

Project description

PyPI - lennoxs30api

pip install lennoxs30api

API Wrapper for www.lennoxicomfort.com

By Pete Rager

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/

Sample program 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

Reporting Bugs

Please enabled debug logging when reporting bugs and provide sample code. Do not publicly post the debug logs as they contain Personally Identifiable Information that is part of the communication protocol. Your password IS NOT in the logs, but other information such as email, home address, etc., that is part of the lennox communications is.

Enhancements

Submit enhancement requests as issues or better yet send a pull request.

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.1.13.tar.gz (32.0 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.1.13-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lennoxs30api-0.1.13.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for lennoxs30api-0.1.13.tar.gz
Algorithm Hash digest
SHA256 7df9c12b36c28c88cac9c4027547a98c4a98b0afce9797ae754ab187cb48c2cf
MD5 b00aa29461a85f93954af82657e99522
BLAKE2b-256 29ee2e2b35500b019f3d3c5aa79b9fc896b9125b41e0988b4a834e7715f4c543

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lennoxs30api-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for lennoxs30api-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 e87785b973e918d4ec4f7c4019c27802c45d799af38272c450ef5baff235802d
MD5 2c8b9345139cf6aa23d2f8d92212785d
BLAKE2b-256 ba4dbecada53fef7c83b3973aa67436f08b11c1f2bed67ff0d5085abc3fa13b9

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