Skip to main content

An asynchronous API client library for Remootio (http://www.remootio.com/)

Project description

aioremootio - An asynchronous API client library for Remootio

aioremootio is an asynchronous API client library for Remootio written in Python 3 and based on asyncio and aiohttp.

Supported functionalities of the device

With this client library is currently possible to listen to state changes of a Remootio 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 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.

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.


Copyright © 2021 Gergö Gabor Ilyes-Veisz. Licensed under the Apache License, Version 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioremootio-1.0.0a1.tar.gz (17.7 kB view hashes)

Uploaded Source

Built Distribution

aioremootio-1.0.0a1-py3-none-any.whl (20.9 kB view hashes)

Uploaded Python 3

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