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.3.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openly_core-0.3.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openly_core-0.3.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.9 Linux/6.11.0-1018-azure

File hashes

Hashes for openly_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 873104a94d746507ae730e42fbaa4c3cc2ced59e6e4569c9405ed60022352a3d
MD5 40108b46401de356bc9b1a36f8105f96
BLAKE2b-256 cce250bf3afb514887faa4a15c893e6dc10ffe0f62354daa976bc8dd249fa190

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openly_core-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.9 Linux/6.11.0-1018-azure

File hashes

Hashes for openly_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b66888b77e878cfb58a820f149ab231619d5f792dedc6b659dbffdced4809477
MD5 dbb6a877009b6a4244b0ae2df885ae56
BLAKE2b-256 479c535344878eb6076fdf7bf0ba4e8171b1853a71932584ce6dfef706150aee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page