ZwaveJS - Logic Group ZDB5100 - MATRIX Switch with Dimmer and Backlight

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Blueprint for all scenes available on this 4 button devise.

It support Single tap, Double tap, Tribble tab, Hold, Release.

blueprint:
  name: Logic Group Matrix ZDB5100
  description: Create automatisation for the ZDB5100 using zwavejs integration
  domain: automation
  input:
    matrix_zdb5100:
      name: Matrix ZDB5100
      description: The matrix to interact with
      selector:
        device:
          integration: zwave_js
          manufacturer: Logic Group
          model: ZDB5100
    button_top_left_tap:
      name: Tap Button 1 - Top left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_right_tap:
      name: Tap Button 2 - Top Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_left_tap:
      name: Tap Button 3 - Lower Left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_right_tap:
      name: Tap Button 4 - Lower Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_left_2xtap:
      name: Double Tap Button 1 - Top left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_right_2xtap:
      name: Double Tap Button 2 - Top Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_left_2xtap:
      name: Double Tap Button 3 - Lower Left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_right_2xtap:
      name: Double Tap Button 4 - Lower Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_left_3xtap:
      name: Triple Tap Button 1 - Top left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_right_3xtap:
      name: Triple Tap Button 2 - Top Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_left_3xtap:
      name: Triple Tap Button 3 - Lower Left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_right_3xtap:
      name: Triple Tap Button 4 - Lower Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_left_release:
      name: Release Button 1 - Top left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_right_release:
      name: Release Button 2 - Top Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_left_release:
      name: Release Button 3 - Lower Left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_right_release:
      name: Release Button 4 - Lower Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_left_hold:
      name: Hold Button 1 - Top left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_top_right_hold:
      name: Hold Button 2 - Top Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_left_hold:
      name: Hold Button 3 - Lower Left
      description: Action to run on button press.
      default: []
      selector:
        action: {}
    button_lower_right_hold:
      name: Hold Button 4 - Lower Right
      description: Action to run on button press.
      default: []
      selector:
        action: {}
  source_url: https://community.home-assistant.io/t/zwavejs-logic-group-zdb5100-matrix-switch-with-dimmer-and-backlight/287594
mode: single
max_exceeded: silent
trigger:
- platform: event
  event_type: zwave_js_value_notification
  event_data:
    device_id: !input 'matrix_zdb5100'
    command_class_name: Central Scene
- platform: event
  event_type: zwave_js_event
  event_data:
    device_id: !input 'matrix_zdb5100'
    command_class_name: Central Scene
action:
- variables:
    button_id: '{{ trigger.event.data.property_key_name }}'
    button_action: '{{ trigger.event.data.value }}'
- choose:
  - conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed'' }}'
    sequence: !input 'button_top_left_tap'
  - conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed'' }}'
    sequence: !input 'button_top_right_tap'
  - conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed'' }}'
    sequence: !input 'button_lower_left_tap'
  - conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed'' }}'
    sequence: !input 'button_lower_right_tap'
  - conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed2x'' }}'
    sequence: !input 'button_top_left_2xtap'
  - conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed2x'' }}'
    sequence: !input 'button_top_right_2xtap'
  - conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed2x'' }}'
    sequence: !input 'button_lower_left_2xtap'
  - conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed2x'' }}'
    sequence: !input 'button_lower_right_2xtap'
  - conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed3x'' }}'
    sequence: !input 'button_top_left_3xtap'
  - conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed3x'' }}'
    sequence: !input 'button_top_right_3xtap'
  - conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed3x'' }}'
    sequence: !input 'button_lower_left_3xtap'
  - conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed3x'' }}'
    sequence: !input 'button_lower_right_3xtap'
  - conditions: '{{ button_id == ''001'' and button_action == ''KeyHeldDown'' }}'
    sequence: !input 'button_top_left_hold'
  - conditions: '{{ button_id == ''002'' and button_action == ''KeyHeldDown'' }}'
    sequence: !input 'button_top_right_hold'
  - conditions: '{{ button_id == ''003'' and button_action == ''KeyHeldDown'' }}'
    sequence: !input 'button_lower_left_hold'
  - conditions: '{{ button_id == ''004'' and button_action == ''KeyHeldDown'' }}'
    sequence: !input 'button_lower_right_hold'
  - conditions: '{{ button_id == ''001'' and button_action == ''KeyReleased'' }}'
    sequence: !input 'button_top_left_release'
  - conditions: '{{ button_id == ''002'' and button_action == ''KeyReleased'' }}'
    sequence: !input 'button_top_right_release'
  - conditions: '{{ button_id == ''003'' and button_action == ''KeyReleased'' }}'
    sequence: !input 'button_lower_left_release'
  - conditions: '{{ button_id == ''004'' and button_action == ''KeyReleased'' }}'
    sequence: !input 'button_lower_right_release'
  default:
  - service: system_log.write
    data:
      level: warning
      message: Activated button '{{ button_id }}' with action ({{ button_action }})
        for node '{{ matrix_zdb5100 }}'

Also see the configuration parameters here:

https://devices.zwave-js.io/?jumpTo=0x0234:0x0003:0x0121:0.0#

And read more about the product here:

Update 2021-04-14:
Added support for trigger on zwave_js_value_notification

1 Like

Hi Jesper.

Thank you for a very nice Blueprint.
However, after my latest HA update it stopped working for me.
I get the following error:

Error: UndefinedError: ‘dict object’ has no attribute ‘event’

Any idea of what this could be?

Appreciate the help

Jonas

I will look into this tonight or tomorrow. It seems that the upgrade also broke my zdb5100.

It was because the trigger is now zwave_js_value_notification and not zwave_js_event
The blueprint now support both.

Hi Jesper.
Thanks for the quick fix.
Unfortunately I get this error now while trying to import the Blueprint from the URL

Sorry, Works again now. The import does not work, if there is multiple code blocks in the post.

1 Like

quick question - you guys are adding the matrix button via zwave-js? (based on the above example).
I have mine added to a fibaro HC3 - and imported into HA.
It appears as:
main device switch
virtual push 1 (button 1)
virtual push 2 (button 2)
virtual push 3 (button 3)
virtual push 4 (button 4)

I don’t have entities for - button 1 push twice, hold, 3 times, etc.
I assume I’m supposed to see these options as entities?.. right?

Awesome blueprint. After enabling Central Scene in the logic group device I got it working with turn on/off hue lights.

Next I wanted to dim while holding. Unfortunately it only dims once when the hold event is triggered. I tried using some of the repeat action types, but couldn’t get it to continuously dim while holding.

Does anyone have an approach to this?

Yes, I have added matrix directly to zwave-js and HA
It must be HC3 which done map the device correctly

Hi Jesper - does your blueprint work with newer ZRB5120 ?

So my blueprint is pretty simple - just controlling the 4 buttons. So I guess so.

Hallo Jesper
Do you have plans for color-support on the 4 btns? So we can turn them on/off and color-code them?

I don’t know what you expect it to do on a blueprint. But is easy to implement sending colors to the led’s when advanced led control is enabled.

Do you have an link for that? :slight_smile:
Got it to work in Node-Red … sort off… but Im ready for killing off Node-red

Here is an example for setting the color. But it does not really make sense for a button press :slight_smile:

Hi Jesper. In due respect for others, Ill ask in English :slight_smile:

I happened to buy like a tonnes if the older model ZHC5010.

In all modesty I am quite dumb and new to Blueprints.

But as the buttons, a I presume also the IDs are identical, would you think the Blueprint could me tweaked? I am not sure of any difference but design.

Or made compatible? This was one thing I did not consider before buying :slight_smile:

I hope you are one of those coffee drinkers with a big heart, who want to spread their IQ dust onto us dumb peoples.

Thsnk you so much
Peter

https://www.google.com/url?sa=t&source=web&rct=j&url=https://youcontrol.dk/media/wysiwyg/ZHC5010-Manual-EN-Rev11-Ver1.02.pdf&ved=2ahUKEwiem8iV4ob9AhXi87sIHV75C50QFnoECBEQAQ&usg=AOvVaw3Jb26x1-69aWOh1webf2-s

Hi Peter,

I do actually have a ZHC5010 in the drawer I could connect and test with.
But do you already have installed the zhc’s now? Because it should be quite easy to test?

Hi, i just got my first ZDB5100 Matrix switch and i like every part of it…

But i must admit that programming it, is a bit above my level. I dont think the entities is that logic.
I have tryed to use your blueprint, but does not seem to work.
Is it still up to date?

Best regards

Its a great device - I have 5 of those in my house.

The blueprint works fine for actions when you push a button. But its not for changing colors. I use scripts for that.

What kind of problems do you have?