OnnoH wrote:but you mention in step 7) to press the special button on the remote power switch. Do you mean that you have to include Z-wave devices within the RaZberry UI, before NexaHome can use them? If so, I'm allready there.
Yes, that is correct
OnnoH wrote:
So far so good, but now comes the sad part: NexaHome doesn't seem able to control the devices.
Please upgrade to NH v3.2.5
OnnoH wrote:Can you elaborate a bit more on the RaZBerry integration and also show how you can put the sensor support to good use, e.g. attach a motion detector to a light source?
To see sensor values in the console window select menu option 'View --> Raw Sensor Data (Console)'
eg.
2013-07-25 15:51:57 RawEvent: class:sensor;id:5;model:zwave;temperature:24.5;
2013-07-25 15:51:57 RawEvent: class:sensor;id:5;model:zwave;luminescence:1000;
2013-07-25 15:51:57 RawEvent: class:sensor;id:5;model:zwave;humidity:56;
Update the 'Parameters' field for the 'Temp In' row (Id 51)
1) select which sensor to be used by entering the
id and/or model parameters
2) select the parameter to be copied by adding
;value:<parameter>
eg.
Code: Select all
id:5;model:zwave;value:temperature
Do the following to attach a motion detector to a light source:
1) find the 'Id' column for the detector you want to use
eg. 205
2) find the 'Id' column for the light source you want to turn on/off
eg. 210
3) create a bsh file <Id>.bsh to be executed when detector is triggered
/home/pi/nexahome/205.bsh
Code: Select all
detector_device = "205";
light_device = "210";
light_device_off = "t210off";
seconds = 90; // seconds to keep light on after detector has switched off
if (timerIsRunning(light_device_off)) {
stopTimer(light_device_off);
}
if (deviceIsOn(detector_device)) {
echo("Detector ON");
deviceOn(light_device);
} else {
if (deviceIsOn(light_device)) {
echo("Detector OFF");
startTimer(light_device_off, seconds);
}
}
4) create a bsh file that turns off the light source
/home/pi/nexahome/t210off.bsh
Code: Select all
detector_device = "205";
light_device = "210";
if (deviceIsOff(detector_device)) {
deviceOff(light_device);
}