Foscam camera motion detection switch

Hi all,
I recently bougth a FI9901EP foscam camera. so far is working great, i’ve been able to add it to home assistant using the foscam integration. (also been able to add to survillance station, i’m running HA on a docker on a synology nas)
Now I’m trying to use the CGI commands to create a switch on HA to activate/deactivate the motion detection.

I’m following this:
https://www.home-assistant.io/cookbook/foscam_away_mode_PTZ/

I create the switch but when I click on it, it goes back to on state all the time.
Trying to figure out what is wrong I just try the command on the web browser

http://192.168.1.57:88/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=camara01&pwd=Camara01
been camara01 name of the camara and Camara01 the pwd

I’m having this result:
<CGI_Result>
-3
</CGI_Result>
checking the Foscam CGI user guide it means -3 Access deny
Anyone know if this model support CGI commands and in this case, what i’m doing wrong??
Thanks guys!!!

1 Like

Looking into this as well.
As you can set the movement detection in Surveillance Station to “by camera” I would assume it is possible to get information from the Camera whenever it detects movement…

are you sure that your user is an “admin”?

1 Like