Inovelli LZW36 Fan/Dimmer Scenes

This blueprint allows you to easily create automations from the scene buttons from the Inovelli LZW36 Fan/Dimmer Switch. Long term I’d like to create a single blueprint that could handle all Inovelli models and both OZW and zwave but since this is my first blueprint I wanted to start smaller.

blueprint:
  name: Inovelli 
  description: |
    Use this blueprint to create automations based on button presses for the LZW36 - Red Series Fan/Light Switch while using the OZW integration. I plan on expanding this to the other supported switches as well as an option for the legacy zwave integration but this is a start.
  domain: automation
  input:
    light_switch:
      name: Inovelli Switch
      description: The inovelli fan/dimmer switch that will trigger the scenes
      selector:
        entity:
          integration: ozw
          domain: light

    light_button_twice:
      name: Light Button Twice
      description: Pick an action for when the light button is pressed twice.
      selector:
        action:

    light_button_thrice:
      name: Light Button Three Times
      description: Pick an action for when the light button is pressed three times.
      selector:
        action:

    fan_button_twice:
      name: Fan Button Twice
      description: Pick an action for when the fan button is pressed twice.
      selector:
        action:

    fan_button_thrice:
      name: Fan Button Three Times
      description: Pick an action for when the fan button is pressed three times.
      selector:
        action:

variables:
  device: !input "light_switch"
  entity_node_id: "{{ state_attr(device,'node_id') }}"
mode: single

trigger:
  - platform: event
    event_type: ozw.scene_activated

action:
  - variables:
      node_id: "{{trigger.event.data.node_id}}"
      scene_id: "{{ trigger.event.data.scene_id }}"
      scene_value_id: "{{ trigger.event.data.scene_value_id }}"

  - service: ozw.set_config_parameter
    data:
      node_id: "{{entity_node_id}}"
      parameter: 24
      value: 33819041
 
  - service: ozw.set_config_parameter
    data:
      node_id: "{{entity_node_id}}"
      parameter: 25
      value: 33819041

  - choose:
    - conditions:
        - "{{ node_id == entity_node_id }}"
        - "{{ scene_id == 2 }}"
        - "{{ scene_value_id == 4 }}"
      sequence: !input light_button_twice

    - conditions:
        - "{{ node_id == entity_node_id }}"
        - "{{ scene_id == 2 }}"
        - "{{ scene_value_id == 5 }}"
      sequence: !input light_button_thrice

    - conditions:
        - "{{ node_id == entity_node_id }}"  
        - "{{ scene_id == 1 }}"
        - "{{ scene_value_id == 4 }}"
      sequence: !input fan_button_twice

    - conditions:
        - "{{ node_id == entity_node_id }}"   
        - "{{ scene_id == 1 }}"
        - "{{ scene_value_id == 5 }}"
      sequence: !input fan_button_thrice

3 Likes

Good stuff. Looking forward to additional blueprints for Inovelli. Might have a go for the Red Switches myself, soon.

This helped me a lot to create my fibaro dimmer(Fibaro dimmer 2 S2 functionality) blueprint for the S2 switch.
Thanks! :smiley:

- service: ozw.set_config_parameter
    data:
      node_id: "{{entity_node_id}}"
      parameter: 24
      value: 33819041

What are you doing with the config change?

I see now, led strip effect.

Yea, I can’t seem to get an individual effect per scene to work so I just set one for the whole automation just as a confirmation it was received. If you figure out how to have both a statically assigned action and one from an input selector let me know.