/
inovelli-vzw31-sn-red-series-switch.yaml
270 lines (270 loc) · 10.1 KB
/
inovelli-vzw31-sn-red-series-switch.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# yamllint disable-line rule:line-length
---
blueprint:
name: Inovelli Red Series VZW31-SN Red Series Switch (ZWave-JS)
description: Create automations based on scenes for the Inovelli Red Series VZW31-SN Switch.
domain: automation
input:
zwave_device:
name: Inovelli Switch
description: List of available Inovelli VZW31-SN switches.
selector:
device:
integration: zwave_js
manufacturer: Inovelli
model: VZW31-SN
multiple: true
config_button:
name: Config Press 1x
description: Action to run, when the config button is pressed one time.
default: []
selector:
action: {}
button_a:
name: Up/On Press 1x
description: Action to run, when the Up button is pressed one time.
default: []
selector:
action: {}
button_b:
name: Down/Off Press 1x
description: Action to run, when the Down button is pressed one time.
default: []
selector:
action: {}
config_button2:
name: Config Press 2x
description: Action to run, when the config button is pressed two times.
default: []
selector:
action: {}
button_a2:
name: Up/On Press 2x
description: Action to run, when the Up button is pressed two times.
default: []
selector:
action: {}
button_b2:
name: Down/Off Press 2x
description: Action to run, when the Down button is pressed two times.
default: []
selector:
action: {}
config_button3:
name: Config Press 3x
description: Action to run, when the config button is pressed three times.
default: []
selector:
action: {}
button_a3:
name: Up/On Press 3x
description: Action to run, when the up button is pressed three times.
default: []
selector:
action: {}
button_b3:
name: Down/Off Press 3x
description: Action to run, when the Down button is pressed three times.
default: []
selector:
action: {}
config_button4:
name: Config Press 4x
description: Action to run, when the config button is pressed four times.
default: []
selector:
action: {}
button_a4:
name: Up/On Press 4x
description: Action to run, when the Up button is pressed four times.
default: []
selector:
action: {}
button_b4:
name: Down/Off Press 4x
description: Action to run, when the Down button is pressed four times.
default: []
selector:
action: {}
config_button5:
name: Config Press 5x
description: Action to run, when the config button is pressed five times.
default: []
selector:
action: {}
button_a5:
name: Up/On Press 5x
description: Action to run, when the Up button is pressed five times.
default: []
selector:
action: {}
button_b5:
name: Down/Off Press 5x
description: Action to run, when the Down button is pressed five times.
default: []
selector:
action: {}
aux_config_button:
name: Aux Config Press 1x
description: Action to run, when the config button is pressed one time on the aux switch.
default: []
selector:
action: {}
aux_button_a:
name: Aux Up/On Press 1x
description: Action to run, when the Up button is pressed one time on the aux switch.
default: []
selector:
action: {}
aux_button_b:
name: Aux Down/Off Press 1x
description: Action to run, when the Down button is pressed one time on the aux switch.
default: []
selector:
action: {}
aux_config_button2:
name: Aux Config Press 2x
description: Action to run, when the config button is pressed two times on the aux switch.
default: []
selector:
action: {}
aux_button_a2:
name: Aux Up/On Press 2x
description: Action to run, when the Up button is pressed two times on the aux switch.
default: []
selector:
action: {}
aux_button_b2:
name: Aux Down/Off Press 2x
description: Action to run, when the Down button is pressed two times on the aux switch.
default: []
selector:
action: {}
aux_config_button3:
name: Aux Config Press 3x
description: Action to run, when the config button is pressed three times on the aux switch.
default: []
selector:
action: {}
aux_button_a3:
name: Aux Up/On Press 3x
description: Action to run, when the up button is pressed three times on the aux switch.
default: []
selector:
action: {}
aux_button_b3:
name: Aux Down/Off Press 3x
description: Action to run, when the Down button is pressed three times on the aux switch.
default: []
selector:
action: {}
aux_config_button4:
name: Aux Config Press 4x
description: Action to run, when the config button is pressed four times on the aux switch.
default: []
selector:
action: {}
aux_button_a4:
name: Aux Up/On Press 4x
description: Action to run, when the Up button is pressed four times on the aux switch.
default: []
selector:
action: {}
aux_button_b4:
name: Aux Down/Off Press 4x
description: Action to run, when the Down button is pressed four times on the aux switch.
default: []
selector:
action: {}
aux_config_button5:
name: Aux Config Press 5x
description: Action to run, when the config button is pressed five times on the aux switch.
default: []
selector:
action: {}
aux_button_a5:
name: Aux Up/On Press 5x
description: Action to run, when the Up button is pressed five times on the aux switch.
default: []
selector:
action: {}
aux_button_b5:
name: Aux Down/Off Press 5x
description: Action to run, when the Down button is pressed five times on the aux switch.
default: []
selector:
action: {}
source_url: https://github.com/rohankapoorcom/homeassistant-config/blob/master/blueprints/automation/rohankapoorcom/inovelli-vzw31-sn-red-series-switch.yaml
mode: single
max_exceeded: silent
variables:
device_id: !input 'zwave_device'
trigger:
- platform: event
event_type: zwave_js_value_notification
condition: '{{ trigger.event.data.device_id in device_id }}'
action:
- variables:
button_id: '{{ trigger.event.data.property_key_name }}'
press_count: '{{ trigger.event.data.value }}'
- choose:
- conditions: '{{ button_id == "003" and press_count == "KeyPressed" }}'
sequence: !input 'config_button'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed" }}'
sequence: !input 'button_a'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed" }}'
sequence: !input 'button_b'
- conditions: '{{ button_id == "003" and press_count == "KeyPressed2x" }}'
sequence: !input 'config_button2'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_a2'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed2x" }}'
sequence: !input 'button_b2'
- conditions: '{{ button_id == "003" and press_count == "KeyPressed3x" }}'
sequence: !input 'config_button3'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_a3'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed3x" }}'
sequence: !input 'button_b3'
- conditions: '{{ button_id == "003" and press_count == "KeyPressed4x" }}'
sequence: !input 'config_button4'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_a4'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed4x" }}'
sequence: !input 'button_b4'
- conditions: '{{ button_id == "003" and press_count == "KeyPressed5x" }}'
sequence: !input 'config_button5'
- conditions: '{{ button_id == "002" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_a5'
- conditions: '{{ button_id == "001" and press_count == "KeyPressed5x" }}'
sequence: !input 'button_b5'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed" }}'
sequence: !input 'aux_config_button'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed" }}'
sequence: !input 'aux_button_a'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed" }}'
sequence: !input 'aux_button_b'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed2x" }}'
sequence: !input 'aux_config_button2'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed2x" }}'
sequence: !input 'aux_button_a2'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed2x" }}'
sequence: !input 'aux_button_b2'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed3x" }}'
sequence: !input 'aux_config_button3'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed3x" }}'
sequence: !input 'aux_button_a3'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed3x" }}'
sequence: !input 'aux_button_b3'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed4x" }}'
sequence: !input 'aux_config_button4'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed4x" }}'
sequence: !input 'aux_button_a4'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed4x" }}'
sequence: !input 'aux_button_b4'
- conditions: '{{ button_id == "006" and press_count == "KeyPressed5x" }}'
sequence: !input 'aux_config_button5'
- conditions: '{{ button_id == "005" and press_count == "KeyPressed5x" }}'
sequence: !input 'aux_button_a5'
- conditions: '{{ button_id == "004" and press_count == "KeyPressed5x" }}'
sequence: !input 'aux_button_b5'