Python library for interfacing with selve devices using the USB-RF controller
Project description
A simple Python API for controlling RF Blinds / shutters / awning from selve using a USB-RF Gateway. At present, only Iveo devices are supported.
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-1.4.1.tar.gz
.
File metadata
- Download URL: python_selve-1.4.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75f9fe8b1bf2bd1bae5b7f1e99d4838750a68e1e1df17aab1112dae64cced2d0 |
|
MD5 | f1be29c6a9c0c90c4f682ba09bc5aa4c |
|
BLAKE2b-256 | 8b5b858f0f7ccd80802c4f26c374415aa2055d65fdc8a98684c2f8cb1dfc38be |
File details
Details for the file python_selve-1.4.1-py3-none-any.whl
.
File metadata
- Download URL: python_selve-1.4.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6357b007a2d760813481346e24ffd2caf4b896370cb81c381f53d31f2e1ed19 |
|
MD5 | de0ebe908da024956485e9a5c27113f7 |
|
BLAKE2b-256 | 0c7b642d45b3bd4645bf295320a80b4699b4eb545a0379861dc0133d3b71b1eb |