Troubleshooting Motion Detection with Axis Camera

I’m trying to set up motion detection with my Axis camera in OpenHAB, but I’m running into some issues. Here’s what I’ve done so far and where I’m stuck:

  1. Camera Setup: I installed the Axis M2036-LE camera and confirmed it’s working by viewing the live feed through the Axis app. Motion detection is enabled on the camera itself, and it correctly triggers alerts there.

  2. OpenHAB Configuration: I added the camera as a Thing in OpenHAB using the IP Camera binding. The camera is online, and I can view the video stream in OpenHAB. However, none of the motion detection channels are updating—they all show ‘NULL’.

  3. Network Considerations: My OpenHAB setup is in a Docker container on a different VLAN from the camera. I suspect this might be causing some connectivity issues, especially with the motion detection events. I’ve tried exposing the necessary ports, but I’m not entirely sure if I’ve got it right.

  4. Logs and Diagnostics: I’ve checked the logs, but they don’t provide much clarity on why the motion detection isn’t working. I see entries about the camera being discovered and the video stream being accessed, but nothing about motion events.

  5. Next Steps: I’m considering the following approaches:

  • Double-checking the camera’s motion detection settings to ensure they’re correctly configured.
  • Verifying that the Docker container has the correct network settings to receive motion events from the camera.
  • Testing the setup with a different camera to see if the issue is specific to this model.

If anyone has successfully set up motion detection with an Axis camera in OpenHAB, especially in a multi-VLAN environment, I’d greatly appreciate any tips or troubleshooting steps you can share. Thanks in advance for your help!