I recently purchased some Sitecom WLC-1000 Cameras and have been experimenting with integrating them into my OpenHAB setup. While the cameras themselves are great for indoor use, I found the software a bit lacking, especially when it comes to scheduling motion detection. I wanted to enable motion detection only when I’m away, but manually toggling three cameras every time I leave or come home seemed impractical. After some research, I discovered that I could use the camera’s settings URLs and Python scripts to automate this process. I already had an alarm system set up in OpenHAB that triggers lights and notifications, so I decided to leverage this setup to control the cameras. Here’s what I did: I created two Python scripts—one to enable motion detection and another to disable it. These scripts send XML commands to the camera’s API. For example, to enable motion detection, the script sends: xml<MOTION_DETECTION>ON3</MOTION_DETECTION>And to disable it:xml<MOTION_DETECTION>OFF3</MOTION_DETECTION>I then set up a simple rule in OpenHAB that triggers these scripts based on my alarm system’s status. Now, when my alarm is activated, motion detection on all cameras turns on, and when it’s deactivated, motion detection turns off. This integration has been a game-changer for me, as it reduces unnecessary notifications and saves battery life on the cameras. I’ve also experimented with audio detection using a similar approach and plan to explore more automation possibilities in the future. If anyone else is working on similar integrations or has questions about OpenHAB scripting, feel free to reach out! I’d be happy to share more details or troubleshoot issues together.