Skip to content

Instantly share code, notes, and snippets.

@zackbcom
Forked from irakhlin/zen37lr_blueprint.yaml
Last active February 10, 2024 09:04
Show Gist options
  • Select an option

  • Save zackbcom/a8aab5c1c29dec19fc366247f2a3a536 to your computer and use it in GitHub Desktop.

Select an option

Save zackbcom/a8aab5c1c29dec19fc366247f2a3a536 to your computer and use it in GitHub Desktop.

Revisions

  1. zackbcom revised this gist Feb 10, 2024. 1 changed file with 37 additions and 37 deletions.
    74 changes: 37 additions & 37 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ blueprint:
    domain: automation
    input:
    zen37_devices:
    name: Zooz ZEN37 wall remote
    name: Zooz ZEN37 800LR wall remote
    description: "List of available Zen37 800LR wall remotes."
    selector:
    device:
    @@ -14,32 +14,32 @@ blueprint:
    manufacturer: Zooz
    model: ZEN37 800LR
    button_1_1_tap:
    name: Button 1 - 1 Tap (Up/On press 1x)
    name: Button 1 - 1x Press
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_1_2_tap:
    name: Button 1 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    name: Button 1 - 2x Press
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    button_1_3_tap:
    name: Button 1 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    name: Button 1 - 3x Press
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    button_1_4_tap:
    name: Button 1 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    name: Button 1 - 4x Press
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    button_1_5_tap:
    name: Button 1 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    name: Button 1 - 5x Press
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
    @@ -57,32 +57,32 @@ blueprint:
    action: {}

    button_2_1_tap:
    name: Button 2 - 1 Tap (Up/On press 1x)
    name: Button 2 - 1x Press
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_2_2_tap:
    name: Button 2 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    name: Button 2 - 2x Press
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    button_2_3_tap:
    name: Button 2 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    name: Button 2 - 3x Press
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    button_2_4_tap:
    name: Button 2 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    name: Button 2 - 4x Press
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    button_2_5_tap:
    name: Button 2 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    name: Button 2 - 5x Press
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
    @@ -100,32 +100,32 @@ blueprint:
    action: {}

    button_3_1_tap:
    name: Button 3 - 1 Tap (Up/On press 1x)
    name: Button 3 - 1x Press
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_3_2_tap:
    name: Button 3 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    name: Button 3 - 2x Press
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    button_3_3_tap:
    name: Button 3 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    name: Button 3 - 3x Press
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    button_3_4_tap:
    name: Button 3 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    name: Button 3 - 4x Press
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    button_3_5_tap:
    name: Button 3 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    name: Button 3 - 5x Press
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
    @@ -143,32 +143,32 @@ blueprint:
    action: {}

    button_4_1_tap:
    name: Button 4 - 1 Tap (Up/On press 1x)
    name: Button 4 - 1x Press
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_4_2_tap:
    name: Button 4 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    name: Button 4 - 2x Press
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    button_4_3_tap:
    name: Button 4 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    name: Button 4 - 3x Press
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    button_4_4_tap:
    name: Button 4 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    name: Button 4 - 4x Press
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    button_4_5_tap:
    name: Button 4 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    name: Button 4 - 5x Press
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
  2. zackbcom revised this gist Feb 10, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -204,6 +204,8 @@ trigger:
    event_type: zwave_js_value_notification
    event_data:
    command_class_name: "Central Scene"
    variables:
    zen37_devices: !input zen37_devices
    condition:
    - condition: template
    value_template: "{{ trigger.event.data.device_id in zen37_devices }}"
  3. zackbcom revised this gist Feb 10, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,8 @@ blueprint:
    multiple: true
    filter:
    - integration: zwave_js
    - manufacturer: Zooz
    - model: ZEN37 800LR
    manufacturer: Zooz
    model: ZEN37 800LR
    button_1_1_tap:
    name: Button 1 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
  4. zackbcom revised this gist Feb 10, 2024. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,16 @@ blueprint:
    description: Create automations for the Zooz Zen37 800LR 4 button scene controller using the Z-WAVE JS integration.
    domain: automation
    input:
    zen37lr:
    zen37_devices:
    name: Zooz ZEN37 wall remote
    description: "List of available Zen37 800LR wall remotes."
    selector:
    device:
    integration: zwave_js
    manufacturer: Zooz
    model: ZEN37 800LR
    multiple: true
    filter:
    - integration: zwave_js
    - manufacturer: Zooz
    - model: ZEN37 800LR
    button_1_1_tap:
    name: Button 1 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
    @@ -201,8 +203,10 @@ trigger:
    - platform: event
    event_type: zwave_js_value_notification
    event_data:
    device_id: !input zen37lr
    command_class_name: "Central Scene"
    condition:
    - condition: template
    value_template: "{{ trigger.event.data.device_id in zen37_devices }}"
    action:
    - variables:
    scene_id: "{{ trigger.event.data.property_key }}"
  5. zackbcom revised this gist Feb 10, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ blueprint:
    device:
    integration: zwave_js
    manufacturer: Zooz
    model: ZEN37 LR
    model: ZEN37 800LR
    button_1_1_tap:
    name: Button 1 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
  6. @irakhlin irakhlin revised this gist Jan 20, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,8 @@ blueprint:
    domain: automation
    input:
    zen37lr:
    name: HANK Electronics scene controller
    description: "List of available HANK Electronics SCN04 scene controllers."
    name: Zooz ZEN37 wall remote
    description: "List of available Zen37 800LR wall remotes."
    selector:
    device:
    integration: zwave_js
  7. @irakhlin irakhlin created this gist Jan 20, 2024.
    269 changes: 269 additions & 0 deletions zen37lr_blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,269 @@
    blueprint:
    name: "Z-Wave JS Scene Controller Zooz Zen37 800LR"
    description: Create automations for the Zooz Zen37 800LR 4 button scene controller using the Z-WAVE JS integration.
    domain: automation
    input:
    zen37lr:
    name: HANK Electronics scene controller
    description: "List of available HANK Electronics SCN04 scene controllers."
    selector:
    device:
    integration: zwave_js
    manufacturer: Zooz
    model: ZEN37 LR
    button_1_1_tap:
    name: Button 1 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_1_2_tap:
    name: Button 1 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    default: []
    selector:
    action: {}
    button_1_3_tap:
    name: Button 1 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    default: []
    selector:
    action: {}
    button_1_4_tap:
    name: Button 1 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    default: []
    selector:
    action: {}
    button_1_5_tap:
    name: Button 1 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    default: []
    selector:
    action: {}
    button_1_hold:
    name: Button 1 - Held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    button_1_released:
    name: Button 1 - Released
    description: "Action to run, when the button is released."
    default: []
    selector:
    action: {}

    button_2_1_tap:
    name: Button 2 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_2_2_tap:
    name: Button 2 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    default: []
    selector:
    action: {}
    button_2_3_tap:
    name: Button 2 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    default: []
    selector:
    action: {}
    button_2_4_tap:
    name: Button 2 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    default: []
    selector:
    action: {}
    button_2_5_tap:
    name: Button 2 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    default: []
    selector:
    action: {}
    button_2_hold:
    name: Button 2 - Held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    button_2_released:
    name: Button 2 - Released
    description: "Action to run, when the button is released."
    default: []
    selector:
    action: {}

    button_3_1_tap:
    name: Button 3 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_3_2_tap:
    name: Button 3 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    default: []
    selector:
    action: {}
    button_3_3_tap:
    name: Button 3 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    default: []
    selector:
    action: {}
    button_3_4_tap:
    name: Button 3 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    default: []
    selector:
    action: {}
    button_3_5_tap:
    name: Button 3 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    default: []
    selector:
    action: {}
    button_3_hold:
    name: Button 3 - Held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    button_3_released:
    name: Button 3 - Released
    description: "Action to run, when the button is released."
    default: []
    selector:
    action: {}

    button_4_1_tap:
    name: Button 4 - 1 Tap (Up/On press 1x)
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_4_2_tap:
    name: Button 4 - 2 Taps (Up/On press 2x)
    description: "Action to run, when the button is pressed two time."
    default: []
    selector:
    action: {}
    button_4_3_tap:
    name: Button 4 - 3 Taps (Up/On press 3x)
    description: "Action to run, when the button is pressed three time."
    default: []
    selector:
    action: {}
    button_4_4_tap:
    name: Button 4 - 4 Taps (Up/On press 4x)
    description: "Action to run, when the button is pressed four time."
    default: []
    selector:
    action: {}
    button_4_5_tap:
    name: Button 4 - 5 Taps (Up/On press 5x)
    description: "Action to run, when the button is pressed five time."
    default: []
    selector:
    action: {}
    button_4_hold:
    name: Button 4 - Held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    button_4_released:
    name: Button 4 - Released
    description: "Action to run, when the button is released."
    default: []
    selector:
    action: {}

    automation_mode:
    name: Automation mode
    description: See https://www.home-assistant.io/docs/automation/modes/
    default: single
    selector:
    select:
    options:
    - single
    - restart
    - queued
    - parallel

    mode: !input automation_mode
    max_exceeded: silent
    trigger:
    - platform: event
    event_type: zwave_js_value_notification
    event_data:
    device_id: !input zen37lr
    command_class_name: "Central Scene"
    action:
    - variables:
    scene_id: "{{ trigger.event.data.property_key }}"
    action_name: "{{ trigger.event.data.value }}"
    - choose:
    - conditions: "{{ scene_id == '001' and action_name == 'KeyPressed' }}"
    sequence: !input button_1_1_tap
    - conditions: "{{ scene_id == '001' and action_name == 'KeyPressed2x' }}"
    sequence: !input button_1_2_tap
    - conditions: "{{ scene_id == '001' and action_name == 'KeyPressed3x' }}"
    sequence: !input button_1_3_tap
    - conditions: "{{ scene_id == '001' and action_name == 'KeyPressed4x' }}"
    sequence: !input button_1_4_tap
    - conditions: "{{ scene_id == '001' and action_name == 'KeyPressed5x' }}"
    sequence: !input button_1_5_tap
    - conditions: "{{ scene_id == '001' and action_name == 'KeyReleased' }}"
    sequence: !input button_1_released
    - conditions: "{{ scene_id == '001' and action_name == 'KeyHeldDown' }}"
    sequence: !input button_1_hold

    - conditions: "{{ scene_id == '002' and action_name == 'KeyPressed' }}"
    sequence: !input button_2_1_tap
    - conditions: "{{ scene_id == '002' and action_name == 'KeyPressed2x' }}"
    sequence: !input button_2_2_tap
    - conditions: "{{ scene_id == '002' and action_name == 'KeyPressed3x' }}"
    sequence: !input button_2_3_tap
    - conditions: "{{ scene_id == '002' and action_name == 'KeyPressed4x' }}"
    sequence: !input button_2_4_tap
    - conditions: "{{ scene_id == '002' and action_name == 'KeyPressed5x' }}"
    sequence: !input button_2_5_tap
    - conditions: "{{ scene_id == '002' and action_name == 'KeyReleased' }}"
    sequence: !input button_2_released
    - conditions: "{{ scene_id == '002' and action_name == 'KeyHeldDown' }}"
    sequence: !input button_2_hold

    - conditions: "{{ scene_id == '003' and action_name == 'KeyPressed' }}"
    sequence: !input button_3_1_tap
    - conditions: "{{ scene_id == '003' and action_name == 'KeyPressed2x' }}"
    sequence: !input button_3_2_tap
    - conditions: "{{ scene_id == '003' and action_name == 'KeyPressed3x' }}"
    sequence: !input button_3_3_tap
    - conditions: "{{ scene_id == '003' and action_name == 'KeyPressed4x' }}"
    sequence: !input button_3_4_tap
    - conditions: "{{ scene_id == '003' and action_name == 'KeyPressed5x' }}"
    sequence: !input button_3_5_tap
    - conditions: "{{ scene_id == '003' and action_name == 'KeyReleased' }}"
    sequence: !input button_3_released
    - conditions: "{{ scene_id == '003' and action_name == 'KeyHeldDown' }}"
    sequence: !input button_3_hold

    - conditions: "{{ scene_id == '004' and action_name == 'KeyPressed' }}"
    sequence: !input button_4_1_tap
    - conditions: "{{ scene_id == '004' and action_name == 'KeyPressed2x' }}"
    sequence: !input button_4_2_tap
    - conditions: "{{ scene_id == '004' and action_name == 'KeyPressed3x' }}"
    sequence: !input button_4_3_tap
    - conditions: "{{ scene_id == '004' and action_name == 'KeyPressed4x' }}"
    sequence: !input button_4_4_tap
    - conditions: "{{ scene_id == '004' and action_name == 'KeyPressed5x' }}"
    sequence: !input button_4_5_tap
    - conditions: "{{ scene_id == '004' and action_name == 'KeyReleased' }}"
    sequence: !input button_4_released
    - conditions: "{{ scene_id == '004' and action_name == 'KeyHeldDown' }}"
    sequence: !input button_4_hold