Metadata-Version: 2.0
Name: pyvesync
Version: 0.1.0
Summary: pyvesync is a library to manage Etekcity Switches
Home-page: https://github.com/markperdue/pyvesync
Author: Mark Perdue
Author-email: markaperdue@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: iot,vesync
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.0
Requires-Dist: requests (>=2.6.0)

pyvesync |build status|
=======================

pyvesync is a library to manage Etekcity Switches.

Installation
------------

Install the latest version from pip:

.. code:: python

    pip install pyvesync

Usage
-----

To start with the module:

.. code:: python

    from pyvesync.vesync import VeSync

    manager = VeSync("USERNAME", "PASSWORD")
    manager.login()
    manager.update()

    for switch in manager.devices:
        print("Turning on switch '%s'" % (switch.device_name))
        switch.turn_on()

Notes
-----

VeSync switches controlled through the Etekcity api do not always
respond to the initial request for turn_on() and turn_off(). Retrying
once or twice as needed often works.

.. |build status| image:: https://img.shields.io/pypi/v/pyvesync.svg
   :target: https://pypi.python.org/pypi/pyvesync


