-
Notifications
You must be signed in to change notification settings - Fork 0
/
zoozzen22.yaml
129 lines (129 loc) · 4.23 KB
/
zoozzen22.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
blueprint:
name: Zen22 (Z-Wave JS) v0.01
description: Create automations for the Zooz Zen22 Dimmer using the Z-Wave JS integration.
domain: automation
input:
zen22:
name: Zooz Switch
description: List of available Zen22 Dimmers
selector:
device:
integration: zwave_js
manufacturer: Zooz
model: ZEN22
tap_1x_up:
name: Tap 1x Up
description: Action to run when Up button is pressed 1 time.
default: []
selector:
action: {}
tap_1x_dn:
name: Tap 1x Down
description: Action to run when Down button is pressed 1 time.
default: []
selector:
action: {}
tap_2x_up:
name: Tap 2x Up
description: Action to run when Up button is pressed 2 times.
default: []
selector:
action: {}
tap_2x_dn:
name: Tap 2x Down
description: Action to run when Down button is pressed 2 times.
default: []
selector:
action: {}
tap_4x_up:
name: Tap 4x Up
description: Action to run when Up button is pressed 4 times.
default: []
selector:
action: {}
tap_4x_dn:
name: Tap 4x Down
description: Action to run when Down button is pressed 4 times.
default: []
selector:
action: {}
tap_5x_up:
name: Tap 5x Up
description: Action to run when the Up button is pressed 5 times.
default: []
selector:
action: {}
tap_5x_dn:
name: Tap 5x Down
description: Action to run when the Down button is pressed 5 times.
default: []
selector:
action: {}
up_btn_hld:
name: Up Button Held
description: Action to run when Up button is Held.
default: []
selector:
action: {}
up_btn_rel:
name: Up Button Released
description: Action to run when Up button is Released.
default: []
selector:
action: {}
dn_btn_hld:
name: Down Button Held
description: Action to run when Down button is Held.
default: []
selector:
action: {}
dn_btn_rel:
name: Down Button Released
description: Action to run when Down button is Released.
default: []
selector:
action: {}
source_url: https://github.com/dacmcbibs/HASS_Blueprints/blob/main/zoozzen22.yaml
mode: single
max_exceeded: silent
variables:
device_id: !input zen22
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id == device_id }}'
action:
- variables:
property_key_name: '{{ trigger.event.data.property_key_name }}'
label: '{{ trigger.event.data.label }}'
command_class_name: '{{ trigger.event.data.command_class_name }}'
value: '{{ trigger.event.data.value }}'
- service: logbook.log
data:
name: Z-Wave JS
message: 'received event: {{ command_class_name }} - {{ value }} - {{ label }}'
- choose:
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed'' }}'
sequence: !input tap_1x_up
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed'' }}'
sequence: !input tap_1x_dn
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed2x'' }}'
sequence: !input tap_2x_up
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed2x'' }}'
sequence: !input tap_2x_dn
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed4x'' }}'
sequence: !input tap_4x_up
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed4x'' }}'
sequence: !input tap_4x_dn
- conditions: '{{ property_key_name == ''002'' and value == ''KeyPressed5x'' }}'
sequence: !input tap_5x_up
- conditions: '{{ property_key_name == ''001'' and value == ''KeyPressed5x'' }}'
sequence: !input tap_5x_dn
- conditions: '{{ property_key_name == ''002'' and value == ''KeyHeldDown'' }}'
sequence: !input up_btn_hld
- conditions: '{{ property_key_name == ''002'' and value == ''KeyReleased'' }}'
sequence: !input up_btn_rel
- conditions: '{{ property_key_name == ''001'' and value == ''KeyHeldDown'' }}'
sequence: !input dn_btn_hld
- conditions: '{{ property_key_name == ''001'' and value == ''KeyReleased'' }}'
sequence: !input dn_btn_rel