Metadata-Version: 2.1
Name: aioremootio
Version: 1.0.0a1
Summary: An asynchronous API client library for Remootio (http://www.remootio.com/)
Home-page: https://github.com/ivgg-me/aioremootio
Author: Gergö Gabor Ilyes-Veisz
Author-email: i@ivgg.me
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/ivgg-me/aioremootio/issues
Project-URL: Source, https://github.com/ivgg-me/aioremootio/
Keywords: remootio,client,library,asynchronous
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Home Automation
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: aiohttp (~=3.7.3)
Requires-Dist: pycryptodome (==3.8.1)
Requires-Dist: async-class (~=0.3.0)

# aioremootio - An asynchronous API client library for Remootio

_aioremootio_ is an asynchronous API client library for [Remootio](https://remootio.com/) written in Python 3 and 
based on [asyncio](https://docs.python.org/3/library/asyncio.html) and [aiohttp](https://pypi.org/project/aiohttp/).

## Supported functionalities of the device

With this client library is currently possible to listen to state changes of a [Remootio](https://remootio.com/) device, 
to listen to some events triggered by it, furthermore to operate the gate or garage door connected to it.

This client library supports currently the listening to following kind of events triggered by the device:
* `STATE_CHANGE` which is triggered by the device when its state changes
* `RELAY_TRIGGER` which is triggered by the device when its control output has been triggered to operate the 
  connected gate or garage door
* `LEFT_OPEN` which is triggered by the device when the connected gate or garage door has been left open

## Running the bundled example

To run the bundled example `example.py` you must 
1. enable the API on your [Remootio](https://remootio.com/) device to get the _API Secret Key_ and _API Auth Key_ of 
   it, and
2. add the source folder `./src` of this library to your `PYTHONPATH`.

About enabling the API on your device please consult the
[Remootio Websocket API documentation](https://github.com/remootio/remootio-api-documentation).

After the two steps described above you can run the bundled example `example.py` with the argument `--help` to show the 
usage information.

```
python example.py --help
```

## Running the bundled tests

To run the bundled tests you must create the `.\remootio_devices.configuration.json` file with a content according 
to the following template.

```
{
    "ip_address": "IP-ADDRESS-OF-YOUR-DEVICE",
    "api_secret_key": "API-SECRET-KEY-OF-YOUR-DEVICE",
    "api_auth_key": "API-AUTH-KEY-OF-YOUR-DEVICE",
    "api_version": API-VERSION-OF-YOUR-DEVICE
}
```

You can get the API version of your device based on the firmware version of it from the
[Remootio Websocket API documentation](https://github.com/remootio/remootio-api-documentation).

---

Copyright &copy; 2021 Gergö Gabor Ilyes-Veisz. 
Licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

