My camera’s are all Foscam like camera’s and work well with the Foscam driver. These camera’s (and also many other camera’s) conform to the following standaard: IPCAM CGI SDKV1.7.
All camera’s are equiped with an alarm function which is capable of sending pictures in case of an (motion-based) event. This only works when the camera is in armed mode. In unarmed mode, the camera may not sent anything.
Within Fibaro, the function of Virtual Device can be used for this. The functionality will (for now) be limited to:
arm the camera;
disarm the camera;
Start with creating a virtual device:
The settings for this device are the same as for the camera. For your own convience use another name e.g. indicating the motion detection. I called mine Motion <ROOM> as I have 4 camera’s in 4 different rooms. You may choose whatever name you like.
Configure the virtual device with the following list of buttons:
I only use 2 buttons here. One for arming the system and one for disarming the system.
Last step is to define the scripts that needs to be performed when the buttons are pushed. Basically the communiction with the Foscam like camera is done via HTTP. The manual mentioned above gives you an idea of which parameters may be passed in the commands.
Arming the device is done by the following script:
GET /set_alarm.cgi?motion_armed=1&user=YOURADMINUSER&pwd=YOURPASSWORD HTTP/1.10x0D0x0A0x0D0x0A
motion_armed= 1 (armed) or 0 (disarmed)
youradminuser= your admin username
yourpassword = your admin password
The string at the end (HTTP …) must be attached to every command. It is just to indicate the type of request.
Disarming the device script is straightforward:
GET /set_alarm.cgi?motion_armed=0&user=YOURADMINUSER&pwd=YOURPASSWORD HTTP/1.10x0D0x0A0x0D0x0A
An important part of a home automation system is security. For my house I would like – besides the cameras – to save the images and safely put them away (in this case on a QNAP NAS, which in turn is connected to an online backup service).
The reasons are quite simple:
When the storage media may be stolen, just saving the images on the NAS is insufficient;
A fire or other disaster and all data will be lost too;
Furthermore I have the following requirements:
I would like to receive notifications about events (with images of the event), only when armed;
motion must be detected reliably (every movement, outside of pets, must be detected);
In order to ensure the camera is functioning properly within Fibaro HC2 it must be added correctly. First make sure that security parameters within the camera are set. For me it was necessary to give my Fibaro Home Center an administrator account on all camera’s (also necessary for movement of the camera’s)
This also ensures that the camera may be controlled by Fibaro (in the case of motorized cameras). Sending commands to the camera (remember to turn on the alarm mode on the camera) often requires administrator rights also. However, this can vary by camera model.
To receive notifications when an event occurs, I have to setup the mail settings (I use google as mailserver):
Last thing is testing the reliability and motion sensitivity. This can be set directly on the camera:
If all is correctly set it is time to add the camera to the Home Center.
This will result in:
When you receive a stream, try to move the camera. You may also try to take a picture (you will receive an email per picture you take). In my case, I had to shift the right & left CGI command.