Hank / Technisat 4-button remote / scene controller SCN04 - zwavejs

I’ve adapted another scene controller blueprint to work for the little 4-button remote by Hank Electronics, also sold under the brand ‘Technisat’, model SCN04.
As far as I can tell from testing, it supports single click, hold and release; no double-click events.

blueprint:
  name: Hank/Technisat SCN04 4-button remote
  description: Create an automation for the Hank and Technisat 4-button remote using ZWAVE-JS
    integration
  domain: automation
  input:
    hank_scn04:
      name: Hank/Technisat SCN04
      description: The remote to interact with.
      selector:
        device:
          integration: zwave_js
          manufacturer: HANK Electronics Ltd.
          model: SCN04
          multiple: false
    button_1_1:
      name: Press button one (moon) 1x
      description: Action to run on button press once.
      default: []
      selector:
        action: {}
    button_1_held:
      name: Hold button one (moon)
      description: Action to run on button hold.
      default: []
      selector:
        action: {}
    button_2_1:
      name: Press button two (people) 1x
      description: Action to run on button press once.
      default: []
      selector:
        action: {}
    button_2_held:
      name: Hold button two (people)
      description: Action to run on button hold.
      default: []
      selector:
        action: {}
    button_3_1:
      name: Press middle button 1x
      description: Action to run on button press once.
      default: []
      selector:
        action: {}
    button_3_held:
      name: Hold middle button
      description: Action to run on button hold.
      default: []
      selector:
        action: {}
    button_4_1:
      name: Press button four (standby) 1x
      description: Action to run on button press once.
      default: []
      selector:
        action: {}
    button_4_held:
      name: Hold button four (standby)
      description: Action to run on button hold.
      default: []
      selector:
        action: {}
  source_url: https://community.home-assistant.io/t/tbd
mode: single
max_exceeded: silent
trigger:
  platform: event
  event_type: zwave_js_value_notification
  event_data:
    command_class_name: Central Scene
    device_id: !input hank_scn04
action:
- variables:
    scene_id: '{{ trigger.event.data.property_key_name }}'
    scene_value_id: '{{ trigger.event.data.value }}'
- choose:
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyPressed'' }}'
    sequence: !input button_1_1
  - conditions: '{{ scene_id == ''001'' and scene_value_id == ''KeyHeldDown'' }}'
    sequence: !input button_1_held
  - conditions: '{{ scene_id == ''002'' and scene_value_id == ''KeyPressed'' }}'
    sequence: !input button_2_1
  - conditions: '{{ scene_id == ''002'' and scene_value_id == ''KeyHeldDown'' }}'
    sequence: !input button_2_held
  - conditions: '{{ scene_id == ''003'' and scene_value_id == ''KeyPressed'' }}'
    sequence: !input button_3_1
  - conditions: '{{ scene_id == ''003'' and scene_value_id == ''KeyHeldDown'' }}'
    sequence: !input button_3_held
  - conditions: '{{ scene_id == ''004'' and scene_value_id == ''KeyPressed'' }}'
    sequence: !input button_4_1
  - conditions: '{{ scene_id == ''004'' and scene_value_id == ''KeyHeldDown'' }}'
    sequence: !input button_4_held

I’ve not worked out how to add the ‘My’ button to a post yet… maybe someone can point me in the right direction to add that!

Did we not already had it?

Haha, apparently we did! I searched for ‘SCN04’ and didn’t find that one!
Never mind, it was only 20 minutes work :wink:

1 Like