Add D-link DCS-933L to HA

I should to turn on and off the motion detection on your camera. I use this to turn on or off the motion detection the a door switch is turn on then nobody is home. I have a D-link dcs 5000l

curl -k "http://USER:PASSWORD@IP-ADDRESS:PORT/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No"

curl -k "http://USER:PASSWORD@IP-ADDRESS:PORT/motion.cgi?MotionDetectionEnable=0&ConfigReboot=No"
1 Like

Did you get the answer in the last post of Henrik?
Anyways, if I remember correctly, in the browser it ask for username and password regardless of you paste in your password and username in the beginning of the link. You have to use the rememember password in your browser for it to show in your browser. But as for the command line switch, that is irrelevant.

Here is my setup:

 - platform: command_line
   switches:
     360_motion:
       command_on: 'curl -k "http://YOURUSER:YOURPASSWORD@YOURIPADRESS/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No&user=YOURUSER&pwd=YOURPASSWORD"'
       command_off: 'curl -k "http://YOURUSER:YOURPASSWORD@YOURIPADRESS/motion.cgi?MotionDetectionEnable=0&ConfigReboot=No&user=YOURUSER&pwd=YOURPASSWORD"'

Don`t remember excactly what the problem was, meaby that I forgot the sign ’ at the start and end.

I also have set it up so I can change between day and night mode, and have set up presets positions, if you have a pan/tilt camera. I would be happy to share if this is something of interest.

I have s dcs-2530l and would want to turn on/off privacy mode from HA. Is there anyone here that’ve done that?

A (relatively) more complex way, but much more secure and flexible, would involve using an external surveillance service such as ZoneMinder, MotionEye, etc.

I use MotionEye with DCS-935L (but any IP camera can be integrated) - Docker version, in order not to fiddle with installing it directly on the server; and there is also MotionEyeOS option running on single boards computers such as Rpi. However, for multiple cameras, the motion detection engine requires an x86 processor in order to run properly.

Still, MotionEyeOS on Rpi0 wireless with the Camera module makes for a great network camera. The only downside is that it won’t be able to run motion detection locally and would need the MotionEye server to do it.

LAN functionality only (have the router block internet access for all cameras, integrate MotionEye in HA thus have only HA dealing with external access and alerts) is way more secure than using the manufacturer’s app (or apps, if having cameras from different manufacturers) to send alerts to phone and access live streams. Most of the IOT devices that access manufacturers’ servers are inherently insecure.

MotionEye can send a MQTT message whenever motion is detected (and another when motion stops). Then, from HA, automations can be set based on one’s needs: when to ignore/when to act on the motion detection, run only during some time intervals, run only when away, only when alarm is set, etc.

Thank you for your respons.

I’m gonna look into that!

I’m not gonna use the cameras motion detection since it’s totaly worthless on the 2530L it detects motion all the time, even if i have deselected all windows etc. and only detects motion in the room itself. I have even tried to lower the sencitivity but that doesn’t help. I have a separate motion detector connected to HA that i’m gonna use to trigger alerts and to take pictures.

Hi,
have you succeeded installing DCS935L on Home assistant.
Tell me how did you do?
Have tried to put in HA DCS 935L without results.

Hi Petrica,
can you explain to me how have you succeeded installing DCS935L in Home Assistant. I have tried several settings without results.
I have Home Assistant hassIO installed and have lovelace mode.
Grateful for answers

Hi Chris,

You can only add those by the generic mjpeg camera component (to my knowledge)

In the config file

camera:
  - platform: mjpeg
    name: Camera office
    still_image_url: http://USER:[email protected]:80/image/jpeg.cgi
    mjpeg_url: http://USER:[email protected]:80/mjpeg.cgi

So you put your username:password before the ‘@’ and your ip adresse after (those for the camera, not for HA).

If that dosen’t work you will have to play with the last part of the url, google and your model name :stuck_out_tongue:, but it works for my DSC-933L

Now i have fixed with platform mjpg, it works dcs935L in ha.
But i have a question how can I fix to see the camera in the mobile browser.

Hi all, i have add my ip camera dlink 5000. there is the possibily to insert the command to turn left/right/up/down the camera? thank you on advance.

I am also interested in configuring my DCS-933L and viewing the Live VIdeo Feed using a raspberyr pi. Any help in this regard would be highly appreciated.

I don’t know the command to control directly the pan/tilt, but I have a DCS-5020L and I can (with an html get) navigate to a preset of the camera (I use node-red to do the HTML get)

url : http://USER:[email protected]:80//pantiltcontrol.cgi?PanTiltPresetPositionMove=1

Where the 1 at the end is the preset number

The only way to do that a the moment is told here :

When I try to add my D-link 930L motionEye says it does not support this camera. Is 935 different you think?

They’re probably different. Try to add it to motioneye with http://192.168.x.y/video/mjpg.cgi

See this link:
https://www.ispyconnect.com/man.aspx?n=d-link&page=15#

If you are able to browse the local address in the format above then you should also be able to add the camera in motioneye.

Just to add my 2 cents on a slightly different camera model in the hope it will help someone else, I have a D-Link DCS-935L and none of the above allowed me to add my camera to enable the stream (I got the still_image fine) my resolution was:

camera:
 - platform: mjpeg
    Name: XXYourFriendlyDCS935CamNameXX
    still_image_url: http://XXUserXX:[email protected]:80/image/jpeg.cgi
    mjpeg_url: http://XXUserXX:[email protected]/video/mjpg.cgi

Importantly (to me because I didn’t read the above) you DO NOT require the port number (80) in the link to the video stream. This only took me 3 weeks to figure out.

I edited the above realising that I’d put the wrong camera model name in, for clarity I also have a D-Link DCS-932L which settings that work are…

camera:
  - platform: mjpeg
    name: XXYourFriendlyDCS932CamNameXX
    still_image_url: http://XXUserXX:[email protected]:80/image/jpeg.cgi
    mjpeg_url: http://XXUserXX:[email protected]:80/mjpeg.cgi

I think that for most services port is mandatory only if different from the default value (80 for http, 443 for https).

Bizarrely though entering the port number failed to work, it was only once I’d removed it that it worked. My other D-Link camera (that I’ve now added above) also uses port 80 and entering it in the url had no issues in getting it to work?

Could you please try this custom component?

It works but the problem is that when and/if the camera is unreachable, HA gui becomes unresponsive until the core is restarted. Also using binary_sensor is deprecated.