Enable or disable Foscam fi8910w motion detection

I am having such a tough time figuring this out.
I have Foscam cameras, fi8910w
The enable and disable services do not work on this model. It works fine on newer models.
So my automation when I leave home to enable camera motion detection does not work on all cameras.
To fix this - I am using webhooks in IFTTT to achieve this via GET method and Life360, but I want HA to do control cameras.
Am i doing something wrong? If yes, please guide me.
Is it possible to run a command like this in an automation/switch that can enable the motion detection?
http://mycams.ddns.net:6061/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=xxxxxx
This is what I am using in IFTTT webhooks to currently activate the motion detection.
Any ideas?

1 Like

Ok, Figured it out. For those that might need this for similar cameras.
I used Rest_command to fix this.
In config yaml file enter the following:

rest_command:
  activate_office_camera: 
    url: http://mycams.ddns.net:6060/set_alarm.cgi?motion_armed=1&mail=1&user=admin&pwd=xxxxxx
  deactivate_office_camera: 
    url: http://mycams.ddns.net:6061/set_alarm.cgi?motion_armed=0&mail=0&user=admin&pwd=xxxxxx

Restart HA
Now you can use Call service in a script or automation. these will apprear as:

rest_command.activate_office_camera
rest_command.deactivate_office_camera

I used a script for activating all cameras and one for deactivating all. Now I can call them in automations or make a switch.
Hope this helps

1 Like