A Python library to communicate with Ring Door Bell (https://ring.com/)


Keywords
ring, door, bell, camera, home, automation, doorbell, home-automation, python, python27, python3, ring-doorbell
License
LGPL-3.0+
Install
pip install ring-doorbell==0.1.2

Documentation

Python Ring Door Bell

PyPI Version

Build Status

Coverage

Documentation Status

Py Versions

Python Ring Door Bell is a library written for Python 3.8+ that exposes the Ring.com devices as Python objects.

There is also a command line interface that is work in progress. Contributors welcome.

Currently Ring.com does not provide an official API. The results of this project are merely from reverse engineering.

Documentation: http://python-ring-doorbell.readthedocs.io/

Installation

Event Listener

If you want the ring api to listen for push events from ring.com for dings and motion you will need to install with the listen extra:

$ pip install ring_doorbell[listen]

The api will then start listening for push events after you have first called update_dings() or update_data() but only if there is a running asyncio event loop (which there will be if using the CLI)

Using the CLI

The CLI is work in progress and currently has the following commands:

  1. Show your devices:

    $ ring-doorbell

    Or:

    $ ring-doorbell show
  2. List your device names (with device kind):

    $ ring-doorbell list
  3. Either count or download your vidoes or both:

    $ ring-doorbell videos --count --download-all
  4. Enable disable motion detection:

    $ ring-doorbell motion-detection --device-name "DEVICENAME" --on
    $ ring-doorbell motion-detection --device-name "DEVICENAME" --off
  5. Listen for push notifications like the ones sent to your phone:

    $ ring-doorbell listen
  6. List your ring groups:

    $ ring-doorbell groups
  7. Show your ding history:

    $ ring-doorbell history --device-name "Front Door"
  8. Show your currently active dings:

    $ ring-doorbell dings
  9. Query a ring api url directly:

    $ ring-doorbell raw-query --url /clients_api/dings/active
  10. Run ring-doorbell --help or ring-doorbell videos --help for full options

Initializing your Ring object

Listing devices linked to your account

Playing with the attributes and functions

Showing door bell events

Downloading the last video triggered by a ding or motion event

Displaying the last video capture URL

Controlling a Light Group

How to contribute

See our Contributing Page.

Credits && Thanks