Skip to content

airdrummingfool/SmartThings-SmartCam

Repository files navigation

Samsung SmartCam Motion Detection Switch

This open-source software is free to use and enjoy at no cost to you. If you would like to thank the developer (me!) please consider donating.

PayPal.me (or Square Cash)

Description

This code allows SmartThings to toggle the motion detection setting on a supported Samsung SmartCam. Combined with a SmartApp such as Smart Lights (under "Lights and Switches") or CoRE, a SmartCam can have its motion detection enabled when Smart Home Monitor is armed, and disabled when SHM is disarmed.

The device handler takes care of the required Digest authentication for communication with the camera. Once you've entered the device IP and password in settings, no extra steps are required to authenticate.

Compatibility

This device handler has been tested on the following models/firmware versions. If you use it with a different setup, please let me know and I'll update this list.

  • SNH-P6410BN (1.08_160629)
  • SNH-V6414BN (1.13_170214)

Installation

Note: The camera must be installed and connected to your local network before proceeding. It does not need to be set up in SmartThings (this process will not integrate the camera with SmartThings).

The SmartCam must have a static IP.

1. Install the Device Handler

Using Github integration (recommended)

  1. In the SmartThings IDE, click "My Device Handlers"
  2. Click "Settings"
  3. Click "Add new repository" and fill in the following details
    • Owner: airdrummingfool
    • Name: SmartThings-SmartCam
    • Branch: airdrummingfool
  4. Click "Save"
  5. Back on the Device Handlers page, click "Update From Repo" to open the repo list
  6. Find "SmartCam-Motion-Detection-Switch (master)" in the list and click it
  7. Check the box next to devicetypes/airdrummingfool/smartcam-motion-detection.src/smartcam-motion-detection.groovy
  8. Check Publish at the bottom, and then "Execute Update"

Manual installation

  1. In the SmartThings IDE, click "My Device Handlers"
  2. Click "+ Create New Device Handler"
  3. Click the "From Code" tab
  4. Paste the Device Handler code into the text field
  5. Click "Create"
  6. Click "Publish" and "For Me"

2. Add a new Device

  1. In the SmartThings IDE, click "My Devices" and then "+ New Device".
  2. Enter a name and a unique Device Network Id (This can be anything. Do not use hex MAC address if you want to use the native SmartThings-SmartCam integration.)
  3. Under Type, choose SmartCam Motion Detection Switch
  4. Make sure you set the Location and Hub appropriately.
  5. Click "Create"

3. Configure the Device

  1. In the mobile app, find your newly-created device (the tile should say "check configuration")
  2. Click the cog to go to Device Settings
  3. Enter the SmartCam's IP address and password
  4. Click "Done" to save

If everything went smoothly, the device tile should be updated to the status of the motion detector (on/off). If not, please double-check the IP address and password and try a "Refresh". If things still don't work, please create an issue on Github or contact me via the SmartThings Community forum. Please include log excerpts!

About

SmartThings DTH for toggling the motion sensor setting on SmartCams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages