Metadata-Version: 2.1
Name: python-selve-http
Version: 1.0.2
Summary: Python library for interfacing with selve devices using the USB-RF controller, hooked up with an HTTP server; forked from GPULIDO & Kannix2005
Home-page: https://github.com/gillesmaes/python-selve-http
Author: Stefan Altheimer
Author-email: stefan.altheimer@gmail.com
Keywords: selve blind awning shutter usb rf
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE

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.

For the HTTP server, check out https://github.com/gillesmaes/python-selve-usbrf-server. 

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(hostname)


hostname is the address of the remote HTTP server that's hooked up to the USB serial interface.

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 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:

.. 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-http.svg
   :target: https://badge.fury.io/py/python-selve-http






