I have had some real trouble with getting my two Foscam IP cameras (8910W and 8918W) to work as cameras and motion sensors in Vera (http://forum.micasaverde.com/index.php/topic,11027.msg178168.html#msg178168
I think I finally solved it. The final piece was with the help of this post http://forum.micasaverde.com/index.php/topic,11472.msg132022.html#msg132022
I now present my own step-by-step guide for getting the Foscam 8910W and 8918W cameras to work as motion sensors with Vera! 0.
Yes, 0! Set up the Foscams to work as motion sensors using the built-in UI. You will need to set up e-mail under "Mail Service Settings" and enable motion detection under "Alarm Service Settings". Make sure this work standalone before trying to get it to work in Vera... Also make sure the cameras have the latest FW (my FW on the 8910W is 126.96.36.199 with web UI 188.8.131.52 and my FW on the 8918W is 184.108.40.206 with web UI 220.127.116.11).1.
On the Vera, go to Setup->Unit settings->Do you want to secure this Vera?->"No" (unclear if this is necessary)2.
Setup->Net & Wi-fi->Uncheck "Auto detect devices on my home network" (unclear if this is necessary, but I think it prevents plugin #3866 "VistaCam SD, PT & HD for UI5" and/or plugin #2158 "Wintop zCam IP Camera" from being automatically installed)3.
Install plugin "Foscam IP Camera" #1978. Make sure plugin #3866 "VistaCam SD, PT & HD for UI5" and/or plugin #2158 "Wintop zCam IP Camera" is NOT installed.4.
Devices->Add Devices->I want to add an IP Camera->Manually add5.
Fill in the cameras IP under "Or, if your camera is not on the list, paste the URL which returns a JPG file in the box below". Just the IP.6.
Choose "Foscam Camera" under "What type of camera is it?". Replace the double "//" before snapshot.cgi in the URL with a single "/". We will change this URL soon to take into account Foscams latest FW with changes in security protocols.7.
Fill in the user name and password. Click next.8.
You will NOT see an image. That is OK. Click Add. The camera is added and Vera refresh.9.
Click the wrench icon on the newly created camera device ("Foscam Camera"). Under Settings->URL use this URL insead of just "/snapshot.cgi"; "/snapshot.cgi?user=<USER>&pwd=<PASSWORD>". Save and refresh Vera.10.
Click the wrench icon again and change the "State" variable under "Advanced" from "-1" to "2". Save and refresh. You will get this message "Foscam Camera : Reload Luup to create motion sensor". Reload LUUP by running this URL in a browser "http://<VERAIP>:3480/data_request?id=reload".11.
You will get a "Foscam Camera : Failed to configure camera" error.. You will also get a "Lua Startup Failure" error on the camera device. Panic (no, not really... just keep reading). The "State" variable has been changed to "1". Change it back to "2". Check that the "GatewayAddress" variable under "Advanced" is set to Veras IP. Save and reload.12.
Now for some Swedish "fulhack"!
Run this URL in a browser: http://<cameraIP>:<port>/set_alarm.cgi?http=1&http_url=http://<cameraIP>/set_alarm.cgi?user=<user>&pwd=<password>&motion_armed=1&input_armed=0&motion_sensitivity=5&iolinkage=0&mail=0&upload_interval=0&schedule_enable=0&schedule_sun_0=0&schedule_sun_1=0&schedule_sun_2=0&schedule_mon_0=0&schedule_mon_1=0&schedule_mon_2=0&schedule_tue_0=0&schedule_tue_1=0&schedule_tue_2=0&schedule_wed_0=0&schedule_wed_1=0&schedule_wed_2=0&schedule_thu_0=0&schedule_thu_1=0&schedule_thu_2=0&schedule_fri_0=0&schedule_fri_1=0&schedule_fri_2=0&schedule_sat_0=0&schedule_sat_1=0&schedule_sat_2=0&http=1&http_url=http%3A%2F%2F<VeraIP>%3A3480%2Fdata_request%3Fid%3Dlr_foscam_tripped%26sensor_id%3D<motionsensorID>
You should get a reassuring "OK". Otherwise, try to remove the code bits about schedules (I had to do this on my 8910W). The URL should then look like this:http://<cameraIP>:<port>/set_alarm.cgi?http=1&http_url=http://<cameraIP>/set_alarm.cgi?user=<user>&pwd=<password>&motion_armed=1&input_armed=0&motion_sensitivity=5&iolinkage=0&mail=0&upload_interval=0&http=1&http_url=http%3A%2F%2F<VeraIP>%3A3480%2Fdata_request%3Fid%3Dlr_foscam_tripped%26sensor_id%3D<motionsensorID>
Check the camera settings with URL "http://<cameraIP>/get_params.cgi". Check that "alarm_http" is "1" (not "0") and that "alarm_http" reads "var alarm_http_url='http://<VeraIP>
Reload Vera. The motion sensor should now work! It can be tripped and will reset to a secure status according to the "OnTime" variable under "Advanced" in the settings for the motion sensor device. The variable is in seconds, so the default 1200 is 20 min. I have set it to 300 (5 min.). It seems to work (another user had problems with values other than the default).
I use my Foscams as baby monitors. Now, after I have put the kids to bed, I can arm the motion sensor device using a Duwi wall switch and get voice notifications (using TTS) from my wall mounted tablet if something is up and about. When their naps are over I can bypass the motion sensor using the same wall switch and not get flooded by notifications when we are in the room playing!
I do not know why
this works and the only thing I have done is using scraps of information found in these forums and trial and error. However, it seems to be working and I hope it could help someone else trying to get this to work!