Switch - ZHC5010 - Blueprint

Blueprint for all scenes available on this ZHC5010 4 button devise from Logic Group
It support Single tap, Double tap, Hold and Release.

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

blueprint:
  name: ZHC5010
  description: Control button on the ZHC5010 using Z-Wave JS.
  domain: automation
  input:
    zhc5010_device:
      name: ZHC5010 Device
      description: Select the ZHC5010 device to use.
      selector:
        device:
          integration: zwave_js
          manufacturer: Logic Group
          model: ZHC5010
    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_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: {}
    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: {}
mode: single
max_exceeded: silent
trigger:
- platform: event
  event_type: zwave_js_value_notification
  event_data:
    device_id: !input 'zhc5010_device'
    command_class_name: Central Scene
- platform: event
  event_type: zwave_js_event
  event_data:
    device_id: !input 'zhc5010_device'
    command_class_name: Central Scene
action:
- variables:
    button_id: "{{ trigger.event.data.property_key_name }}"
    button_action: "{{ trigger.event.data.value }}"
- choose:
    - conditions:
        - condition: template
          value_template: "{{ button_id == '001' and button_action == 'KeyPressed' }}"
      sequence: !input 'button_top_left_tap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '002' and button_action == 'KeyPressed' }}"
      sequence: !input 'button_top_right_tap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '003' and button_action == 'KeyPressed' }}"
      sequence: !input 'button_lower_left_tap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '004' and button_action == 'KeyPressed' }}"
      sequence: !input 'button_lower_right_tap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '001' and button_action == 'KeyPressed2x' }}"
      sequence: !input 'button_top_left_2xtap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '002' and button_action == 'KeyPressed2x' }}"
      sequence: !input 'button_top_right_2xtap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '003' and button_action == 'KeyPressed2x' }}"
      sequence: !input 'button_lower_left_2xtap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '004' and button_action == 'KeyPressed2x' }}"
      sequence: !input 'button_lower_right_2xtap'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '001' and button_action == 'KeyHeldDown' }}"
      sequence: !input 'button_top_left_hold'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '002' and button_action == 'KeyHeldDown' }}"
      sequence: !input 'button_top_right_hold'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '003' and button_action == 'KeyHeldDown' }}"
      sequence: !input 'button_lower_left_hold'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '004' and button_action == 'KeyHeldDown' }}"
      sequence: !input 'button_lower_right_hold'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '001' and button_action == 'KeyReleased' }}"
      sequence: !input 'button_top_left_release'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '002' and button_action == 'KeyReleased' }}"
      sequence: !input 'button_top_right_release'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '003' and button_action == 'KeyReleased' }}"
      sequence: !input 'button_lower_left_release'
    - conditions:
        - condition: template
          value_template: "{{ button_id == '004' and button_action == 'KeyReleased' }}"
      sequence: !input 'button_lower_right_release'

Blockquote