I just finished tweaking the Foscam plugin version 2.0 and written some documentation. Now it has support for motion sensor and presets. It should work for both UI4 and UI5. Presets are supported only in firmware versions starting with 1.5.390.
The documentation is here:
Note: On firmwares older than 1.5.390 arming and bypassing the motion sensor won’t work unless you upload this file on Vera. After you upload the file, you must reload the Luup engine.
Edit: By the way, those who don’t like the new version can get the old one here: http://code.mios.com/trac/mios_foscam-camera/browser#tags/1.0
Edit no.2: I updated the documentation with instructions for getting presets support in post 1.5.390 firmwares.
Edit no.3: It seems that the updated camera interface with 8 preset buttons didn’t make it into the beta release. I attached the updated file. Upload it on Apps >> Develop Apps >> Luup Files and reload Luup after uploading.