Skip to main content

Python package for interacting with Trane thermostats locally.

Project description

Lantrane

A python library for interacting with Trane thermostats over the local network

Usage Example

Your thermostat for communicating, variable speed heat pump systems might have a port open that emits data every time the compressor speed changes if you can find the right port via nmap and telnet (usually port 30,000 or so), this example will listen on that port and give you data. The port may change when the device is updated though.

from lantrane import Trane
import asyncio

trane = Trane(args.ip, args.port)

def read(data):
	print(data)

trane.on_data(read)
	
asyncio.run(trane.listen())

Distribution

python3 setup.py bdist_wheel
python3 setup.py sdist
twine check dist/*
twine upload dist/*

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

lantrane-0.0.5.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

lantrane-0.0.5-py3-none-any.whl (16.6 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