Z-Uno control Door lock

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
mamhoo
Posts: 15
Joined: 17 Jul 2019 11:17

Z-Uno control Door lock

Post by mamhoo »

Hello I try to use z-uno to control digital door lock.
I already added both z-uno (with secutity S0) and digital door lock to RaZberry then associate z-uno to digital door lock show you in image below.

https://drive.google.com/open?id=1pvRVb ... Yk6DaHBk5B
https://drive.google.com/open?id=1xwA4c ... I7CkEN_GAn

Z-uno code I use this example will show in code below

Code: Select all

byte buttonUpPressed = 0; // Is button Up pressed
byte buttonDownPressed = 0; // Is button Down pressed
ZUNO_SETUP_ASSOCIATIONS(ZUNO_ASSOCIATION_GROUP_DOORLOCK); // Works only if Security is enabled in Z-Uno!
void setup() {
pinMode(19, INPUT_PULLUP); // Two buttons to send On and Off
pinMode(20, INPUT_PULLUP); // Use internal pull up on both
}
void loop() {
if (digitalRead(19) == LOW) { // Button Up is pressed
if (buttonUpPressed == 0) { // It was not pressed – press event detected

zunoSendToGroupDoorlockControl(CTRL_GROUP_1, 255); // Open the door

buttonUpPressed = 1; // Save the state not to send the command again
}
} else {
buttonUpPressed = 0; // Reset the state on release
}
if (digitalRead(20) == LOW) { // Button Down is pressed
if (buttonDownPressed == 0) { // It was not pressed – press event detected

zunoSendToGroupDoorlockControl(CTRL_GROUP_1, 0); // Close the door
buttonDownPressed = 1; // Save the state not to send the command again
}
} else {
buttonDownPressed = 0; // Reset the state on release
}
delay(10); // Check buttons state every 10 ms
}
But it's not work.
Please advice.
User avatar
PoltoS
Posts: 7575
Joined: 26 Jan 2011 19:36

Re: Z-Uno control Door lock

Post by PoltoS »

If Z-Test (#8) is the Z-Uno then you have forgot to re-include the device after adding the Association group to Z-Uno - Z-Way does not see the group #2 for lock control.

You should re-include and add the #9 (lock) to the association group #2
Post Reply