Skip to main content

Python API wrapper for Rently Smart Home hubs and devices

Project description

Openly

main release

Openly is a Python API wrapper for simple access to the Rently Smart Home API.

DISCLAIMER: Rently is a registered trademark of Consumer 2.0 Inc., which I'm not affiliated to. This is not an official wrapper.

Rently provides a publicly available documentation, which was very helpful to create this library:

Rently API Documentation

Shoutout to Rently's engineering team who provide us with very interesting reads on their blog:

Rently Engineering Blog

Installation

:globe_with_meridians: Coming soon - For now, clone the repo and install from local files using pip or poetry

Use the package manager pip to install the library.

pip install openly-core

Usage

from openly import RentlyCloud

cloud = RentlyCloud("BASE URL HERE", "BASE LOGIN URL HERE")

# Login to retrieve your token
cloud.login(username, password) # Set username and password here

# Retrieve the list of hubs
cloud.get_hubs()

# Retrieve information about a single hub
cloud.get_hubs()

# Retrieve the list of devices in a hub
cloud.get_devices("HUB ID") # Set hub id here

Implementation

The library currently supports the following devices:

  • Hub
  • Dimmer
  • Leak Sensor
  • Lock
  • Switch
  • Thermostat

Each device is represented by a class that implements the actions supported by the API. Example:

    # Retrieve the door lock
    door = cloud.get_device("DEVICE ID HERE")

    # Call the device locking action
    door.lock()

    # Call the device unlocking action
    door.unlock()
    # Retrieve the switch
    switch = cloud.get_device("DEVICE ID HERE")

    # Call the device `on` action
    switch.on()

    # Call the device `off` action
    switch.off()

More information about each device can be found in the corresponding class in openly/devices. Some resources or actions might not be supported currently. I will work on adding them gradually.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Refer to LICENSE file

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

openly_core-0.1.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

openly_core-0.1.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file openly_core-0.1.0.tar.gz.

File metadata

  • Download URL: openly_core-0.1.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

File hashes

Hashes for openly_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 134d31c5ba631b0979f69c49a4d4ab7bf65ced81ab931cfa5ddafed0278110be
MD5 6e5359decdf979cacbd91ed3d1c2711b
BLAKE2b-256 5307ae6430d3d5b4113f64e1a54f779f88b3827d7f9d84025917ef486b36db46

See more details on using hashes here.

File details

Details for the file openly_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openly_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

File hashes

Hashes for openly_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e41e202d7583a8b0eb3843be6facfd0cb9dac5427beb8e4334b865dd6baf72e7
MD5 390a3c8a7e88f7fed1428fd5536610e8
BLAKE2b-256 df14ef7802e1712cbd247a632de339cf6b418ebbe2a86b5598807f082072d0e8

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