The Z-UNO is a great idea and I tried to include a device in the Piper NV controller. The red LED flashed a couple of times and it looks like the devices are communicating (red and green flashing) but then the Piper reports "Piper did not receive a signal from the wireless accessory". Once removed (yes, I had to remove it although it was not listed) I disabled security and re-initiated the inclusion process. This time, it worked and the device seems to work. I tried the following code:
Code: Select all
#define PIN_OPEN 13
#define PIN_CLOSE 14
byte DoorValue;
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(getter, setter));
void setup() {
pinMode(PIN_OPEN, OUTPUT);
pinMode(PIN_CLOSE, OUTPUT);
}
void loop() {
// loop is empty, because all the control comes over the Z-Wave
}
void setter(byte value) {
if (value > 0) {
digitalWrite (PIN_OPEN, HIGH);
delay(200);
digitalWrite (PIN_OPEN, LOW);
} else {
digitalWrite (PIN_CLOSE, HIGH);
delay(200);
digitalWrite (PIN_CLOSE, LOW);
}
DoorValue = value;
}
byte getter() {
return DoorValue;
}
Instead of a simple switch, two switch controls are listed in the Piper controller - and both controls are coupled. Still working on it, but so far I'm happy that Zuno seems to be supported by the Piper...