API Wrapper for Lennox 30 Cloud
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
This module is currently in test and prototype mode; as such it is not recommended at this time to build an application on-top of the API, as the API may change.
This module provides a command line test program; that can be used to exercise the main functions and create diagnostic output files to futher enhance and fix issues with the API
Current state - Tested with a single Zone S30 Air Conditioning System
Known Issues - Passwords with & will not work.
Prerequistes:
-
Python version 3.8.6 or later
-
A Lennox sign-on (email address and password)
-
You may need to install aiohttp https://docs.aiohttp.org/en/stable/
Install Instructions:
-
Grab the repo
-
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
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
Hashes for lennoxS30api-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a1d2a2093e2cfe0691b7d1970cef944ec124d92c135cd46470cbf4ac0e0b71f |
|
MD5 | 218c5ca7a1a87f540a520eb470c8f601 |
|
BLAKE2b-256 | 81c9b4fb7c9535c6e18709fd56e41df603d625512526dc8cc1729ddcc2a080dc |