For those of you who also struggle with the setup and configuration of the ZHC5010 Fuga Module, I have now found a way to configure the 4 buttons to work with openHAB.
Essentially there are three things, that I want to accomplish, depending on the use case:
Button Pressed (Scene)
If you wish to receive a command every time any of the four buttons is pressed, to trigger a scene, you can use the solution presented here, which uses Central Scene. However, this does not sync the state of the button ON/OFF with openHAB.
Buttons ON/OFF (Switch)
If you wish to receive an ON/OFF command every time any of the four buttons is pressed, to sync the state of the physical buttons with a switch item in openHAB, you must configure the device properly, so that the correct item receives the ON/OFF update.
The device has five switches. The relay and the four buttons. They are called 1.0, 1.1, 1.2, 1.3 and 1.4
For openHAB to recognize a press on e.g. button 2, the device must send a ON/OFF to 1.2. However, because of problems with the multichannel associations via HABmin, the proper configuration could not be made, thus all button presses trigger an ON/OFF to 1.0, no matter which one of the buttons 1.1, 1.2, 1.3 og 1.4 was actually pressed.
Solution: You can make the multichannel association via the openHAB API.
Use the openHAB API to configure the Multichannel Associations for each of the four buttons. I have done it like in the screenshot below:
I did execute a configuration change via the API 4x times. One for each button. The config values used for the four buttons were:
{“group_4”:[“node_1_1”]}
{“group_9”:[“node_1_2”]}
{“group_14”:[“node_1_3”]}
{“group_19”:[“node_1_4”]}
The association groups 4, 9, 14 and 19 set the Binary Switch Set On / Off for each of the buttons, according to the manufacturer manual.
LED ON/OFF (Switch)
You can make the LEDs follow the same or inverted state of the button (by configuration), so you can see if the button is ON or OFF. However, you may wish to control the LEDs independently from the buttons. This would allow more complex use cases for the switch module.
E.g.:
- Press Button 1 (sends ON to openHAB)
- openHAB performs some checks (are all windows closed?)
- LED 1 is turned ON, to confirm that all checks have passed and the alarm system is now active.
Controlling the LEDs individually is possible to my knowledge with the Z-Wave Indicator Class, which should be supported by the device. An issue has already been raised for the openHAB Z-Wave binding, to enable support for this. I hope it will be implemented soon. Please indicate your support for this feature request, if you can also use the indicator class implementation