How does Foscam motion sensor work with vera

Hey

I was searching the forums for any info about this with no luck , how does the motion sensor work ? i have pan / tilt working , foscam plugin didn’t work so i had to add it manually , all manual configuration and just found a post on how to enable the motion sensor and it’s enabled now , a new motion sensor have been added to my devises but i’m not sure how it works , it’s always armed , its doesn’t get triggered at all , motion is enabled in the cam via it’s control panel . what am i missing here ?

You forgot to mention which Foscam camera you have. The main difference being a normal one or an HD one.

I have my normal 8910’s working fine, but my 9821’s have the same problem as yours. I even uninstalled all my cameras and reinstalled and have the same issue.

Did you check the is http_alarm is set to 1 in the camera?

Looking at the Foscam Forums the 9821 does not have the http_alarm feature.

If you have BlueIris than you can use a batch file to run wget to trigger a scene in Vera that trips the motion sensor for the Foscam camera and then resets it a minute later.

Thank you to Cor on this post for showing the wget command to execute a scene in Vera from the computer on BlueIris ([url=http://forum.micasaverde.com/index.php/topic,15076.msg114710.html#msg114710]http://forum.micasaverde.com/index.php/topic,15076.msg114710.html#msg114710[/url]). Use those instruction to put the command in a batch file, mine is called livingRoomMotion.bat.

In BlueIris go into the properties of the camera, then the “Alert” tab and click the check box “Run a program or execute a script” click the “Configure” button next to it and select your *.bat file.

Here is my Lua script in the scene

[code]-- Set Motion Sensor on Living Room Camera
function SetMotionSensor()
luup.variable_set(“urn:micasaverde-com:serviceId:SecuritySensor1”,“Tripped”,“1”,115)
luup.call_delay(“ResetMotionSensor”,60)
end

– Reset Motion Sensor on Living Room Camera
function ResetMotionSensor()
luup.variable_set(“urn:micasaverde-com:serviceId:SecuritySensor1”,“Tripped”,“0”,115)
end

luup.call_delay(“SetMotionSensor”,0)[/code]

I actually like this better because I have more control over the motion detection and can mask out areas. I may do this for the rest of my camera’s as well, even though they are working.