Inovelli Red Switches (LZW30-SN)

Took a queue from @vbflo and created a blueprint for Inovelli Red Switches (LZW30-SN) which should also work with the Red Dimmer (but I don’t have one to test and would not have the hold up/down).

blueprint:
  name: Inovelli Red Switches (LZW30-SN)
  description: "Use this blueprint to create automations based on button presses for\
    \ the LZW31-SN - Red Series Switch while using the OZW integration. \n"
  domain: automation
  input:
    inovelli_switch:
      name: Inovelli Switch
      description: The inovelli switch that will trigger the scenes
      selector:
        entity:
          integration: ozw
          domain: switch   
    light_button_on_1:
      name: On x1
      description: Pick an action for when the light button is pressed once.
      default: []
      selector:
        action: {}
    light_button_off_1:
      name: Off x1
      description: Pick an action for when the light button is pressed once.
      default: []
      selector:
        action: {}
    light_button_on_2:
      name: On x2
      description: Pick an action for when the light button is pressed twice.
      default: []
      selector:
        action: {}
    light_button_off_2:
      name: Off x2
      description: Pick an action for when the light button is pressed twice.
      default: []
      selector:
        action: {}
    light_button_on_3:
      name: On x3
      description: Pick an action for when the light button is pressed three times.
      default: []
      selector:
        action: {}
    light_button_off_3:
      name: Off x3
      description: Pick an action for when the light button is pressed three times.
      default: []
      selector:
        action: {}
    light_button_on_4:
      name: On x4
      description: Pick an action for when the light button is pressed four times.
      default: []
      selector:
        action: {}
    light_button_off_4:
      name: Off x4
      description: Pick an action for when the light button is pressed four times.
      default: []
      selector:
        action: {}
    light_button_on_5:
      name: On x5
      description: Pick an action for when the light button is pressed five times.
      default: []
      selector:
        action: {}
    light_button_off_5:
      name: Off x5
      description: Pick an action for when the light button is pressed five times.
      default: []
      selector:
        action: {}
    config_button:
      name: Config x1
      description: Pick an action for when the config button is pressed one times.
      default: []
      selector:
        action: {}
  source_url: https://community.home-assistant.io/t/inovelli-red-switches-lzw30-sn/255324
variables:
  device: !input 'inovelli_switch'
  ozw_node_id: '{{ state_attr(device,''node_id'') }}'
mode: single
trigger:
- platform: event
  event_type: ozw.scene_activated
condition: '{{ trigger.event.data.node_id == (ozw_node_id | int) }}'
action:
- variables:
    scene_id: '{{ trigger.event.data.scene_id }}'
    scene_value_id: '{{ trigger.event.data.scene_value_id }}'
- choose:
  - conditions:
    - '{{ scene_id == 3 }}'
    - '{{ scene_value_id == 1 }}'
    sequence: !input 'config_button'  
  - conditions:
    - '{{ scene_id == 2 }}'
    - '{{ scene_value_id == 1 }}'
    sequence: !input 'light_button_on_1'
  - conditions:
    - '{{ scene_id == 1 }}'
    - '{{ scene_value_id == 1 }}'
    sequence: !input 'light_button_off_1'
  - conditions:
    - '{{ scene_id == 2 }}'
    - '{{ scene_value_id == 4 }}'
    sequence: !input 'light_button_on_2'
  - conditions:
    - '{{ scene_id == 1 }}'
    - '{{ scene_value_id == 4 }}'
    sequence: !input 'light_button_off_2'
  - conditions:
    - '{{ scene_id == 2 }}'
    - '{{ scene_value_id == 5 }}'
    sequence: !input 'light_button_on_3'
  - conditions:
    - '{{ scene_id == 1 }}'
    - '{{ scene_value_id == 5 }}'
    sequence: !input 'light_button_off_3'
  - conditions:
    - '{{ scene_id == 2 }}'
    - '{{ scene_value_id == 6 }}'
    sequence: !input 'light_button_on_4'
  - conditions:
    - '{{ scene_id == 1 }}'
    - '{{ scene_value_id == 6 }}'
    sequence: !input 'light_button_off_4'
  - conditions:
    - '{{ scene_id == 2 }}'
    - '{{ scene_value_id == 7 }}'
    sequence: !input 'light_button_on_5'
  - conditions:
    - '{{ scene_id == 1 }}'
    - '{{ scene_value_id == 7 }}'
    sequence: !input 'light_button_off_5'


1 Like

… Makes the nodered node look even better haha. What’s the benefits of this blueprint integration?

1 Like

Just tested with LZW31-SN dimmer. I’m not able to select my switch at “Inovelli Switch” as the domain for LZW31-SN dimmer is “light” not “switch”. May try testing some changes.

Needed to make some edits to the original, forgot to define node_id from the trigger event, might want to update this as well.

1 Like

Thanks! I didn’t have time to fiddle with why it wasn’t working earlier. That did the trick. Updates in the OP.

1 Like

How can I add single, triple, quad ext… presses

They are commented out. I need to figure out how to make them optional but for now it requires that you uncomment them.

EDIT: I updated to support all scenes.