Control your Ring Spotlight with Alexa with Smart Things

Just a quick post, but I’ve managed to get my Ring Spotlight cam light operated by my Alexa using a Custom Device type in my SmartThings hub.

Here is a copy of my device handler:

https://github.com/philgituser/smartthings/blob/master/devicetypes/philgituser/ring-spotlight.src/ring-spotlight.groovy

If you’ve not created a custom device type, it’s not too hard, but I recommend you start here?

https://community.smartthings.com/t/smartapp-devicetype-from-code-and-from-template/11255

There are three things you need to get it working:

  1. Your Ring.com Username
  2. Your Ring.com Password
  3. The Device ID

The device ID is the hardest part, it needs to be sourced by an API call to:
https://api.ring.com/clients_api/ring_devices?api_version=9&auth_token=auth_token

Here is a POSTMAN collection for calling this.

RING API Set.postman_collection.json

Set your environment variables to include your username and password:

Call the Authenticate API and then Get Devices:

 

And extract the Device ID of the relevant device.
This will then go into the device setup in smartthings:

Once you have the device working in Smartthings, it should just be a matter of adding the device to the Alexa available devices through rediscovery.

And then you can say “Alexa, Turn the Backyard Spotlight On”.

I’ll let you add the siren as a bit of fun. It’s not hard to extrapolate based on the Postman collection example.

 

2 thoughts on “Control your Ring Spotlight with Alexa with Smart Things

Add yours

  1. Thanks for the instructions and building it to make it happen! One thing though that I was wondering it could do is interface with the motion detection? So then when motion is detected, in smartthings it would then be configured to turn lights on at 100% for 5 minutes, then return back to the normal percentage of 20%???? Thanks!

    Like

    1. The motion detection portion is a bit harder to do. I’m not sure if we can/should set up the smartthings to poll the ring api looking for motion… I also have played with the brightness settings for the light – I didn’t have a spotlight cam – but rather a floodlight cam that did brightness at the time I was developing.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: