Created
March 13, 2021 17:29
-
-
Save nniehoff/17108c962482a6c068ff3641bb1ea0c2 to your computer and use it in GitHub Desktop.
home-assistant-blueprints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Zooz Switch Double Taps | |
description: Create automations to react to double taps from supporting Zooz Switches. | |
domain: automation | |
input: | |
device: | |
name: Switch Device | |
description: A Zooz Switch that supports double taps. | |
selector: | |
device: | |
integration: zwave_js | |
manufacturer: Zooz | |
double_tap_on: | |
name: Double Tap On | |
description: Actions to run for a double tap on. | |
default: [] | |
selector: | |
action: | |
double_tap_off: | |
name: Double Tap Off | |
description: Actions to run for a double tap off. | |
default: [] | |
selector: | |
action: | |
mode: single | |
max_exceeded: silent | |
trigger: | |
platform: event | |
event_type: zwave_js_event | |
event_data: | |
device_id: !input device | |
command_class: 91 | |
value: "KeyPressed2x" | |
action: | |
- variables: | |
label: "{{ trigger.event.data.label }}" | |
- choose: | |
- conditions: "{{ label == 'Scene 001' }}" | |
sequence: !input double_tap_off | |
- conditions: "{{ label == 'Scene 002' }}" | |
sequence: !input double_tap_on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment