Python library for interfacing with selve devices using the USB-RF controller; forked from GPULIDO
Project description
A simple Python API for controlling RF Blinds / shutters / awning from selve using a USB-RF Gateway. All devices according to the specification are supported. Also integrated are two Threads which monitor an in- and output queue. If you want to send an async command, just use the writeQueue. readQueue momentarily only reads events from the serial port and does not process them (tbd).
The complete protocol specification can be found at selve
Example of use
Create a new instance of the gateway:
gat = Gateway(portname)
portname is the name of the serial port where the usb rf gateway is listed on the os. Please refer to the serial library documentation.
By default the gateway will discover all Iveo devices already registered onto the gateway.
To access them:
gat.devices()
Will return a list of IveoDevices()
Each IveoDevice can be controlled by using the already defined commands: stop() moveUp() moveToIntermediatePosition1() and moveToIntermediatePosition2()
The library also allows to send directly commands to the gateway without the need of using the IveoDevice abstraction just create the command and execute using the gateway:
command = IveoCommandGetIds()
command.execute(gat)
Once executed the response is stored in the command instance for later user or just to discard.
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
File details
Details for the file python-selve-new-1.0.22.tar.gz
.
File metadata
- Download URL: python-selve-new-1.0.22.tar.gz
- Upload date:
- Size: 18.2 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.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 137e81b3857ebd8e97e0a19e78968836217a34e43e5bac40aa567b77688c70b9 |
|
MD5 | f17802661c779449149142534a89e66e |
|
BLAKE2b-256 | cd817a231aaf06e83840ed28cd8bafeb10dc8b1fcc421a31c0bab985253117e8 |
File details
Details for the file python_selve_new-1.0.22-py3-none-any.whl
.
File metadata
- Download URL: python_selve_new-1.0.22-py3-none-any.whl
- Upload date:
- Size: 30.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.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138b5e80acfc6dd7d75c8d725e565a218fb27b7fc90c49481e19324840d6ba10 |
|
MD5 | e26df867d2e8cf31abbabd04443ed59c |
|
BLAKE2b-256 | 0ab296f57b75aba674cc82494cac748c0c8a7dfdd868377e841b9c2b806bec81 |