Step 1 - Make sure you have the FoscamHD plugin installed
Step 2 - Go to Apps->Develop Apps->Create Device
Step 3 - set upnp device name = D_DigitalSecurityCamera2.xml and Upnp Implementation Filename = I_FoscamHD.xml
Step 4 - Click Create Device Button
Step 5 - Reload Luup
Step 6 - Refresh browser and check Cameras, new camera called "IP Camera Ext" should be created and displaying "Invalid Camera URL"
Step 7 - Go into advanced settings of device, and set ip address and port (eg. 192.168.0.38:88). Set username and password. Click Done.
Step 8 - Go back into advanced settings and click Extra Parameters
Step 9 - Go to New Service.
New Service = urn:micasaverde-com:serviceId:Camera1
New Variable = URL
New Value = cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=<username>&pwd=<password> Replace the <> with your details.
Step 9 - Click "Add" then Click "Reload Engine".
Step 10 - Refresh browser and go to your Camera, it should now be working.
This works for C1, C2 and R2 cameras. Should work for any HD Foscams with current firmware.
Works for me,greetings