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 11.37.2.59 with web UI 2.4.10.10 and my FW on the 8918W is 11.37.2.48 with web UI 2.4.10.2).
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 add
5. 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=&pwd=â. 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://: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://:/set_alarm.cgi?http=1&http_url=http:///set_alarm.cgi?user=&pwd=&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%3A3480%2Fdata_request%3Fid%3Dlr_foscam_tripped%26sensor_id%3D
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://:/set_alarm.cgi?http=1&http_url=http:///set_alarm.cgi?user=&pwd=&motion_armed=1&input_armed=0&motion_sensitivity=5&iolinkage=0&mail=0&upload_interval=0&http=1&http_url=http%3A%2F%2F%3A3480%2Fdata_request%3Fid%3Dlr_foscam_tripped%26sensor_id%3D
Check the camera settings with URL âhttp:///get_params.cgiâ. Check that âalarm_httpâ is â1â (not â0â) and that âalarm_httpâ reads âvar alarm_http_url='http://:3480/data_request?id=lr_foscam_tripped&sensor_id=â
13. 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 or how 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!