[OBSOLETE] D-Link Camera Manager (Connect) [Requires Classic App]

Great stuff! Thanks!
Some cameras support two-way audio, I guess this is not supported by ST?

I have a strange problem. I have two cameras 5020L, installed and they are streaming fine on the app.

However, only one of the cameras allow me to use any of the functions within the app. I can only snap photos in one of the cameras. The other one just sits there, and never does anything.

I can’t understand why this would be, as I have tried everything.?

you may want to ensure you can access the camera with the settings you have via a web browser.

I have also found that hubaction can be tempermental to the the device.deviceNeworkId is all uppercase.

I have found adding .toUpperCase() to convertIPtoHex and convertPortToHex has made things better for me.

Stream works fine in browser… It’s just not of the functions in app works… Like snap picture or move camera… One camera I have everything works, but this camera it’s just the video stream…

I’m a little confused as what u are telling me to do with the uppercase.

The only thing that may be causing issues is an incorrect IP or port. Can you try typing in the following URL for each camera and let me know what it shows?

http://username:password@IP:port/motion.cgi

Can you please try using the DCS-5020L and DCS-5222L device types to install the camera. Please let me know if any/all/none of the commands work.

##DTH Update
Added DCS-5030L Camera (Thanks to @E_Sch for the DTH!)

##SmartApp Update
Added DCS-5030L to dlink-ptz-video-camera-child SmartApp

Ben,

thanks for the update. smartapp updates fine, however when trying to update device handlers from your repo, i get the following message.

Updated 0 devices and created 0 new devices, 0 published (1 skipped due to errors)

When going to the app on my phone, I can add the camera and all the related info, including the correct model(5030), but when going to Things, nothing shows up.

Thanks,

Bryan

Make sure that all of the DTH are published to self in IDE.

Sorry, i’m not getting this. Nineteen original devices all published to me. I go to Update from Repo, select the 5030 under the New column all the way to the right, select publish at the bottom, then update. I get the error i mentioned above.

Hmm, not sure what the issue is. I was able to update from the repo successfully… Maybe try manually adding it to your IDE?

I’ll try to manually install.

Side note, deleting all handlers and selecting all 20 to reinstall… Gives me the original 19 and still an error for 5030.

Not sure what is happening.

Bryan

It looks like the DCS-5030L a different file name format that IDE didn’t like (used a capital ā€˜L’ rather than the lowercase ā€˜l’). You can try updating from the repository on IDE now.

Hi Ben

Great effort for developing this app, thanks. I have managed to get the camera working internally and externally using port forwarding as you mentioned. I am based in the UK and had to manually create the DTH and smartapp using code (as per a previous posts by others), followed the rest of the steps in publishing just the main app and not the child apps.

I am having issues with using the commands. The directional buttons are pressed and execute the command but then show a ā€˜moving’ icon permanently and wont allow me to press it again. This the case with all buttons. With three larger buttons at the bottom, I’m not entirely sure if they are working or not as they say toggle after being pressed. In my ā€˜things’ list the camera shows as having motion off and pressing this again says toggle and after restarting the app it still shows motion off. I have tried to edit/re-save but still the same and also completely deleted the camera of ST and added back. Any ideas?

Some questions and suggestions too whilst I’m posting.

  1. Is it possible that rather then show motion on/off on the things list it could have a status eg Active/inactive
  2. I need to add a second camera to monitor externally too, how would the port forwarding work, do I add a 2nd rule with the 2nd camera’s IP address? When the cameras were initially added using the standard D Link setup app that comes with ST, no port forwarding was needed and I could still connect externally. I’m slightly confused why port forwarding is needed as the ST hub is connected to the same network as the cameras. Should the port forward be linked to the ST hub IP address instead? Just trying to work out how the standard app allows the traffic as standard.

This SmartApp uses a hacked together version of video streaming. SmartThings has not opened up their video code to the developers so this code was hacked together with the help of some SmartThings devs. As such, it’s not actually streaming video to the hub at all, it’s actually streaming it directly to your phone, using the ST app as a ā€˜viewer’. This is why you need the external IP in order to view it outside of your local network.

All of the cameras are controlled using local commands, hence why the ā€˜Camera IP’ is always the local IP of the camera. If you are having issues with these commands (anything other than video streaming) then it is possible your camera IP/port or username/password are incorrect. If you look at your live log in IDE while using the buttons, what do you see?

When adding a second camera, you should simply forward the port to a different external port. For example, two cameras use 554 for their internal RTSP port but can be forwarded to 1554 and 2554 externally in order to be able to access them separately.

Any luck adding 6212L? Thanks!

Did you try installing using the DCS-5020L and the DCS-5222L Devices to see if anything works like I suggested before?

Thanks Ben I will try the second camera as per your instructions.

Oddly enough the first camera is starting to behave now. I haven’t made any changes so not quite sure what happened before. Looking at logs it shows the commands being sent and showing as successful and the app is showing the change as well.

What is the level indicator for? is this sensitivity? Looking back at your first post, it isn’t listed as a command so thought i’d ask

Any chance that on the things page could show the status of the camera. eg Active/Inactive instead of the motion button on/off? I noticed that it can be triggered in routines and wondering if this is why?

Either way, its the icing on the cake that routines can turn the motion command on/off. This is aa deal saver for me as I was prepared to sell the cameras and go for a fully installed IP camera system that does what I want (monitor my home differently when I’m in to when I am not). The useless out of the box app that just shows a live feed wasn’t of much use to me and then opens up to potential other choices of IP cameras.

Level is for motion detection sensitivity. Currently there is no way to keep an accurate status as the camera does not push information to SmartThings but rather SmartThings sends commands to the camera. It’s unfortunately a one-way street. The motion on/off is defined as the default button specifically so you can use it in routines. I also have a SmartApp that allows you to create virtual switches that link to the other functionalities in order to be able to leverage those in routines as well.

I am having difficulty with the discover of my DLink 5020L. I know this is NOT listed in the ST supported device list but is listed in this thread as an camera that is supported.
I have installed the the IDE parts - no problems there. Parent and 2 child - only published parent … etc
Did the input on the SmartApp of the IP address/ ports as directed above using the IP and Port 80 and then 554.
When I go ā€œADDā€ the camera in the Market place /Safety & Security/Cameras/D-Link/ the 5020L of course is NOT in the list - I have tried to pair as 5222L and 5029L - it searches but cannot discover the 5020L. I have tried a "generic " ADD THINGS as well.
Is there something I m missing to get the camera to be discovered within ST?
Details I am using ST mobile version 2.2.0 :
Samsung Note 5 Android version 6.0.1
Camera 5020L
Confirmed IP address and log in credentials … I have live feed in the DLINK App.

Thank you kindly for any direction in something I am overlooking or misunderstanding .