Samsung SmartCam Motion Detection Switch Device Handler
I’m pleased to announce my very first public SmartThings Device Type, built for the Samsung SmartCam series of IP cameras.
I picked up a SmartCam on Prime Day and was mostly pleased with the ST integration, but I didn’t understand why I couldn’t toggle the camera’s motion sensor setting (to enable and disable local recording based on motion detected by the camera itself). Based on work by @greko6, @justin007, @XFighter, and others (see original thread) I was able to build a device handler to interface with the camera and control the motion detection switch.
Features:
- View and modify SmartCam’s motion detection on/off setting
- DTH handles all Digest Authentication automatically - just enter camera IP and password and it’s ready to go
- Supports newest SmartCam firmware (that I know about, anyways)
- Supports SmartThings’ “Device Health” capability (
Health Check
)
Note: This Device Handler is only for toggling the on-camera motion detection setting. Viewing a live stream of the camera in SmartThings can be done with the built-in SmartCam integration, and the SmartCam+ mobile app can be used to toggle video recording to phone or SD, review previously recorded video, communicate via 2-way audio, etc.
Requirements:
- SmartCam set up on your local network
- Static IP assigned to the camera
Known Compatibility:
- SNH-P6410BN (Firmware
1.08_160629
) - SNH-V6414BN (Firmware
1.13_170214
)
I’ve only been able to test this on my SmartCam HD Pro. Please let me know if it works for you on another device/firmware version combination.
Please let me know if you have any issues using this, or if you have any requests for additional (complementary) functionality, by posting in this thread.
Installation:
Instructions can be found in the README document in the repo. For Github integration, use the following:
- Owner:
airdrummingfool
- Name:
SmartThings-SmartCam
- Branch:
airdrummingfool
Possible Enhancements:
- Support for toggling audio detection (definitely possible)
- Support for dynamic IP addresses (requires SmartApp for device management, but possible)
- Support for camera acting as SmartThings motion sensor (not sure if this is possible)
If you find this useful, please let me know! I enjoy knowing that my code has benefitted someone.