Logic Group ZDB5100 Matrix Switch

I got a https://logic-group.com/products/matrix-switches/#MatrixDBtab that I have added in HA.

It shows up as switch(s) in Home assistant. I can toggle the switches in HA which makes the leds on the switch change color. However, I don’t catch anything when pressing the buttons on the wall switch.

Out of desperation I followed this guide for the sister switch from the same company:
https://jope.eu/logichome-zhc5010-z-wave-switch/
It did not change anything.

Here is an example from the log when a button is pressed.

2019-10-24 21:02:17.086 Detail, Node007,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x07, 0x07, 0x60, 0x0d, 0x01, 0x01, 0x20, 0x03, 0xff, 0x47
2019-10-24 21:02:17.086 Detail,
2019-10-24 21:02:17.086 Error, Node007, Cannot find endpoint map to instance for Command Class COMMAND_CLASS_BASIC endpoint 1
2019-10-24 21:02:17.105 Detail, Node007,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x07, 0x05, 0x5b, 0x03, 0x82, 0x80, 0x01, 0xa9
2019-10-24 21:02:17.105 Detail,
2019-10-24 21:02:17.105 Info, Node007, Received Central Scene set from node 7: scene id=1 in 7680 seconds. Sending event notification.
2019-10-24 21:02:17.105 Warning, Node007, No ValueID created for Scene 1
2019-10-24 21:02:17.126 Detail, Node007,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x07, 0x05, 0x26, 0x03, 0x36, 0x36, 0x00, 0xd7
2019-10-24 21:02:17.127 Detail,
2019-10-24 21:02:17.127 Info, Node007, Received SwitchMultiLevel report: level=54
2019-10-24 21:02:17.127 Detail, Node007, Refreshed Value: old value=0, new value=54, type=byte
2019-10-24 21:02:17.127 Detail, Node007, Changes to this value are not verified
2019-10-24 21:02:17.127 Detail, Node007, Notification: ValueChanged

I basically aim to be able to catch a single, double and tribble click on each of the four buttons on the switch in order to trigger automations in node red.

The switch is using Central Scene. You will need to follow these instructions and adapt it for your particular switch.

For example, when a button is pressed, your log is showing scene id 1 and scene data 7680. That is pretty typical, you will find examples in those docs.

Thanks I got the scenes working which was what I was after. I used the settings from https://jope.eu/logichome-zhc5010-z-wave-switch/

The problem was that I had to stop the z-wave network in HA before I wrote to the manual changes to the file.

Now I have encountered another issue: Pressing button 1 on the switch it I see an error in the zwave log that delays the scene activation.

2019-11-03 00:19:47.424 Detail, Node007,   Received: 0x01, 0x09, 0x00, 0x04, 0x08, 0x07, 0x03, 0x20, 0x03, 0x00, 0xdd
2019-11-03 00:19:47.425 Detail,
2019-11-03 00:19:47.426 Info, Node007, Received Basic report from node 7: level=0
2019-11-03 00:19:47.426 Detail, Node007, Refreshed Value: old value=255, new value=0, type=byte
2019-11-03 00:19:47.426 Detail, Node007, Changes to this value are not verified
2019-11-03 00:19:47.426 Detail, Node007, Notification: ValueChanged
2019-11-03 00:19:47.445 Detail, Node007,   Received: 0x01, 0x09, 0x00, 0x04, 0x00, 0x07, 0x03, 0x20, 0x03, 0x00, 0xd5
2019-11-03 00:19:47.446 Detail,
2019-11-03 00:19:47.446 Info, Node007, Received Basic report from node 7: level=0
2019-11-03 00:19:47.447 Detail, Node007, Refreshed Value: old value=0, new value=0, type=byte
2019-11-03 00:19:47.447 Detail, Node007, Changes to this value are not verified
2019-11-03 00:19:47.447 Detail, Node007, Notification: ValueChanged
2019-11-03 00:19:51.735 Detail, Node007,   Received: 0x01, 0x0d, 0x00, 0x04, 0x00, 0x07, 0x07, 0x60, 0x0d, 0x01, 0x01, 0x20, 0x03, 0x00, 0xb8
2019-11-03 00:19:51.735 Detail,
2019-11-03 00:19:51.735 Error, Node007, Cannot find endpoint map to instance for Command Class COMMAND_CLASS_BASIC endpoint 1
2019-11-03 00:19:51.754 Detail, Node007,   Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0x07, 0x05, 0x5b, 0x03, 0x65, 0x80, 0x01, 0x4e
2019-11-03 00:19:51.755 Detail,
2019-11-03 00:19:51.755 Info, Node007, Received Central Scene set from node 7: scene id=1 in 7680 seconds. Sending event notification.
2019-11-03 00:19:51.755 Detail, Node007, Initial read of value
2019-11-03 00:19:51.756 Detail, Node007, Notification: ValueChanged

Notice how the scene set is delayed almost 4 seconds from the button is pressed. This only happens on button 1.

I can only imagine I need to edit the zwave config again but not sure how to go about it.

I have followed the steps as well.
Maybe I am doing something wrong as I can find the zwave.scene_activated but when I try to use them in the automation nothing happnes…

Event 7 fired 6:42 AM:

{
    "event_type": "zwave.scene_activated",
    "data": {
        "entity_id": "zwave.logic_soft_unknown_type_0003_id_0121",
        "node_id": 7,
        "scene_id": 4,
        "scene_data": 7680
    },
    "origin": "LOCAL",
    "time_fired": "2019-11-06T05:42:27.458623+00:00",
    "context": {
        "id": "46e69f0778b241b89090891adac75a1d",
        "parent_id": null,
        "user_id": null
    }
}

I am trying to use in this automation:

- id: one_click_4_living_room
  alias: 'one click 4 living room'
  trigger:
  - platform: event
    event_type: zwave.scene_activated
    event_data:
      entity_id: zwave.logic_soft_unknown_type_0003_id_0121
      node_id: 7
      scene_id: 4
      scene_data: 7680
  condition: []
  action:
    service: scene.turn_on
    entity_id: scene.morning_lights

but nothing happens when I click the wall switch

well it worked after using docker stop homeassistant and docker start homeassistant

Glad to hear you got it working. Do you have the issue above when pressing button one?

Cannot find endpoint map to instance for Command Class COMMAND_CLASS_BASIC endpoint 1

No I do not get that error also there does not seem to be a delay on button 1

Do you know how to set the color on the buttons ?

No I have not gotten to that part yet. Will ping you if I find out.

Hi Karsten. Would you mind sharing the xml for your Matrix from the zwcfg xml file in /config?

For some reason I’m unable to access the config for the Matrix via Home Assistant.

in my zwcfg_.xml I have this for one of my Matrix switches.
You can edit it from the commad line stop homeassistant docker edit the file in /usr/share/hassio/homeassistant/ and start it again.

I have uploaded a node config for a matrix switch here: https://public-files.s3.foo-bar.dk/matrix-node-config.xml

I have some problems still with color and on/off registrations but you can follow that in the open-zwave github issue https://github.com/OpenZWave/open-zwave/pull/1906

Fantastic. I can now see all the options under the node. However, I still get the error for command class basic on the first node and got no idea how to solve.

Cannot find endpoint map to instance for Command Class COMMAND_CLASS_BASIC endpoint 1

I solved the issue with the endpoint map error.

I updated the firmware for the Matrix Switch by going to https://logic-group.com/support/firmware/?lang=da and downloading the latest firmware. I then used the Firmware Uploader Common application to update the switch.

A word of caution. The controller will be reset when doing the OTA. https://logic-group.com/2019/02/28/firmwareloadercommon/?lang=da

Perhaps a secondary controller would be handy. In my case I had a minimal network as I’m still testing. If this was a full house setup then a reset would not be an option.

That is cool.

@cphassistant I have an issue with the SwitchBinary report level.
When I press the switch it does not toggle on/off the right way.
eg switch.toggle will always leave the switch on as the report is always reporting off

Did the firmware fix that for you ?

Sorry for the late reply. I’m not 100% sure where to check that. I can do a press on the switch and copy paste the zwave log here? Will that give you the answer you are looking for?

I also got myself one of these switches. Thank you guys for the config example. After a bit of tinkering I managed to get a light dimmer and 4 switches in home assistant. The dimmer controls the relay and with the switches I can turn on the individual LEDs, or control things if it’s setup that way.

I can also change the color by calling zwave.set_config_parameter, but haven’t figure out how to get the right color values. Is it RGB and one more value? What is the 4th byte? Is it brightness? Does that have to do something with the enchanced LED parameter?

Thanks,
Marton

I’m tinkering with some ZDB5100 as well, would you like to elaborate on how you control the LED’s of the four buttons?
I don’t get any light entity for the dimmer, is that normal? If so, how do i control the attached light if not using the buttons?
When i add the wall switch to Home Assistant using the Z-wave component i don’t get a list of config paramters, do you know how i should configure eg. parameter 1 (button to control built-in dimmer)?

In regards to the color look at the Here and below.
R (Byte 1)
G (Byte 2)
B (Byte 3)
As for Byte 4, its always 00 (double zero).
Remember to use a signed integer as OZW only supports int32_t.

Best regards,
Jeppe

Hi Jeppe,

Thanks for the info about the RGB values. I’ll try to make it work.

Screenshot 2020-03-27 at 10.19.16
I think you should get a light entity for the dimmer. I have configured it so I get one dimmable light entity for the dimmer itself and 4 switch entities for the 4 switches. By turning these switches on/off I can turn the LEDs on or off.

After adding it to the zwave network, I had to modify the configuration in zwcfg_*.xml. I’ll post it here.
https://pastebin.com/QCfEt0CX

Parameter 1 is a bit tricky. As far as I understood you have to configure this to tell the device which buttons are controlling the dimmer. It can be configured that one button controls the dimmer. Press to turn it on, press again to turn it off. Press and hold to dim up, when it reaches 100% then press and hold again to dim down. In this case, you need to set it to that button.
But you can also configure it that a button pair is controlling the dimmer. So for example, top right and bottom right buttons control the dimmer. In this case the top button will dim up, the bottom one will dim down. If you want to do this, you need to add the values together and set it as the configuration parameter. So you take the value of the top right button and the value of the bottom right button, add it together and that is going to be the value of this config parameter.
Also in this case you need to configure the parameters for the buttons: 16, 24, 32, 40.

Best,
Marton

Hi Marton,

Thanks for sharing the zwcfg with me, what i have running is as shown below, 6 switches (i did the renaming, before it was Switch 1, Switch 2 and so on), i’ll have a look at your config as i don’t have a light entity.

image

I know everything regarding to the config parameters and you are right, Parameter 1 needs to be set to 0 in my case (no local control) as i wish to use the buttons and their LED’s for different purposes.

A helping hand with the changing of the LED’s is really appreciated as i don’t have a lot of time these days and i’m completely green in regards changing the Z-wave config file. All i know is that the LED’s can be controlled with sending “Command Class Switch Color Set” to the endpoint.

On a side note, i have one connected to a Fibaro Home Center Lite, and on there i get 4 “RGB-lights” the button colors are controlled with RGBW and bightness.

White, ID:0 as per the manual (i don’t know what ID:0 means) value is used in regards to the extended light control (parameter 10=1) for the wallswitch where the White value is 1 Byte where the first 4 bits (0-3) is flashing frequency, the 4th bit is “direct control”, bit 5 is “on”-status, bit 6 is “off”-status and bit 7 is for flashing on/off.

Thank you very much for your time and effort, it’s highly appreciated!

/ Jeppe

I forgot to ask, do you have access to the configuration parameters in the Z-wave menu?
Because i dont have any parameters in the drop-down menu…