-
Notifications
You must be signed in to change notification settings - Fork 0
/
keypad_config.yaml
289 lines (265 loc) · 5.49 KB
/
keypad_config.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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
script:
- id: s1_source
then:
- logger.log: "Source Button Pressed"
- id: s2_channelP
then:
- logger.log: "Channel+ Button Pressed"
- id: s3_volumeM
then:
- logger.log: "Volume- Button Pressed"
- id: s4_mute
then:
- logger.log: "Mute Button Pressed"
- id: s5_record
then:
- logger.log: "Record Buttom Pressed"
- id: s6_info
then:
- logger.log: "Info Button Pressed"
- id: s7_right
then:
- logger.log: "Right Buttton Pressed"
- id: s8_volumeP
then:
- logger.log: "Volume+ Button Pressed"
- id: s9_ok
then:
- logger.log: "Ok Button Pressed"
- id: s10_down
then:
- logger.log: "Down Button Pressed"
- id: s11_blue
then:
- logger.log: "Blue Button Pressed"
- id: s12_channelM
then:
- logger.log: "Channel- Button Pressed"
- id: s13_red
then:
- logger.log: "Red Button Pressed"
- id: s14_yellow
then:
- logger.log: "Yellow Button Pressed"
- id: s15_green
then:
- logger.log: "Green Button Pressed"
- id: s16_forward
then:
- logger.log: "Forward Button Pressed"
- id: s18_back
then:
- logger.log: "Back Button Pressed"
- id: s19_up
then:
- logger.log: "Up Button Pressed"
- id: s20_left
then:
- logger.log: "Left Button Pressed"
- id: s22_play
then:
- logger.log: "Play Button Pressed"
- id: s23_config
then:
- logger.log: "Config Button Pressed"
- id: s24_rewind
then:
- logger.log: "Rewind Button Pressed"
- id: s25_stop
then:
- logger.log: "Stop Button Pressed"
binary_sensor:
- platform: matrix_keypad
name: source
id: s1
row: 0
col: 0
on_press:
- script.execute: ext1_coutdown
- script.execute: s1_source
- platform: matrix_keypad
name: channel+
id: s2
row: 1
col: 0
on_press:
- script.execute: ext1_coutdown
- script.execute: s2_channelP
- platform: matrix_keypad
name: Volume-
id: s3
row: 2
col: 0
on_press:
- script.execute: ext1_coutdown
- script.execute: s3_volumeM
- platform: matrix_keypad
name: mute
id: s4
row: 3
col: 0
on_press:
- script.execute: ext1_coutdown
- script.execute: s4_mute
- platform: matrix_keypad
name: record
id: s5
row: 4
col: 0
on_press:
- script.execute: ext1_coutdown
- script.execute: s5_record
- platform: matrix_keypad
name: info
id: s6
row: 0
col: 1
on_press:
- script.execute: ext1_coutdown
- script.execute: s6_info
- platform: matrix_keypad
name: right
id: s7
row: 1
col: 1
on_press:
- script.execute: ext1_coutdown
- script.execute: s7_right
- platform: matrix_keypad
name: Volume+
id: s8
row: 2
col: 1
on_press:
- script.execute: ext1_coutdown
- script.execute: s8_volumeP
- platform: matrix_keypad
name: OK
id: s9
row: 3
col: 1
on_press:
- script.execute: ext1_coutdown
- script.execute: s9_ok
- platform: matrix_keypad
name: down
id: s10
row: 4
col: 1
on_press:
- script.execute: ext1_coutdown
- script.execute: s10_down
- platform: matrix_keypad
name: blue
id: s11
row: 0
col: 2
on_press:
- script.execute: ext1_coutdown
- script.execute: s11_blue
- platform: matrix_keypad
name: channel-
id: s12
row: 1
col: 2
on_press:
- script.execute: ext1_coutdown
- script.execute: s12_channelM
- platform: matrix_keypad
name: red
id: s13
row: 2
col: 2
on_press:
- script.execute: ext1_coutdown
- script.execute: s13_red
- platform: matrix_keypad
name: yellow
id: s14
row: 3
col: 2
on_press:
- script.execute: ext1_coutdown
- script.execute: s14_yellow
- platform: matrix_keypad
name: green
id: s15
row: 4
col: 2
on_press:
- script.execute: ext1_coutdown
- script.execute: s15_green
- platform: matrix_keypad
name: forward
id: s16
row: 0
col: 3
on_press:
- script.execute: ext1_coutdown
- script.execute: s16_forward
- platform: matrix_keypad
name: off
id: s17
row: 1
col: 3
on_double_click:
min_length: 50ms
max_length: 350ms
then:
- deep_sleep.enter: ext1
- platform: matrix_keypad
name: back
id: s18
row: 2
col: 3
on_press:
- script.execute: ext1_coutdown
- script.execute: s18_back
- platform: matrix_keypad
name: up
id: s19
row: 3
col: 3
on_press:
- script.execute: ext1_coutdown
- script.execute: s19_up
- platform: matrix_keypad
name: left
id: s20
row: 4
col: 3
on_press:
- script.execute: ext1_coutdown
- script.execute: s20_left
- platform: matrix_keypad
name: play
id: s22
row: 1
col: 4
on_press:
- script.execute: ext1_coutdown
- script.execute: s22_play
- platform: matrix_keypad
name: config
id: s23
row: 2
col: 4
on_press:
- script.execute: ext1_coutdown
- script.execute: s23_config
- platform: matrix_keypad
name: rewind
id: s24
row: 3
col: 4
on_press:
- script.execute: ext1_coutdown
- script.execute: s24_rewind
- platform: matrix_keypad
name: stop
id: s25
row: 4
col: 4
on_press:
- script.execute: ext1_coutdown
- script.execute: s25_stop