Initial commit
This commit is contained in:
108
blueprints/automation/inovelli-lzw30-scenes.yaml
Normal file
108
blueprints/automation/inovelli-lzw30-scenes.yaml
Normal file
@@ -0,0 +1,108 @@
|
||||
blueprint:
|
||||
name: LZW30 Scenes
|
||||
description: Scene control for Inovelli LZW30 switch
|
||||
domain: automation
|
||||
author: ardichoke
|
||||
input:
|
||||
inovelli_switch:
|
||||
name: Inovelli On/Off Switch
|
||||
description: The Inovelli switch to use for scene control
|
||||
selector:
|
||||
device:
|
||||
filter:
|
||||
- integration: zwave_js
|
||||
manufacturer: Inovelli
|
||||
model: LZW30-SN
|
||||
- integration: zwave_js
|
||||
manufacturer: Inovelli
|
||||
model: LZW30
|
||||
- integration: zwave_js
|
||||
manufacturer: Inovelli
|
||||
model: LZW31-SN
|
||||
- integration: zwave_js
|
||||
manufacturer: Inovelli
|
||||
model: LZW31
|
||||
up_x1_action:
|
||||
name: Single Tap Up Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
up_x2_action:
|
||||
name: Double Tap Up Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
up_x3_action:
|
||||
name: Triple Tap Up Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
up_x4_action:
|
||||
name: 4x Tap Up Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
down_x1_action:
|
||||
name: Single Tap Down Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
down_x2_action:
|
||||
name: Double Tap Down Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
down_x3_action:
|
||||
name: Triple Tap Down Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
down_x4_action:
|
||||
name: 4x Tap Down Action
|
||||
default: []
|
||||
selector:
|
||||
action: {}
|
||||
|
||||
mode: parallel
|
||||
max_exceeded: silent
|
||||
|
||||
variables:
|
||||
down_button: "001"
|
||||
up_button: "002"
|
||||
press_x1: KeyPressed
|
||||
press_x2: KeyPressed2x
|
||||
press_x3: KeyPressed3x
|
||||
press_x4: KeyPressed4x
|
||||
button: "{{ trigger.event.data.property_key_name }}"
|
||||
action_type: "{{ trigger.event.data.value }}"
|
||||
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zwave_js_value_notification
|
||||
event_data:
|
||||
device_id: !input inovelli_switch
|
||||
|
||||
action:
|
||||
choose:
|
||||
- conditions: "{{ button == up_button }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions: "{{ action_type == press_x1 }}"
|
||||
sequence: !input up_x1_action
|
||||
- conditions: "{{ action_type == press_x2 }}"
|
||||
sequence: !input up_x2_action
|
||||
- conditions: "{{ action_type == press_x3 }}"
|
||||
sequence: !input up_x3_action
|
||||
- conditions: "{{ action_type == press_x4 }}"
|
||||
sequence: !input up_x4_action
|
||||
- conditions: "{{ button == down_button }}"
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions: "{{ action_type == press_x1 }}"
|
||||
sequence: !input down_x1_action
|
||||
- conditions: "{{ action_type == press_x2 }}"
|
||||
sequence: !input down_x2_action
|
||||
- conditions: "{{ action_type == press_x3 }}"
|
||||
sequence: !input down_x3_action
|
||||
- conditions: "{{ action_type == press_x4 }}"
|
||||
sequence: !input down_x4_action
|
||||
Reference in New Issue
Block a user