Inovelli LZW30 Red-Series Switch using the new ZWave-JS Integration

Hi, I’m getting an error when creating the blueprint file… it says

unknown tag !<!input> at line 89, column 33:
      device_id: !input zwave_device
                                    ^

Any ideas on what this could be?

Hmm. that’s odd… requires zwave_js and the proper device type and manufacturer.

I have js, but not sure what you.mean by device type and mfg. Seems to work ok, just have the error in the blueprint yaml file

I just deleted and re-added without issue so not sure why you would be seeing that error.

Hey all wondering if anyone can help here. I am trying to setup this blueprint with a very simple call to call a scene. My scenes work on their own and my switch is working in ZWave js but when trying to use the blueprint in an action I get the error

Stopped because an error was encountered at April 27, 2021, 5:16:45 PM (runtime: 0.04 seconds)

UndefinedError: 'dict object' has no attribute 'event'

Any ideas what might be happening?

how are you adding? manually creating a blueprint file?

via the URL of this topic

Blueprint used to work perfect,
since two weeks ago i started getting also the UndefinedError: ‘dict object’ has no attribute ‘event’
was this issue ever solved/addressed?

Even after adding/removing keeps coming…

i’m a bit late to the topic. i made some mod to this blueprint for long-press. here’s the updated yaml

blueprint:
  name: Inovelli LZW30-SN Switch (ZWave-JS)
  description: Create automations for the Inovelli Red Series LZW30-SN Switch using the ZWave-JS integration. 
  domain: automation
  input:
    zwave_device:
      name: Inovelli Switch
      description: "List of available inovelli LZW30-SN switch."
      selector:
          device:
            integration: zwave_js
            manufacturer: Inovelli
            model: LZW30-SN
    ## 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 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: {}
    ## Paddle held
    button_ah:
      name: Button A - Up/On held
      description: "Action to run, when the button is held."
      default: []
      selector:
        action: {}
    button_bh:
      name: Button B - Down/Off held
      description: "Action to run, when the button is held."
      default: []
      selector:
        action: {}
    ## Paddle held
    button_ar:
      name: Button A - Up/On released
      description: "Action to run, when the button is released"
      default: []
      selector:
        action: {}
    button_br:
      name: Button B - Down/Off released
      description: "Action to run, when the button is released."
      default: []
      selector:
        action: {}
mode: single
max_exceeded: silent
variables:
  device_id: !input zwave_device
trigger:
  - platform: event
    event_type: zwave_js_value_notification
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 == "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
    - conditions: '{{ button_id == "002" and press_count == "KeyHeldDown" }}'
      sequence: !input button_ah
    - conditions: '{{ button_id == "001" and press_count == "KeyHeldDown" }}'
      sequence: !input button_bh
    - conditions: '{{ button_id == "002" and press_count == "KeyReleased" }}'
      sequence: !input button_ar
    - conditions: '{{ button_id == "001" and press_count == "KeyReleased" }}'
      sequence: !input button_br
3 Likes

Did you found a solution for the problem ?

Thanks for this blueprint! Works great with my LZW30-SN switches.

I’m running zwave2mqtt in a (separate) docker container with the HASS integration, for reference. This saved me a lot of trouble trying to capture button presses.

Seemingly easy question - how do I import this blueprint if the URL links to the template in the first post?

Create a new blue print then copy and paste that yaml in there.

1 Like

I imported the Blueprint using the Home Assistant Configuration / Blueprint./
When I try to create automation from the blueprint list. There is nothing I can do, the List of available Inovelli LZW30-SN switch indicate (No matching devices found)

I have 2 switches installed via Z_WAVE_JS. However both MANUFACTURER and MODEL are unknown.
How can I get the Blueprint to list these device?

Maybe I’m an idiot but can some one give me some advice about setting up a condition for activating scenes? If I set a time condition with After 07:00:00 and Before 18:30:00 then “add Action” to activate scene. Then I “add Condition” and “add Action” for the other time and scene. But It doesn’t’ seem to be working correctly. Should it be set up as a “Or” condition?

I am trying to figure out the same thing

I don’t know which update or what happened, but this blueprint stopped working for me. With a little effort I figured it out:

I had to change all of the press_count stuff in it to get it working for me again.

press_count == “KeyPressed” needed to be changed to press_count == 0
and the others as well.
“KeyPressed2x” to 1
“KeyPressed3x” to 2
“KeyPressed4x” to 3
“KeyPressed5x” to 4

see below

blueprint:
  name: Fixed Inovelli Red Series LZW30-SN Switch (ZWave-JS)
  description:
    Create automations for the Inovelli Red Series LZW30-SN Switch using
    the ZWave-JS integration.
  domain: automation
  input:
    zwave_device:
      name: Inovelli Switch
      description: List of available inovelli LZW30-SN switch.
      selector:
        device:
          integration: zwave_js
          manufacturer: Inovelli
          model: LZW30-SN
    config_button:
      name: Button C - Config press 1x
      description: Action to run, when the config button is pressed one time.
      default: []
      selector:
        action: {}
    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: {}
    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: {}
    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: {}
    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: {}
    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: {}
  source_url: https://community.home-assistant.io/t/inovelli-lzw30-red-series-switch-using-the-new-zwave-js-integration/278457
mode: single
max_exceeded: silent
variables:
  device_id: !input "zwave_device"
trigger:
  - platform: event
    event_type: zwave_js_value_notification
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 == 0 }}'
        sequence: !input "config_button"
      - conditions: '{{ button_id == "002" and press_count == 0 }}'
        sequence: !input "button_a"
      - conditions: '{{ button_id == "001" and press_count == 0 }}'
        sequence: !input "button_b"
      - conditions: '{{ button_id == "002" and press_count == 1 }}'
        sequence: !input "button_a2"
      - conditions: '{{ button_id == "001" and press_count == 1 }}'
        sequence: !input "button_b2"
      - conditions: '{{ button_id == "002" and press_count == 2 }}'
        sequence: !input "button_a3"
      - conditions: '{{ button_id == "001" and press_count == 2 }}'
        sequence: !input "button_b3"
      - conditions: '{{ button_id == "002" and press_count == 3 }}'
        sequence: !input "button_a4"
      - conditions: '{{ button_id == "001" and press_count == 3 }}'
        sequence: !input "button_b4"
      - conditions: '{{ button_id == "002" and press_count == 4 }}'
        sequence: !input "button_a5"
      - conditions: '{{ button_id == "001" and press_count == 4 }}'
        sequence: !input "button_b5"