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

I eventually found the camera URL on an Amazon review, where the reviewer was kind enough to share the fruits of his labor. The camera URL is:

http://admin:password@ipaddress/stw-cgi/video.cgi?msubmenu=snapshot&action=view in a browser, or just

/stw-cgi/video.cgi?msubmenu=snapshot&action=view in the device type preferences.

It works with this device type, but I have so far been getting pictures with only about 2/3 image - the rest is gray. I don’t know if that’s because of a size limitation. I haven’t been able to set the resolution yet to try smaller image sizes.

You have to also add &profile= to the url. Profile 1-10 are available.

My camera does not respond to the profile parameter. I get an “invalid parameter” error from the camera when I add it. Have you tried it with this specific model (SNH-E6413BN)?

Any chance you could provide the samsung documentation?

I am able to turn on/off the motion/audio detection, but I’d also like to control the Status LED and the Continuous Recording to the SD Card, but can’t seem to find commands that will work in the http string for these.

Thanks for the code! I am also trying to get the same model working.

I am new to all of this, but the code keeps generating the following error for me when I try to publish for myself:

Org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: script14384159960431580533587.groovy: 27: expecting ‘}’, found ‘,’ @ line 27, column 22. 69 state “default”, label: “”, action: “”, icon: “st.camera.dropcam-centered”, backgroundColor: “#FFFFFF” ^ 1 error "

Any ideas?
Thanks :smile:

Is this code working with the new app and new hub? I have tried reinstalling it multiple times without it working. I have the appropriate IP address, and it is working via the phone app.

I am having a terrible time finding this documentation, I think it may have been removed from its original location. Best I have found is the "Samsung HTTP_API_V1.23.pdf from 2009.02.06. Some of it works and is helpful, but the compatibility with the newer cameras is far off.

Would it be possible to have you post up the documentation you found somewhere, or provide a link to its existing location? I’ve been racking my brain for quite a while trying to find it. Thank you!

I’m also trying to get this set up on the v2 hub without success (I have a Samsung SNH-E6413BN from Costco). I two buttons in the app: “take” and “deauth” (no "auth). Right now when hit the “take” button, nothing happens. In the live logs, I see “state: [auth:empty]”. When I hit “deauth” in the app, the live log says “removeAuth” but I don’t seem to have anywhere to authenticate in the app.

I quickly checked my two camera models on the V2 hub. They are currently also installed on V1. Both models still work as well as they used to on V1. On V2, the 1011 camera model works fine, but I was only once able to get a couple lines of picture from the 6413. The 1011 has much smaller pictures than the 6413, and I’ve still not found a way to tell the 6413 to take smaller pictures.

It looks like the V2 hub is even more sensitive to timing than the V1 hub. But the device type works for me.

If I remember correctly, I did need to make a small change to the code a couple of months back to work around a quirk in the SmartThings platform. Not sure if the code in this thread has been updated.

Mine does the exact same thing. “Take” and “Deauth”.

Mine does exactly the same thing. “Take” and “Deauth” are available, without anything else.

Dan, If you could post the updated code, it would be greatly appreciated. I wish that I had more time to tweak code and settings, but work and taking care of my kids currently occupies the majority my time. O.o

You can try to replace getPictureName() with the function below:

private getPictureName() { def pictureUuid = java.util.UUID.randomUUID().toString().replaceAll('-', '') return "$pictureUuid" + ".jpg" }

I’m having the same problem as @Ross_Patrick . @Dan999, If it’s not too much trouble, could you check the version of the P6410BN firmware you have? My new camera updated to 1.07 and what I’m seeing doesn’t line up well with the top of the thread (eg, I get a “404 - Not Found” message when hitting the web server root instead of a working app and trying to hit “/cgi-bin/video.cgi?msubmenu=jpg&resolution=2” prompts for a username and password, not just a password).

The smartthings-uk support page (but not the US one?) explicitly mentions the 1.06 firmware being required (though it implies that is the most recent, not that upgrading past it would be expected to break things).

If it is the new firmware that is causing the issue, do you have any thoughts on how I could debug it? I have some time to help out here at the moment, but not a ton of experience with this sort of thing.

Thanks,

matt

Poster’s curse, fixed my problem, anyway! According to this Sighthound page the password must be <=8 characters, i must have missed that in the initial instructions. Dropping my password under that limit allowed the built-in smartthings support to pick up the camera, it’s not working with @Dan999’s code, though.

I have the SNH-E6413BN camera they sell (sold?) at Costco. It has not recently received any firmware update.

Hi Matt,
Were you able to access the link
Stw-cgi/video.cgi?msubmenu=jpg now because of what you did to your password? I am having 404 error lately.

No : / I think the firmware update they pushed made some pretty major changes to the interface. I can’t make any of the RESTful calls work, but I discovered it does speak XMPP. You can connect to the server xmpp.samsungsmartcam.com with your samsung credentials and then you can start sending it base64 encoded commands. I haven’t figured out what that means for any non-rtsp video streams (maybe jingle?). I’m mostly making this up as i go along, though… Any advice/suggestions from the peanut gallery would be appreciated.

matt

yes none of the mjpg streams work any longer after the firmware update… anyone have a way to downgrade the firmware or figure out the new interface… I have an app that had all 6 camera screens on at once and can no longer get it working…

thanks

Thanks…may I know if this is still working with smartthings?

The ST app uses the RTSP stream, so it still works.