Skip to content

Instantly share code, notes, and snippets.

@geekingreen
Last active April 10, 2021 16:32
Show Gist options
  • Select an option

  • Save geekingreen/daa4c5997dc54d3c30b4585d461c483d to your computer and use it in GitHub Desktop.

Select an option

Save geekingreen/daa4c5997dc54d3c30b4585d461c483d to your computer and use it in GitHub Desktop.

Revisions

  1. geekingreen revised this gist Apr 10, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion inovelli-blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -101,7 +101,7 @@ variables:
    device_id: !input inovelli_switch
    trigger:
    - platform: event
    event_type: zwave_js_event
    event_type: zwave_js_value_notification
    condition: "{{ trigger.event.data.device_id == device_id }}"
    action:
    - variables:
  2. geekingreen revised this gist Feb 21, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion inovelli-blueprint.yaml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    blueprint:
    name: Inovelli Red Series LZW31-SN Dimmer (ZWave-JS)
    name: Inovelli Red Series ZWaveJS
    description: Create automations for the Inovelli Red Series LZW31-SN Dimmer using the ZWave-JS integration.
    domain: automation
    input:
  3. geekingreen renamed this gist Feb 21, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. geekingreen created this gist Feb 21, 2021.
    148 changes: 148 additions & 0 deletions inovelli-blueprint
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,148 @@
    blueprint:
    name: Inovelli Red Series LZW31-SN Dimmer (ZWave-JS)
    description: Create automations for the Inovelli Red Series LZW31-SN Dimmer using the ZWave-JS integration.
    domain: automation
    input:
    inovelli_switch:
    name: Inovelli Series
    description: "List of available inovelli switches/dimmers."
    selector:
    device:
    integration: zwave_js
    manufacturer: Inovelli
    ## Config Press 1 time
    config_button:
    name: Button C - Config press 1x
    description: "Action to run, when the config button is pressed one time."
    default: []
    selector:
    action: {}
    ## Paddle Press 1 time
    button_a:
    name: Button A - Up/On press 1x
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    button_b:
    name: Button B - Down/Off press 1x
    description: "Action to run, when the button is pressed one time."
    default: []
    selector:
    action: {}
    ## Paddle Held Down
    button_a_held:
    name: Button A - Up/On held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    button_b_held:
    name: Button B - Down/Off held down
    description: "Action to run, when the button is held down."
    default: []
    selector:
    action: {}
    ## Paddle Press 2 times
    button_a2:
    name: Button A - Up/On press 2x
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    button_b2:
    name: Button B - Down/Off press 2x
    description: "Action to run, when the button is pressed two times."
    default: []
    selector:
    action: {}
    ## Paddle Press 3 times
    button_a3:
    name: Button A - Up/On press 3x
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    button_b3:
    name: Button B - Down/Off press 3x
    description: "Action to run, when the button is pressed three times."
    default: []
    selector:
    action: {}
    ## Paddle Press 4 times
    button_a4:
    name: Button A - Up/On press 4x
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    button_b4:
    name: Button B - Down/Off press 4x
    description: "Action to run, when the button is pressed four times."
    default: []
    selector:
    action: {}
    ## Paddle Press 5 times
    button_a5:
    name: Button A - Up/On press 5x
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
    button_b5:
    name: Button B - Down/Off press 5x
    description: "Action to run, when the button is pressed five times."
    default: []
    selector:
    action: {}
    mode: single
    max_exceeded: silent
    variables:
    device_id: !input inovelli_switch
    trigger:
    - platform: event
    event_type: zwave_js_event
    condition: "{{ trigger.event.data.device_id == device_id }}"
    action:
    - variables:
    button_id: "{{ trigger.event.data.property_key_name }}"
    press_count: "{{ trigger.event.data.value }}"
    - service: "logbook.log"
    data:
    name: "Button Id"
    message: "{{ button_id }}"
    - service: "logbook.log"
    data:
    name: "Press Count"
    message: "{{ press_count }}"
    - service: "logbook.log"
    data:
    name: "Device"
    message: "{{ zwave_device }}"
    - choose:
    - conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
    sequence: !input config_button
    - conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
    sequence: !input button_a
    - conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
    sequence: !input button_b
    - conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
    sequence: !input button_a_held
    - conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
    sequence: !input button_b_held
    - conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
    sequence: !input button_a2
    - conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
    sequence: !input button_b2
    - conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
    sequence: !input button_a3
    - conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
    sequence: !input button_b3
    - conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
    sequence: !input button_a4
    - conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
    sequence: !input button_b4
    - conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
    sequence: !input button_a5
    - conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
    sequence: !input button_b5