Foscam IP Camera Plugin

Change the State value from -1 to 2 and do a Save. You may have to do a reload but a sensor device should appear shortly. That’s how I got my Foscam FI8905W sensor working.

I have an outdoor Wanscam on order and am hoping I can get that one to work as well as it’s basically a Foscam clone.

[quote=“BOFH, post:321, topic:171931”]Change the State value from -1 to 2 and do a Save. You may have to do a reload but a sensor device should appear shortly. That’s how I got my Foscam FI8905W sensor working.

I have an outdoor Wanscam on order and am hoping I can get that one to work as well as it’s basically a Foscam clone.[/quote]

Awesome! that did it. Now there not so useless… Thanks

[quote=“BrewFixer”]Sorry for continuing to make this thread longer but it is an absolutely fabulous thread. Besides the longer it gets the better the information…

So I have 2 main questions… I have 4 FOSCAMS F18918W that I have succeeded in implementing into my VeraLite thanks to this thread. P&T works fine as well as the presets. Zoom is still not working. Also on the face plates there is no image however once you go into the settings there is the live stream that I can P&T.

I have not done anything beyond this as I am struggling with a 5th camera.
I do have a Loftek outside of my home and tried only the FOSCAM and Generic settings. To no avail I can not get it in there. I know this site is mainly centered around the FOSCAMS but was wondering if there were any ideas how to try and get this into my system?
Here are my settings thus far for the FOSCAMS… Again I have not tweaked the settings as of yet but I am getting a little overwhelmed with the amount of different options. right now I just want maybe zoom, alarm and the faceplates to be correct. Thanks

Device #41

Controlled via No parent/Please select

Device params

nameSunroom Cam

device_type urn:schemas-upnp-org:device:DigitalSecurityCamera:2

altid

ip192.168.0.54

mac

manufacturer

model

room_num

id_parent

embedded

disabled

restricted

device_file D_DigitalSecurityCamera2.xml

id 41

room 0

time_created1381462491

plugin 1978

username admin

password XXXXXXX

impl_file I_FoscamPTZ.xml

category_num6

local_udn uuid:4d494342-5342-5645-0029-00000216413c

Variables

URL /snapshot.cgi

Timeout 5

PreRollBuffer0

StepSize 1

ReversePan0

ReverseTilt0

Commands camera_up,camera_down,camera_left,camera_right,camera_full_screen,camera_preset,camera_archive_snapshot

State -1

New service:

New variable:

New value:

UPDATE 1: LOFTEK Camera
decided to delete the loftek and reinstalled using the FOSCAM settings again and viola! Go figure! In this case it actually shows a snapshot on the faceplate. Still cant figure the FOSCAM faceplates out.

Interesting note that on my Droid AutHomationHD, all the cameras show a picture on the faceplate and I can control very normally and the presets work as well.

UPDATE 2:
well after a long nite of tinkering I got these working. I still can’t figure out the motion alarm feature. I don’t even see a setting for it. Without that, the cameras on my Z-Wave network is pretty much useless. At this point my Blue Iris has more functionality.[/quote]

Got it all working with your settings. But I don’t have the commands field in the advanced setup, neither the reverse pan and tilt fields. Do I have to manually add these fields?

http://www.duppeditten.com

[quote=“BOFH, post:321, topic:171931”]Change the State value from -1 to 2 and do a Save. You may have to do a reload but a sensor device should appear shortly. That’s how I got my Foscam FI8905W sensor working.

I have an outdoor Wanscam on order and am hoping I can get that one to work as well as it’s basically a Foscam clone.[/quote]

Thanks a lot

now motion sensor appeared on my vera but couldn’t get it to work , when i try to bypass it it gives me an error " no implementation "

[quote=“Ramiii, post:324, topic:171931”][quote=“BOFH, post:321, topic:171931”]Change the State value from -1 to 2 and do a Save. You may have to do a reload but a sensor device should appear shortly. That’s how I got my Foscam FI8905W sensor working.

I have an outdoor Wanscam on order and am hoping I can get that one to work as well as it’s basically a Foscam clone.[/quote]

Thanks a lot

now motion sensor appeared on my vera but couldn’t get it to work , when i try to bypass it it gives me an error " no implementation "[/quote]

Did you reload LUUP? I had to reboot Vera about 3 times and finally it took. Not that having to reboot something 3 times gives me confidence that this works good… on another note, I have a Loftek outside trying to do the same as the Foscam. I played with the state as it was set at default 3 and I had no motion sensor. Changed it to 2 then 1 and finally motion appeared.

my problem is , what to do after the motion sensor appears ? i can see it , it’s there , just not working.

Is ur cam armed? So not the device in vera, but really the cam. When that is armed, the sensor should trip

Yes. It’s armed. But it doesn’t trip

Sent from my iPhone using Tapatalk - now Free

[quote=“Da_JoJo, post:197, topic:171931”]got myself a Foscam FI9818W today and trying to get it work but it seems failing and indeed the plugin is now Vistacam and should support HD ?
snapshot url : /cgi-bin/CGIProxy.fcgi?cmd=snapPicture&usr=user&pwd=pass
Directstream url : /cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=user&pwd=pass < seems to give a internal server error 500 … ehh > see edit3:

here is a page with many settings for foscam: [url=http://www.ispyconnect.com/man.aspx?n=foscam]Connecting to IP Cameras

there seems to be something wrong with the parsing of username and pass or the image that is 1280x720 . i donno yet. have no time to figure it out. any ideas ?

edit: FI9821W seems to use same commands as 9818W.

edit2: i tried adding it as a generic ip-cam and put the [url=http://ip-adres:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture&usr=user&pwd=pass]http://ip-adres:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture&usr=user&pwd=pass[/url] in the box leaving the user and pass box empty. not work
have put : [url=http://ip-adres:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=pass]http://ip-adres:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=pass[/url] > not working > must be snapPicture2 for direct jpeg picture reply from ipcam
cant change portnumber as i have multiple cams around the house.

edit3: to get the video working in vera with a foscam 9818/9821 :
first set ipcam in foscam webinterface to AVI on stream 1 (this is standard setting if im not confused)
then set ipcam to mjpeg on substream in a new browsertab : http://ip-address:port/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=setSubStreamFormat&format=1 (use admin account or it will fail)
then set in device tab advanced on vera : Directstreaming url : /cgi-bin/CGIStream.cgi?cmd=GetMJStream&usr=controluser&pwd=password (or use admin account)

edit4: sdk shizzle [url=http://foscam.us/forum/download/file.php?id=606]http://foscam.us/forum/download/file.php?id=606[/url]

edit5: got it working :slight_smile:

settings :

In UI5 goto Apps> Install Apps and find “VistaCam PT&HD IP Cameras” and “VistaCam SD Motion Sensor Plugin” plugins and install these to your vera.
reboot the Vera after installation of these plugins.
Now go to IP-cam settings page and set the camera to port 80 and streamingport 880
after the IP-cam rebooted and is up n running > power-cycle the IP-cam (just pull plug, wait 15 secs and put plug back) it should automaticly add your IP-cam in vera
first open in new tab in browser and enter this:
http://ip-adres:port/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=setSubStreamFormat&format=1 (ip-adres is the ip of the ip-cam:port of ipcam. use admin account or it will fail)
open webinterface foscam and login with admin and set video > snapshotsettings to low and save
open webinterface foscam and set PTZ preset settings :
cruise tracks add : custom
add preset: Center > on right side : Center and Topmost
goto PTZ startup options and set startup option to: Go To Preset position > Preset selection : Center
in order to use the presets they have to be in order. 1 to 8 are used in the vera UI , so the preset you like to use need to be in same order 1 till 8.
upload attached “I_Foscam98HD.xml” to vera in UI goto Apps > Develop Apps > Luup Files
open in vera the ip-cam settings tab and fill in user&pass and save settings right top (it need admin for the motiondetect to work, alas this is not functioning yet)
goto advanced tab and see if it looks like this :

Device params

name Foscam FI9818W
device_type urn:schemas-upnp-org:device:DigitalSecurityCamera:2
altid
ip 192.168.1.180:80 < IP:port of your cam, put internet-adress of router and port-forward if u want to see it from internet (put it on port 81>internal 80)
mac < put here mac adress if not filled in, so you can store pics and video on MCV servers
manufacturer Foscam
model FI9818W
room_num
id_parent
embedded
disabled
restricted
device_file D_DigitalSecurityCamera2.xml
id 60 < is made automaticly by vera
time_created (some time added by vera)
category_num 6
subcategory_num 0
onDashboard 1
username controluser
password pass
room 1
impl_file I_Foscam98HD.xml
local_udn (some uuid:number added by vera)

Variables

Configured 0
LastUpdate 0
Timeout 5
DirectStreamingURL < these are auto-added by I_foscam98HD.xml file
PreRollBuffer 0
CommFailure 0
URL < these are auto-added by I_foscam98HD.xml file
StepSize 1
ReversePan 0
ReverseTilt 0
Commands < these are auto-added by I_foscam98HD.xml file
State 0
ReverseControls 0

=========================================================================================================================================

if you want to have more IP-cams then you would set port 81 on router to ip-cam_ip:80, port 82 for next cam to ipcam_ip port 80 , port 83 to ip-cam_ip port 80, 84 to ip-cam_ip:80 etc…
its not neccesary to put port 80 in vera settings tab or browser as this is default port that is used.

edit6:darn this formatting stuff is annoying as hell :-s
edit7: few corrections. it seems devicesettings need also username and pass for PTZ and preset to work. Big Thanks to Jukka !
edit8: fixed I_foscam98HD.xml , added videourl and login for picture/video parameter. see attached file. if its correct you only need to fill in user/pass now and the url get
automaticly written in URL and DirectstreamingURL parameter in device advanced settings.
edit9: added snapshot to commands in xml file
edit10: changed configsettings and added some more info
edit 11: fixed zoom option and typo[/quote]

HUGE HUGE HUGE thanks dude. Took me a while but its working at least. Only issue I have is its a very very low framerate. And when I full-screen the video, it drops big time. Any ideas?

I am using homewave from intveltr app and no problem…

but anothers apps I had problem when watching the cameras.

i updated my ipcam (9818W) to latest firmware found here : http://www.foscam.nl/index.php/support/downloads/category/52-firmware?download=157%3Afirmware-1.3.1.13
since i did it the thing seems to be more stable in providing picture and stream to the vera. mind that its for the V1 version. there is also a new V2 version.
@peeej1978 ur welcome :slight_smile: the thing is vera actually does not stream but refreshes the image, so it wont go any faster then it is now. its in vera firmware itself and i can’t do much about that. putting the webbrowser in fullscreen and then few double clicks on the browsers windowbar on top seems to bring back controls on the right side and makes it work a little better. probably some parsing error on the vera page.

Just got a FOSCAM FI8918W and can’t get it to work with Vera. Works fines with straight access via a browser to its IP address but Vera comes back saying requires a valid username and password… I have the proper user name and password in the settings since I use it to gain access in the browser direct mode.

Any suggestions? I’m puzzled. All config settings in the attached

OK solved it. I had upgraded camera firmware to latest so went back one rev and now it works. Something to do with password encryption added in latest and it isn’t compatible with Vera.

I moved camera firmware back to 11.37.2.52 after promoting to 11.37.2.54

Can anyone who has a working FI8918W post the settings for the motion detector? I got the motion detector on one of my cameras to appear tonight but I can’t get it to actually do anything. I know the motion detector in the camera is working because I walked in front of the camera with the camera status page on my tablet and it immediately went into motion alarm. But I can’t get Vera to trigger on the motion detector.

I noticed in the Advanced tab for the motion detector the device file is “D_MotionSensor1.xml” but there is no implementation file. Should there be an implementation file?

Any other settings that could cause the motion detector to not work?

Thanks.

first check if your foscam supports motiondetect url sending. in the foscam UI in settings for alarm there is a setting for opening url on alarm. if it does not have this it aint gonna work.
also it requires admin account in vera for the foscam to arm/disarm the motiondetect.
type this in internet explorer :

for non-HD cams :

http:///get_params.cgi
exchange the IP-CAM:port for the IP and Port of the foscam.

see if it has in there :

var alarm_http=1;
var alarm_http_url=‘http://:3480/data_request?id=lr_foscam_tripped&sensor_id=XX’; (id=XX being the motionsensor device on vera)

you can set the alarm trigger to disable/enable with :

http:///set_alarm.cgi?motion_armed=1 (enabled)
http:///set_alarm.cgi?motion_armed=0 (disabled)

alarm URL is being set by the foscam/vistacam motionsensor plugin.

it can also be set with :

http:///set_alarm.cgi?http=1&http_url=http://:3480/data_request?id=lr_foscam_tripped%26sensor_id=XX
where
IP-CAM:Port = the IP of the foscam (or clone) and the Port used
= the IP of your Vera
XX = the device ID of the motion-sensor in Vera

for HD cams (does not support alarm URL) :

http:///cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=

set motion detect on/off :

http:///cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd= > motion on
http:///cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd= > motion off

for the versions that have a alarm-out you can attach a fibaro binary sensor to it for the motion detection :

attach black and green (or yellow) wires to the alarm output.

[quote=“Da_JoJo, post:335, topic:171931”]first check if your foscam supports motiondetect url sending. in the foscam UI in settings for alarm there is a setting for opening url on alarm. if it does not have this it aint gonna work.
also it requires admin account in vera for the foscam to arm/disarm the motiondetect.
type this in internet explorer :

for non-HD cams :

http:///get_params.cgi
exchange the IP-CAM:port for the IP and Port of the foscam.

see if it has in there :

var alarm_http=1;
var alarm_http_url=‘http://:3480/data_request?id=lr_foscam_tripped&sensor_id=XX’; (id=XX being the motionsensor device on vera)[/quote]

Hi Da_JoJo,

Thanks very much for the help. I tried your suggestions without luck. Here is what I got in the parameters page after trying your suggestions:

var alarm_motion_armed=1;
var alarm_motion_sensitivity=0;
var alarm_motion_compensation=0;
var alarm_input_armed=1;
var alarm_ioin_level=1;
var alarm_sounddetect_armed=0;
var alarm_sounddetect_sensitivity=0;
var alarm_iolinkage=0;
var alarm_preset=0;
var alarm_ioout_level=1;
var alarm_mail=0;
var alarm_upload_interval=0;
var alarm_http=0;
var alarm_msn=0;
var alarm_http_url=‘http://192.168.1.20:3480/data_request?id=lr_foscam_tripped&sensor_id=92’;
var alarm_schedule_enable=0;

I’m guessing that the line “var alarm_http=0;” means this camera, or firmware version, doesn’t support motion detect URL sending? If so do you know if this is a camera issue (i.e., FI8918W) or firmware version issue? If a camera issue do you know which Foscam models support this feature?

Also, just a sanity check. Is “D_MotionSensor1.xml” the correct device_file and the implementation_file field should be blank?

Thanks again for your help.

[quote=“ufd108, post:334, topic:171931”]Can anyone who has a working FI8918W post the settings for the motion detector? I got the motion detector on one of my cameras to appear tonight but I can’t get it to actually do anything. I know the motion detector in the camera is working because I walked in front of the camera with the camera status page on my tablet and it immediately went into motion alarm. But I can’t get Vera to trigger on the motion detector.

I noticed in the Advanced tab for the motion detector the device file is “D_MotionSensor1.xml” but there is no implementation file. Should there be an implementation file?

Any other settings that could cause the motion detector to not work?

Thanks.[/quote]

I’m having similar issues on an 8910W. Any advice is appreciated.

Thanks!

the “var alarm_http=0” should be a 1 indeed to make the foscam send this URL to the vera. if you did the “http:///set_alarm.cgi?http=1&http_url=http://:3480/data_request?id=lr_foscam_tripped%26sensor_id=XX” line then it should set the alarm_http to 1 . offcourse this needs admin account on the foscam
there should not be an implementation file as this is controlled by the camera device in vera and this should also have admin account for the ip-cam.
i use the vistacam motionsensor but i had the idea that it does not take into account the part when u have vera extra secured and thus need a login for vera too. it also seems that i wont take the disarm motion command from vera. frankly i have no idea how to adress this and i dont have much time to figure it all out :-/

Thanks, I’ve gotten my issues sorted.

In my case, the motion sensor on the FI8910W camera was being tripped, but it would never untrip.

Turns out it wasn’t that the sensor wouldn’t untrip, it was just set to a default of 20 minutes. Changing the OnTime variable to 60 (seconds) solved the issue.

Just in case, here are the steps for the FI8910W. Tested with VistaCam SD, PT & HD Plugin v1.31:

[ul][li]Install the VistaCam SD, PT & HD Plugin and install the camera.[/li]
[li]On the camera, set the state field to 0 in order to get the motion sensor to show up.[/li]
[li]The device_type on the camera is urn:schemas-upnp-org:device:DigitalSecurityCamera:2[/li]
[li]On the camera, set the device_file to D_DigitalSecurityCamera2.xml. The implementation file is I_FoscamPTZ.xml[/li]
[li]The device file used for the motion sensor is D_MotionSensor1.xml. There is no implementation file.[/li]
[li]On the motion sensor, set the ontime to 60 (or however many seconds you want) if you want the motion sensor to untrip[/li][/ul]

I have another brand of camera - a polariod ip100 and the URL quoted here for enabling the alarm http gets an “ok” response from the camera but doesn’t work when you check the settings to see the result. Took a guess and got lucky - turns out the url for this camera is http:///set_alarm.cgi?http=1 (not alarm_http=1).