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
|
||||||
145
blueprints/automation/zooz-zen71-scenes.yaml
Normal file
145
blueprints/automation/zooz-zen71-scenes.yaml
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
mode: restart
|
||||||
|
blueprint:
|
||||||
|
name: Zooz ZEN71
|
||||||
|
description: Automations helper for the Zooz ZEN71 Switch using the Zwave JS integration.
|
||||||
|
domain: automation
|
||||||
|
input:
|
||||||
|
zooz_zen71:
|
||||||
|
name: Zooz ZEN71
|
||||||
|
description: The ZEN71 switch to interact with.
|
||||||
|
selector:
|
||||||
|
device:
|
||||||
|
filter:
|
||||||
|
- integration: zwave_js
|
||||||
|
manufacturer: Zooz
|
||||||
|
model: ZEN71
|
||||||
|
- integration: zwave_js
|
||||||
|
manufacturer: Zooz
|
||||||
|
model: Zen71 800LR
|
||||||
|
switch_up_1x:
|
||||||
|
name: Top Paddle 1x
|
||||||
|
description:
|
||||||
|
"Action to run on switch upper paddle single tap. Default: Turn
|
||||||
|
on switch."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_2x:
|
||||||
|
name: Top Paddle 2x
|
||||||
|
description: Action to run on switch upper paddle double tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_3x:
|
||||||
|
name: Top Paddle 3x
|
||||||
|
description:
|
||||||
|
"Action to run on switch upper paddle triple tap. Default: Enter
|
||||||
|
inclusion/pairing mode."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_4x:
|
||||||
|
name: Top Paddle 4x
|
||||||
|
description: Action to run on switch upper paddle quadruple tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_5x:
|
||||||
|
name: Top Paddle 5x
|
||||||
|
description: Action to run on switch upper paddle quintuple tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_hold:
|
||||||
|
name: Top Paddle Hold
|
||||||
|
description: "Action to run on switch upper paddle press-and-hold."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_up_release:
|
||||||
|
name: Top Paddle Release
|
||||||
|
description: Action to run on switch upper paddle release.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_1x:
|
||||||
|
name: Lower Paddle 1x
|
||||||
|
description:
|
||||||
|
"Action to run on switch lower paddle single tap. Default: Turn
|
||||||
|
off switch."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_2x:
|
||||||
|
name: Lower Paddle 2x
|
||||||
|
description: Action to run on switch lower paddle double tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_3x:
|
||||||
|
name: Lower Paddle 3x
|
||||||
|
description:
|
||||||
|
"Action to run on switch lower paddle triple tap. Default: Enter
|
||||||
|
exclusion/un-pairing mode."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_4x:
|
||||||
|
name: Lower Paddle 4x
|
||||||
|
description: Action to run on switch lower paddle quadruple tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_5x:
|
||||||
|
name: Lower Paddle 5x
|
||||||
|
description: Action to run on switch lower paddle quintuple tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_hold:
|
||||||
|
name: Bottom Paddle Hold
|
||||||
|
description: "Action to run on switch lower paddle press-and-hold."
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
switch_down_release:
|
||||||
|
name: Bottom Paddle Release
|
||||||
|
description: Action to run on switch lower paddle double tap.
|
||||||
|
default: []
|
||||||
|
selector:
|
||||||
|
action: {}
|
||||||
|
source_url: https://community.home-assistant.io/t/zooz-zen30-double-switch-automation-helper/281362
|
||||||
|
max_exceeded: silent
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: zwave_js_value_notification
|
||||||
|
event_data:
|
||||||
|
command_class_name: Central Scene
|
||||||
|
device_id: !input "zooz_zen71"
|
||||||
|
action:
|
||||||
|
- variables:
|
||||||
|
scene_id: "{{ trigger.event.data.label }}"
|
||||||
|
attribute_id: "{{ trigger.event.data.value }}"
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ scene_id == 'Scene 001' }}"
|
||||||
|
sequence:
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed' }}"
|
||||||
|
sequence: !input "switch_up_1x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed2x' }}"
|
||||||
|
sequence: !input "switch_up_2x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed4x' }}"
|
||||||
|
sequence: !input "switch_up_4x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed5x' }}"
|
||||||
|
sequence: !input "switch_up_5x"
|
||||||
|
- conditions: "{{ scene_id == 'Scene 002' }}"
|
||||||
|
sequence:
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed' }}"
|
||||||
|
sequence: !input "switch_down_1x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed2x' }}"
|
||||||
|
sequence: !input "switch_down_2x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed4x' }}"
|
||||||
|
sequence: !input "switch_down_4x"
|
||||||
|
- conditions: "{{ attribute_id == 'KeyPressed5x' }}"
|
||||||
|
sequence: !input "switch_down_5x"
|
||||||
Reference in New Issue
Block a user