Skip to main content

Python library for interfacing with selve devices using the USB-RF controller; forked from GPULIDO

Project description

Python control of selve devices through USB-RF Gateway

|PyPI version|

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 <https://www.selve.de/de/service/software-updates/service-entwicklungstool-commeo-usb-rf-gateway/>_

Example of use

Create a new instance of the gateway:

.. code-block:: python

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:

.. code-block:: python

gat.devices()

Will return a list of devices. Those can be Iveo or Commeo devices.

Each device 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 device abstraction just create the command and execute using the gateway:

.. code-block:: python

command = IveoCommandGetIds()
command.execute(gat)

Once executed the response is stored in the command instance for later user or just to discard.

.. |PyPI version| image:: https://badge.fury.io/py/python-selve-new.svg :target: https://badge.fury.io/py/python-selve-new

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

python_selve_new-1.1.6.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

python_selve_new-1.1.6-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file python_selve_new-1.1.6.tar.gz.

File metadata

  • Download URL: python_selve_new-1.1.6.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for python_selve_new-1.1.6.tar.gz
Algorithm Hash digest
SHA256 c1105e09ce94eff16a0932643dab52c23b29ff902e6a2adb9cd95de8541d8aaf
MD5 52bf10fc715083d9c0797f6773862f0e
BLAKE2b-256 2cf37b1c6f1285720ccd298ec3aa3894442f66d6798787075555f6e6842e8144

See more details on using hashes here.

File details

Details for the file python_selve_new-1.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for python_selve_new-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e915c452c2f2246e4a8338fba11eccfb5eeb1ac08653fa85154335b3e36bc2b9
MD5 9fbaa8c80ab49f23c2921103235daa0d
BLAKE2b-256 44395d63addefd5a4daedcc9b28c328043959f17bc9b6b5d530a375ed4dd16f3

See more details on using hashes here.

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