Activating scenes using the input (IN) of the Fibaro Door/Window Sensor in Vera

We recently received a question on how to configure the door/window sensor from Fibaro (product FGK-101 / 107)  using the potential free input. This manual tries to explain how we have setup a configuration using  two scenes.

For a reference here you can find the Fibaro manual: 

FGK-101-107-Door-Window-Sensor-en-2.1 (1.5 MiB, 635 downloads)

Initial Setup

For this setup we use two plugins (PLEG):

  1. Program Logic Core (v. 5.93)
  2. Program Logic Event Generator (v. 5.93)

So make sure that you have these apps  installed before continue reading.

Including the D/W Sensor itself is straight forward. You can use the TMP switch on the back (or inside) to include the module into your Z-Wave network.

After installing the apps and including the module, your ui should look something like this:

Fibaro D/W Sensor & PLEG plugin
Fibaro D/W Sensor & PLEG plugin

Parameter Settings

To activate the scene functionality within the D/W Sensor, it is necessary to set parameter 14 to value 1 (default 0). In our case we also used a monostable switch for starting the different scenes (parameter 3, value 2).

Configure the parameters correctly (both 1 hex/dec):

 

Fibaro D/W Sensor Parameters
Fibaro D/W Sensor Parameters

When done, you need to save and refresh your browser (or perform a reload) to set all values correctly. You also need to reconfigure the device.

PLEG Configuration

The following pictures define which actions needs to be performed when a double click/triple click is detected. This is just an example to show how you can setup two scenes.

Under Inputs -> Device Properties, you need to define the properties which you want to use for your conditions. So we setup the following:

PLEG Device Properties
PLEG Device Properties

After that, you need to define the conditions when the scenes need to be activated:

PLEG Conditions
PLEG Conditions

As you can see above, we defined some scene numbers. These numbers correspond to the actions as explained in the manual (parameter 14):

  • Double Click ID = 14
  • Triple Click ID = 15

Last thing to do is to define the scenes itself. This can be done by configuring actions. In our case we attached two scenes, one for ToggleLamp and one for our Goodnight actions (e.g. switch all devices off).

Please note: your scenes will not become visible under the tab “Automation”. They can only be changed from within the PLEG plugin instance.

PLEG Actions

PLEG Actions

Last thing to do is to rename the PLEG instance to a name corresponding to your D/W Sensor (so you can easily find your way back after a while).

Rename PLEG to a simple name
Rename PLEG to a simple name

 

And now it’s time to test your setup!

When you do a double click, e.g. ToggleLamp, the corresponding scene will be executed. Doing a triple click, will perform the Goodnight action (e.g. switching all devices off).