Hey everyone! I wanted to share a neat project I recently worked on with my Foscam camera. I’ve been trying to find a way to control the motion detection feature remotely, and after some research, I figured out how to do it using system variables in my home automation setup. This has been a game-changer for me, especially for monitoring different areas of my home without constantly adjusting settings manually.
Here’s what I did: I set up a system variable named KameraAlarmSet of type boolean. When this variable is set to true, it enables motion detection on my Foscam camera, and when it’s false, it disables it. The magic happens through some URL commands that I’ve been using to toggle the settings.
To enable motion detection, I use this URL:
http://kamera.fritz.box:PORT/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&…
And to disable it:
http://kamera.fritz.box:PORT/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&…
I’ve been able to automate this process using my smart home system, which means I can now control motion detection directly from my phone or even integrate it into routines.
One thing I struggled with initially was figuring out the exact URL commands and how to structure them properly. After some trial and error, I got it working smoothly. I’d love to hear if anyone else has tried something similar or has tips for improving this setup.
This project has really helped me streamline my home security system, and I’m excited to see how else I can expand on this idea in the future. Happy tinkering everyone! ![]()