Add D-link DCS-933L to HA

Hi! Is it possible to add D-Link DCS-933L to HA? Which platform should I use for the camera component? Any example?

1 Like

I guess that there is no new platform needed, just use one of the generic ones (Generic IP Camera or Generic MJPEG IP Camera).

Will try what! Thx

Next question. I’m trying to make HA to track motion if nobody is home. When ip camera detects motion i will ge some picture/pictures from the camera that did the detection. Any idea för the config or where i can find som help.

Is it possible to modify forscam_motion switch to work with D-link DCS-933L? Anyone use this code on a camare that is not a foscam?

switch:
  platform: command_line
  switches:
    foscam_motion:
      command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
      command_off: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password"'
      command_state: 'curl -k --silent "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password" | grep -oP "(?<=isEnable>).*?(?=</isEnable>)"'
      value_template: '{{ value == "1" }}'

Motiondetection=on
"http://192.168.1.140:80/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No&user=XXUSERXX&pwd=XXPASSXX"

Motiondetection=off
"http://192.168.1.140:80/motion.cgi?MotionDetectionEnable=0&ConfigReboot=No&user=XXUSERXX&pwd=XXPASSXX"

Hi,
I have tried this configuration without any luck on my D-link cameras. When I try the adress in the browser, it asks after the password and username. Is there anyway of implementing the username and password in the string? It didn`t work to just replace the xxuserxx and xxpassxx.

http://USER:[email protected]_IP:PORT/mjpeg.cgi

Thank you, but for the video I have already done as you speak of. I was thinking of the possibility to turn on and off motion detection. The motion detection turns on or off when I paste your adress, but in my browser it still ask for the password. Any workaround?
Thank you.

Got it working, thank you :slight_smile:

switch:
  platform: command_line
  switches:
    foscam_motion:
      command_on: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'
      command_off: 'curl -k "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password"'
      command_state: 'curl -k --silent "https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password" | grep -oP "(?<=isEnable>).*?(?=</isEnable>)"'
      value_template: '{{ value == "1" }}'

This function is what I am trying to learn - where does this go? cheers

Please use `` on your message. You will find the action in the toptab. </>

Would you please care to share your solution ?

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:[email protected]:PORT/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No"

curl -k "http://USER:[email protected]: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:[email protected]/motion.cgi?MotionDetectionEnable=1&ConfigReboot=No&user=YOURUSER&pwd=YOURPASSWORD"'
       command_off: 'curl -k "http://YOURUSER:[email protected]/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