Hi. I ended up following instructions from several threads, so hopefully this will help someone:
First, include the controller into your z-wave network like usual. Next, you’ll need to configure the controller. This utility was invaluable for this:
http://www.moonlitzwave.com/zensys-tools.zip
Shut down openHAB and launch this utility. Click the controller and wait for the device list to populate. If you get an error, close the program, remove the Z-Wave stick, reinsert it, then launch the software again. Click the Enerwave controller on the left (shows as Static Controller), then go to the Command Class tab on the right side. Select COMMAND_CLASS_ASSOCIATION_V2 on the Command Class dropdown, and ASSOCIATION_SET on the second Command Name dropdown.
Set the Grouping Identifier to 01, and set the Node ID to the ID of your controller (usually 1, check the list). Click Send. You should get a confirmation in the log underneath. Do this for group IDs all the way to 07. This tells the controller to associate with the controller for each of the 7 association groups (each group represents each button).
Next, set the Command Classes dropdown to COMMAND_CLASS_SCENE_CONTROLLER_CONF_V1 and the Command Name to SCENE_CONTROLLER_CONF_SET. Set the Group ID to 01, and the Scene ID to 01, then click Send. Change both fields to 02, then click Send. Do this all the way up to 07. This tells the scene controller to send the appropriate scene number for each association group.
Chris has added this controller to the database in the newer snapshots, so it shows up without any fight.
From here you can close the PC Controller utility and fire up OpenHAB. Here are my some of the item lines for my physical buttons:
Switch Switch_LR_SC_1 "LR SC Button 1" {zwave="13:command=SCENE_ACTIVATION,scene=1,state=0"}
Switch Switch_LR_SC_2 "LR SC Button 2" {zwave="13:command=SCENE_ACTIVATION,scene=2,state=0"}
Switch Switch_LR_SC_3 "LR SC Button 3" {zwave="13:command=SCENE_ACTIVATION,scene=3,state=0"}
Switch Switch_LR_SC_4 "LR SC Button 4" {zwave="13:command=SCENE_ACTIVATION,scene=4,state=0"}
The issue here is that pressing the button on the scene controller changes the OpenHAB switch to ‘ON’, but nothing turns it off. This is solved by using a rule to detect the updated state (even if it’s already ON). Here are my ‘virtual’ switches, which reflect the actual desired states:
Switch Switch_LR_SC_Entry "LR SC Entry Light"
Switch Switch_LR_SC_LR "LR SC LR Light"
Here are the rules I used to update the virtual switch based on which scene controller button is pressed:
rule "LR_SC_Entry OFF"
when
Item Switch_LR_SC_1 received update ON
then
sendCommand(Switch_LR_SC_Entry, OFF)
end
rule "LR_SC_Entry ON"
when
Item Switch_LR_SC_2 received update ON
then
sendCommand(Switch_LR_SC_Entry, ON)
end
rule "LR_SC_LR OFF"
when
Item Switch_LR_SC_3 received update ON
then
sendCommand(Switch_LR_SC_LR, OFF)
end
rule "LR_SC_LR ON"
when
Item Switch_LR_SC_4 received update ON
then
sendCommand(Switch_LR_SC_LR, ON)
end
So now pressing button 1 will turn the virtual switch off and pressing button 2 turns the virtual switch on. I then have a rule for each virtual switch, which will do whatever needs to be done:
rule "LR Scene Controller - Entry Light"
when
Item Switch_LR_SC_Entry received command
then
sendCommand(Switch_LR_SS_1,Switch_LR_SC_Entry.state.toString)
end
Using rules, you can have each button do pretty much anything you want. Eventually, I’d like to see if it’s possible to manipulate the LEDs on it, but I was satisfied enough getting basic functionality out of it.
Again, I hope this helps someone–reply if you have any questions.