Samsung SmartCam: SNH-P6410BN, SNH-E6440BN and SNH-1011ND (+WWW Digest auth) (tested and working)

I have contacted the Federal Trade Commission (FTC) and filed an official complaint against Samsung Corporation and Hanwha Techwin (the developer of the camera/firmware) regarding this matter. The reason I did this is that the behavior of the manufacturer and/or it’s contracted developer(s) is reprehensible–the company only initiated a firmware update to remove third-party access/development/support after they realized there was revenue to be made through their own service; what’s worse, in the firmware update and the TOS/TOU, the consumer was never informed that A) this was possible, and B) this behavior had been included in the new firmware. The nail in the coffin was the fact that the company also did not A) provide an informed opt-in/out function with the firmware, nor did they B) provide an option to downgrade the firmware (to date). I encourage others to do so as well because after hours of deliberations with multiple representatives across three (3) companies/subsidiaries regarding this firmware issue and the anti-competitive nature of it, the only recourse is first FTC initiated action, and then a class-action lawsuit if the company does not comply. If the FTC cannot take action, I will be submitting this for CAL at earliest, because if it has happened to me (us) it has happened to millions of others undoubtedly across the IP camera marketplace. The URL to file a complaint in the United States of America is here: https://www.ftccomplaintassistant.gov

2 Likes

I have two SNH-E6440BN. Is there a specific DTH needed to get them working?

anybody can help to make local control for SNH-V6414BN
I want get recorded files from SDCard
Thankx

I have a Samsung Smart cam, SNH-P6410BN, with version 1.08_160629 firmware.

I could not get this camera to work using IP Cam Viewer for Android by selecting the Smartcam model, as one might. Rather, I was able to steam directly from this camera to this app by using HTTP and by selecting the Samsung SNH-E6440BN camera from the Samsung list of models and by entering “admin” and the password I gave the camera during setup using the Samsung app. Thus, I can still use that single Android app to view all my different make/model of new and old cameras.

This might provide some insight for those looking for a way to avoid using the Samsung relay servers and apps?

Mike E.

1 Like

Here, I dug a little more and found this worked for me too (for direct rtsp stream from my SNH-P6410BN to VLC for Android on my phone):

rtsp://your-cam-id:your-cam-pw@your-cam-IP/onvif/profile5/media.smp

1 Like

I particularly enjoy this REST command:
http://CAMERA_IP/stw-cgi-rest/transfer/smtp

{“Sender”:“MyEmailHere@gmail.com”,“Recipient”:“MyEmail Here@gmail.com",“Server”:“smtp.gmail.com”,“Port”:465,“AuthNeeded”:true,“Username”:"MyEmailHere@gmail.com”,“Password”:“THE_REAL_EMAIL_PASSWORD_HERE_IN_PLAIN_TEXT”,“Subject”:“SNH-P6410BN Event Alarm”,“Body”:“SNH-P6410BN Event Alarm Detection”,“SSLEnabled”:true,“SSLPort”:465}

I have two Samsung Smartcam HD Pro cameras. Both model SNH-P6410BN at firmware v1.08. Using the above with Motion Detection enabled via TechWin app, I get this:

{"Channel.0.DetectionType":"MotionDetection","Channel.0.DetectionResultOverlay":false,"Channel.0.Sensitivity":"Low","Channel.0.MinimumObjectSize":"4,4","Channel.0.MaximumObjectSize":"90,90","Channel.0.ROIMode":"Outside"}

With Motion Detection disabled via TechWin app, I get this:

{"Channel.0.DetectionType":"Off","Channel.0.DetectionResultOverlay":false,"Channel.0.Sensitivity":"Low","Channel.0.MinimumObjectSize":"4,4","Channel.0.MaximumObjectSize":"90,90","Channel.0.ROIMode":"Outside"}

Is there anyway to change the “Channel.0.DetectionType” from “MotionDetection” to “Off” using REST API? Trying to figure out how to enable/disable Motion Detection based on Routine/Mode.

Thanks,
Justin

Hi,

I just start programming smartapps, im looking to integrate camera functions, like image capture, record, etc. Right now i was using the default device handler for my Samsung SmartCam SNH-P6410BN, but is very limited, i tried to create a smartapp using the “videoCapture” capability, and use the comands start(), stop() and capture(), the first ones seems to be work, but i dont know where the video is store or how to display it, is there a way to display this in the main dashboard, similar like the SHM does it?, When i use capture seems like im missing params, and im getting an error.

i try to use your device handler, but no seems to work for me, i got an blank screen on the main page for the camera, it never seems to connect, it has the firmware v1.08 i understood that one isnt currently supported.

Is there a simple way to implement this? Thanks in advance for the help

Hi All,
Since after I post my success on SNH-V6414BN, I failed into trap of upgraded the firmware, now to 1.13, and I lost all of the ability to be able to capture the jpg and uploaded to S3 as I mentioned a while back. It’s also sad that I heard that some of you were not able to hook SNH-V6414BN with smartthing V2, let all continue to see if there are a way to change the firmware.

I managed to use this with the ffmpeg component in home assistant.

anything for local access?
SNH-V6414BN

what’s the firmware version for SNH-V6414BN that you have?
Does anyone have SNH-V6414BN work on samsung smart things v2 hub?

I have two. You have to set it up first with the separate SmartCam+ app. Then in SmartThings you use the option of “Connect to an existing Camera”.

In the SmartThings app you only get audio/video. You really can’t do anything else. It is not a replacement for the SmartCam+ app where you can set up motion triggers, listen/talk to people, make siren/dog noises, ect.

Works both local and remote.

Have you tryied doing a POST call with the payload:
{“Channel.0.DetectionType”:“Off” }
to http://{put_your_camera_IP_here}/stw-cgi-rest/eventsources/videoanalysis

Being playing with the REST API:

This works from PowerShell:
$c = Get-Credential admin
$d = “{
"Subject” : "Living Event Alarm"
}"
Invoke-RestMethod -Method Put -Uri http://{CamIP}/stw-cgi-rest/transfer/smtp -Credential $c -Verbose -Body $d

It is also possible to add a subscription to the camera:
$d = “{
"NotificationURL” : "http://{hubip}“,
"EventType” : "All“,
"SubscriptionID” : "1"
}"
Invoke-RestMethod -Method Post -Uri http://{camip}/stw-cgi-rest/transfer/subscription -Credential $c -Verbose -Body $d

And remove it:
$d = “{
"SubscriptionID” : "1"
}"
Invoke-RestMethod -Method Delete -Uri http://{camip}/stw-cgi-rest/transfer/subscription -Credential $c -Verbose -Body $d

1 Like

I’m not exactly sure how to do the Post call… I’ve been playing around with Advanced Rest Client Chrome Extension and PowerShell’s Invoke-RestMethod cmdlet, but not understanding Rest API calls enough to know what I’m doing in either case…

Eventually, once I figure out the correct Rest API calls, I’d like to setup CoRE to kick off these calls based on Routine/Mode.

Any suggestions for a Rest API beginner?

Thanks,
Justin

I’m working on this as well. I’m using HTTPie to send my requests.

Here’s a simple GET to the videoanalysis endpoint:

$ http --auth-type digest --auth admin:pass GET [camera IP]/stw-cgi-rest/eventsources/videoanalysis
HTTP/1.1 200 OK
Content-type: application/json
Date: Sat, 15 Jul 2017 19:32:26 GMT
Server: SmartCamWebService
Transfer-Encoding: chunked
X-Powered-By: PHP/5.2.17

{
    "Channel.0.DetectionResultOverlay": false,
    "Channel.0.DetectionType": "Off",
    "Channel.0.MaximumObjectSize": "90,90",
    "Channel.0.MinimumObjectSize": "4,4",
    "Channel.0.ROIMode": "Outside",
    "Channel.0.Sensitivity": "Medium"
}

If you send a POST, the camera returns 405 Method Not Allowed.

But if you send a PUT, the response changes to 400 Bad Request. After a bit of trial and error, I was able to figure out how to enable and disable motion detection!

$ http --auth-type digest --auth admin:pass PUT [camera IP]/stw-cgi-rest/eventsources/videoanalysis "DetectionType"="MotionDetection"
HTTP/1.1 200 OK
Content-Length: 0
Content-type: text/html
Date: Sat, 15 Jul 2017 19:44:45 GMT
Server: SmartCamWebService
X-Powered-By: PHP/5.2.17
$ http --auth-type digest --auth admin:pass PUT [camera IP]/stw-cgi-rest/eventsources/videoanalysis  "DetectionType"="Off"
HTTP/1.1 200 OK
Content-Length: 0
Content-type: text/html
Date: Sat, 15 Jul 2017 19:49:47 GMT
Server: SmartCamWebService
X-Powered-By: PHP/5.2.17

For reference, here is my camera info:

  • Model: SNH-P6410BN
  • Firmware Version: 1.08_160629

hopefully more to come!

1 Like

This is awesome. With this it should be possible to build an SmartApp to turn the camera motion detection on and off based on its state with SmartThings.

Agreed! So awesome. I feel like we’re so close to getting this working the way Samsung should have made it from the start! lol

I’ve been playing around with CoRE’s “Make a web request” action, using the PUT info @airdrummingfool provided, but can’t seem to get it to work. I can’t seem to get this to work using Advanced Rest Client Chrome extension either… It appears my problem is passing the credentials correctly.

I look forward to it! :slight_smile:

Thanks,
Justin