5 Star Service
This application note shows how to Associate two Z-Wave devices and use them to control a motion activated light that automatically turns On for a predefined period when motion is detected and the ambient light level is below a set threshold level.
The aim of this project is to automatically control a light:
For this project I used a Z-Wave system comprising of:
The Fibaro Motion Sensor GEN5 was chosen as it includes a motion sensor, a light sensor that can be used to stop the detector sending commands until the ambient light level is below or above a defined threshold, and it includes a variable delay that will send an Off command to the Fibaro after a preset time period.
In other words it has all we need to create this light control and if we associate it directly with the Fibaro Dimmer 2 module, we will not need to use the Vera controller for day-to-day control of the lighting.
Before going further, it's probably good to have a quick word about Z-Wave Association.
In most Z-Wave applications we configure them so that the central controller (Vera in this case) handles all commands. So for this example the motion detector would send a signal to the controller and as a second step the controller would send a command to the Fibaro dimmer.
However this adds unnecessary steps which can make this communication take too long. By Associating the motion detector and dimmer, enables the motion detector to send signals directly to the dimmer without involving the controller. This saves time, reduces the complexity of the communication and the amount of airtime taken.
Further information is available in Z-Wave Groups, Scenes & Associations.
For this system to work correctly we need to set some of the Fibaro's parameters, these are set in Vera by going to the Device Options tab.
For full information on setting device configuration parameters in Vera take a look at Application Note 102.
Being a battery operated device you’ll have to make sure the Fibaro Motion Sensor GEN5 is awake to receive the configuration parameters:
You can check if the parameter has been correctly saved by comparing Desired Value with Current Value.
Associating the Fibaro Sensor with the Dimmer module is very straightforward:
The Motion Sensor is now associated with the Fibaro Dimmer 2 Module, allowing it to directly control the dimmer via Z-Wave.
When the ambient light level is below the threshold, the motion detector will send an On command to the Fibaro dimmer to turn the light On.
After 60 seconds of no movement being detected the motion detector will then send an Off command to the dimmer, turning the light Off.