-
Notifications
You must be signed in to change notification settings - Fork 0
/
zhc5010 blueprint
198 lines (198 loc) · 7.02 KB
/
zhc5010 blueprint
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
blueprint:
name: Logic Group Matrix ZDB5100
description: Create automatisation for the ZDB5100 using zwavejs integration
domain: automation
input:
matrix_zdb5100:
name: ZHC5010
description: The ZHC to interact with
selector:
device:
integration: zwave_js
manufacturer: Logic Group
model: ZHC5010
button_top_left_tap:
name: Tap Button 1 - Top left
description: Action to run on button press.
default: []
selector:
action: {}
button_top_right_tap:
name: Tap Button 2 - Top Right
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_left_tap:
name: Tap Button 3 - Lower Left
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_right_tap:
name: Tap Button 4 - Lower Right
description: Action to run on button press.
default: []
selector:
action: {}
button_top_left_2xtap:
name: Double Tap Button 1 - Top left
description: Action to run on button press.
default: []
selector:
action: {}
button_top_right_2xtap:
name: Double Tap Button 2 - Top Right
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_left_2xtap:
name: Double Tap Button 3 - Lower Left
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_right_2xtap:
name: Double Tap Button 4 - Lower Right
description: Action to run on button press.
default: []
selector:
action: {}
button_top_left_3xtap:
name: Triple Tap Button 1 - Top left
description: Action to run on button press.
default: []
selector:
action: {}
button_top_right_3xtap:
name: Triple Tap Button 2 - Top Right
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_left_3xtap:
name: Triple Tap Button 3 - Lower Left
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_right_3xtap:
name: Triple Tap Button 4 - Lower Right
description: Action to run on button press.
default: []
selector:
action: {}
button_top_left_release:
name: Release Button 1 - Top left
description: Action to run on button press.
default: []
selector:
action: {}
button_top_right_release:
name: Release Button 2 - Top Right
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_left_release:
name: Release Button 3 - Lower Left
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_right_release:
name: Release Button 4 - Lower Right
description: Action to run on button press.
default: []
selector:
action: {}
button_top_left_hold:
name: Hold Button 1 - Top left
description: Action to run on button press.
default: []
selector:
action: {}
button_top_right_hold:
name: Hold Button 2 - Top Right
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_left_hold:
name: Hold Button 3 - Lower Left
description: Action to run on button press.
default: []
selector:
action: {}
button_lower_right_hold:
name: Hold Button 4 - Lower Right
description: Action to run on button press.
default: []
selector:
action: {}
source_url: https://community.home-assistant.io/t/zwavejs-logic-group-zdb5100-matrix-switch-with-dimmer-and-backlight/287594
mode: single
max_exceeded: silent
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
device_id: !input 'matrix_zdb5100'
command_class_name: Central Scene
- platform: event
event_type: zwave_js_event
event_data:
device_id: !input 'matrix_zdb5100'
command_class_name: Central Scene
action:
- variables:
button_id: '{{ trigger.event.data.property_key_name }}'
button_action: '{{ trigger.event.data.value }}'
- choose:
- conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed'' }}'
sequence: !input 'button_top_left_tap'
- conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed'' }}'
sequence: !input 'button_top_right_tap'
- conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed'' }}'
sequence: !input 'button_lower_left_tap'
- conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed'' }}'
sequence: !input 'button_lower_right_tap'
- conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed2x'' }}'
sequence: !input 'button_top_left_2xtap'
- conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed2x'' }}'
sequence: !input 'button_top_right_2xtap'
- conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed2x'' }}'
sequence: !input 'button_lower_left_2xtap'
- conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed2x'' }}'
sequence: !input 'button_lower_right_2xtap'
- conditions: '{{ button_id == ''001'' and button_action == ''KeyPressed3x'' }}'
sequence: !input 'button_top_left_3xtap'
- conditions: '{{ button_id == ''002'' and button_action == ''KeyPressed3x'' }}'
sequence: !input 'button_top_right_3xtap'
- conditions: '{{ button_id == ''003'' and button_action == ''KeyPressed3x'' }}'
sequence: !input 'button_lower_left_3xtap'
- conditions: '{{ button_id == ''004'' and button_action == ''KeyPressed3x'' }}'
sequence: !input 'button_lower_right_3xtap'
- conditions: '{{ button_id == ''001'' and button_action == ''KeyHeldDown'' }}'
sequence: !input 'button_top_left_hold'
- conditions: '{{ button_id == ''002'' and button_action == ''KeyHeldDown'' }}'
sequence: !input 'button_top_right_hold'
- conditions: '{{ button_id == ''003'' and button_action == ''KeyHeldDown'' }}'
sequence: !input 'button_lower_left_hold'
- conditions: '{{ button_id == ''004'' and button_action == ''KeyHeldDown'' }}'
sequence: !input 'button_lower_right_hold'
- conditions: '{{ button_id == ''001'' and button_action == ''KeyReleased'' }}'
sequence: !input 'button_top_left_release'
- conditions: '{{ button_id == ''002'' and button_action == ''KeyReleased'' }}'
sequence: !input 'button_top_right_release'
- conditions: '{{ button_id == ''003'' and button_action == ''KeyReleased'' }}'
sequence: !input 'button_lower_left_release'
- conditions: '{{ button_id == ''004'' and button_action == ''KeyReleased'' }}'
sequence: !input 'button_lower_right_release'
default:
- service: system_log.write
data:
level: warning
message: Activated button '{{ button_id }}' with action ({{ button_action }})
for node '{{ matrix_zdb5100 }}'