IP camera binding with motion detect is not working as expected with Foscam camA

I use OH 4.1 and the latest IP camera binding.

The foscam camera is working with the mobile app and detects human motion. Now when reading out the CGI for the getMotionDetectConfig I get this:

<CGI_Result>
    <result>0</result>
    <isEnable>1</isEnable>
    <linkage>646</linkage>
    <snapInterval>1</snapInterval>
    <sensitivity>2</sensitivity>
    <triggerInterval>0</triggerInterval>
    <isMovAlarmEnable>1</isMovAlarmEnable>
    <isPirAlarmEnable>0</isPirAlarmEnable>
    <schedule0>281474976645119</schedule0>
    <schedule1>281474976645119</schedule1>
    <schedule2>281474976645119</schedule2>
    <schedule3>281474976645119</schedule3>
    <schedule4>281474976710655</schedule4>
    <schedule5>281474976710655</schedule5>
    <schedule6>281474976645119</schedule6>
    <area0>120</area0>
    <area1>120</area1>
    <area2>120</area2>
    <area3>120</area3>
    <area4>120</area4>
    <area5>120</area5>
    <area6>120</area6>
    <area7>120</area7>
    <area8>120</area8>
    <area9>120</area9>
    <humanEnable>1</humanEnable>
    <carEnable>0</carEnable>
    <petEnable>0</petEnable>
    <crossLineEnable>0</crossLineEnable>
    <OnlyDtPed>0</OnlyDtPed>
    <isEnableLine0>0</isEnableLine0>
    <line0Direction>0</line0Direction>
    <line0StartX>0</line0StartX>
    <line0StartY>0</line0StartY>
    <line0EndX>0</line0EndX>
    <line0EndY>0</line0EndY>
    <isEnableLine1>0</isEnableLine1>
    <line1Direction>0</line1Direction>
    <line1StartX>0</line1StartX>
    <line1StartY>0</line1StartY>
    <line1EndX>0</line1EndX>
    <line1EndY>0</line1EndY>
    <isEnableLine2>0</isEnableLine2>
    <line2Direction>0</line2Direction>
    <line2StartX>0</line2StartX>
    <line2StartY>0</line2StartY>
    <line2EndX>0</line2EndX>
    <line2EndY>0</line2EndY>
    <isEnableLine3>0</isEnableLine3>
    <line3Direction>0</line3Direction>
    <line3StartX>0</line3StartX>
    <line3StartY>0</line3StartY>
    <line3EndX>0</line3EndX>
    <line3EndY>0</line3EndY>
</CGI_Result>```

Here the second entry is:

<isEnable>1</isEnable>
which tells me the detection is ON - correct?

But the OH trace log gives me:

<motionDetectAlarm>0</motionDetectAlarm>
Do you have an idea why the binding says 0 here even when I set it?

Thank you

I may be wrong, but

<humanEnable>1</humanEnable>
<carEnable>0</carEnable>
<petEnable>0</petEnable>
<crossLineEnable>0</crossLineEnable>
<isEnableLine0>0</isEnableLine0>
<isEnableLine1>0</isEnableLine1>
<isEnableLine2>0</isEnableLine2>

Maybe you have to define an area for motion detection?

Indeed this is a good point. When I check the API from foscam:

[type or paste code here](https://alarmforum.de/attachment.php?aid=2467)

I can not see on page 20 what is the meaning of the “isEnableLine0”…

It is not mention how to set it to 1 as well. Do you have an idea what is the meaning?

My guess is, you have to define the region where motion should be detected.

according the manual those command is used for future purpose. The region where motion is detected is set in the app as well as with the CGI.

I still think the binding has a bug otherwise it is not explainable. Is there a way to check the binding? Who can do that?