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. 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
File details
Details for the file python-selve-new-1.0.1.4.tar.gz
.
File metadata
- Download URL: python-selve-new-1.0.1.4.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec21e6f7f989441aa66c58e90f9b3f4622d89c6810b0694e77e29153d215c2a0 |
|
MD5 | c26602cec2c78c1231bee67a41756cb0 |
|
BLAKE2b-256 | 1a1412e85f19ff5fd5a78bff04b8ccbd72bc7215649e2af3a9543f69242994a6 |