Asynchronous Python client for Salus IT600 devices
Project description
Python: Asynchronous client for Salus iT600 devices
About
This package allows you to control and monitor your Salus iT600 smart home devices locally through Salus UG600 universal gateway. Currently only heating thermostats supported. You have any other devices and would like to contribute - you are welcome to create an issue or submit a pull request.
Installation
pip install pyit600
Usage
- Instantiate the IT600Gateway device with local ip address and EUID of your gateway. You can find EUID written down on the bottom of your gateway (eg. 001E5E0D32906128).
- Status can be polled using the
poll_status()
command. - Callbacks to be notified of state updates can be added with the
add_climate_update_callback(method)
method.
Basic example
async with IT600Gateway(host=args.host, euid=args.euid) as gateway:
await gateway.connect()
await gateway.poll_status()
climate_devices = gateway.get_climate_devices()
print("All climate devices:")
print(repr(climate_devices))
for climate_device_id in climate_devices:
print(f"Climate device {climate_device_id} status:")
print(repr(climate_devices.get(climate_device_id)))
print(f"Setting heating device {climate_device_id} temperature to 21 degrees celsius")
await gateway.set_climate_device_temperature(climate_device_id, 21)
Useful gateway methods
- poll_status()
- get_climate_devices()
- get_climate_device(device_id)
- set_climate_device_preset(device_id, preset)
- set_climate_device_mode(device_id, mode)
- set_climate_device_temperature(device_id, setpoint_celsius)
Contributing
If you want to help to get your thermostat supported, open GitHub issue and add your thermostat model number and output of main.py
program. Be sure to run this program with --debug option.
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
pyit600-0.0.5.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pyit600-0.0.5.tar.gz
.
File metadata
- Download URL: pyit600-0.0.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6391a15406a9e81d6319d660beb26613a8dbcd34c905b4b7961bb153a280d373 |
|
MD5 | 5a546187bf4ca217a1cf43458038a4ad |
|
BLAKE2b-256 | 83e8f5ad5a392ac7df84e9a22fae10f24d2bef90844356320cf35d0186f7de20 |
File details
Details for the file pyit600-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pyit600-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7bb8dd4a2a30eb6975d8bf89857da17acc21e757c44f9c993b5c5efd6ec95e |
|
MD5 | a82eaef7a19cdad2f10a4605fa34af6b |
|
BLAKE2b-256 | 8c484cb3065220e5421223b4fc7638da3b3c1cc381e41ffd7b6f267f9f94cf3b |