D-Link IP Camera device type (DCS-930L tested)

I having this error “java.lang.RuntimeException: Metadata Error: input() can only be invoked inside a section definition @ line 13”

Ok, I’d like to bring this back.

I’m working with a D-Link DCS-5029L. I have created the device using the code for the DCS 5020. I still can not get an image to appear.

Under device new device settings in IDE what do I insert for “Device Network ID”, “Username”, “Password”, “URL” and “Port”.

Thanks.

Hey, i’ve forwarded the port and confirmed I can log into the web interface remotely with the same info, and in the activity log “motion is set to 0” and “motion is set to 1” pop up, but I can’t use any of the actions -

error groovyx.net.http.HttpResponseException: Authorization Required @ line 112
73421b1b-c752-4689-8308-22f377af56de 3:35:21 AM: debug Executing 'down’
73421b1b-c752-4689-8308-22f377af56de 3:35:19 AM: error groovyx.net.http.HttpResponseException: Authorization Required @ line 104
73421b1b-c752-4689-8308-22f377af56de 3:35:19 AM: debug Executing 'right’
73421b1b-c752-4689-8308-22f377af56de 3:35:19 AM: error groovyx.net.http.HttpResponseException: Authorization Required @ line 99
73421b1b-c752-4689-8308-22f377af56de 3:35:19 AM: debug Executing 'left’
73421b1b-c752-4689-8308-22f377af56de 3:35:16 AM: error groovyx.net.http.HttpResponseException: Authorization Required @ line 108
73421b1b-c752-4689-8308-22f377af56de 3:35:16 AM: debug Executing 'up’
3:35:7 AM:

Same for photo and record. Help, please? I don’t know java/js so I’m flying blind. I tried to hard code my info into the code, removing variables, but I got an error for that as well, albeit a different one. I’d really like to get this functional, any help would be much appreciated. This is for a 5020l

@RichardH I’m trying to get this device type to work with my Hikvision cams, would you mind sharing your code mod? Thanks!

I am new to the community so forgive me if I am asking a silly question.

I copied the new device type and published it for the the Dlink camera but I don’t see the type show up in my iOS app for me to set up? I see it as published and listed on my web ide page.

What step am i missing?

I copied the new device type and published it for the the Dlink camera but I don’t see the type show up in my iOS app for me to set up? I see it as published and listed on my web ide page.

Assuming you “Published For Me” you will need to “re-type” the device once it is installed > then go to My Devices from the “IDE site” and look for the device. Click edit and change the Type pulldown menu to the new Device Type Handler you have just saved.

I am a noobie to Smartthings and I am kind of confused on how to install this.
Any help would be great!

Thanks,Brandon

Has anyone been able to get a DCS-5029L to work?

Has anyone been able to get this to work? I have a DCS-5020L and a DCS-942L which I only really need to get to a point where I can turn on/off motion detection. Are there other devicetypes that can help with his?

I’ve been poking around and now generally understand how to pass commands to the cameras using a URL but am still too new to know how to pass that url to the camera directly from Smartthings. Are there any good guides to putting together a custom devicetype to do this? I apologize if I overlooked a good guide if it was already posted.

is your DCS-5020L device type still working for you? I can’t seem to get it to work.

yes, all my cameras are still working.

Are you using the local IP for the camera? For some reason I can’t get it to work for me.

No, i have not converted any of my own smart apps over to local IP.

Where did you find the commands that work for this camera? I’d like to add the functionality to be able to switch between two different pre-set camera orientations and I figure there is a command to do that.

I haven’t set up any port forwarding yet because I’m currently at work right now but I have been able to pass commands to the camera using IE after finding the current external IP/port of the camera. When I plug these into the devicetype I get a timeout error :

6aa21867-f90c-402a-afeb-e0e31b0a28d9 10:54:13 AM: error org.apache.http.conn.ConnectTimeoutException: Connect to XX.XX.XX.XX:80 timed out @ line 92

What’s confusing is that the port should be 8080, not 80 even though the properties are all filled out properly.

I definitely have had issues inthe past with ports not being g what I expected… How I figured out the commands to send is just reading the js in the page to see what it’s doing.

in the code it looks like it is only be passing the IP to the httpGet command and it defaults to port 80. When I add the port as well to the code I get an error:

org.apache.http.client.ClientProtocolException

I have @pstuart 's Generic Camera Device working for it locally to get the image but I don’t know enough about the hubAction command in order to get the other functions working.

You could probably get really far with my device types in my github repository.

I just took a look and noticed that I didn’t have the up-to-date code for the DCS-5020L devicetype. Now when I use any of the buttons I get the error:

6aa21867-f90c-402a-afeb-e0e31b0a28d9 3:52:22 PM: error org.apache.http.client.ClientProtocolException @ line 137

I’ve noticed that I can only pass URL based commands to the camera if I’m using HTTPS:// instead of HTTP:// however I don’t believe the httpPost command lets you use HTTPS. How did you get around this issue on your end?