-
Notifications
You must be signed in to change notification settings - Fork 23
/
config-ecodim-dali-gw2.json.jinja
530 lines (527 loc) · 19.9 KB
/
config-ecodim-dali-gw2.json.jinja
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
{
"title": "ECOdim DALI GW2 (Modbus-DALI gateway)",
"device_type": "ecodim_dali_gw2",
"group": "g-adapter",
"device": {
"name": "ECOdim DALI GW2",
"id": "ecodim_dali_gw2",
"response_timeout_ms": 100,
"guard_interval_us": 5000,
"groups": [
{
"title": "System Commands",
"id": "system_commands"
},
{
"title": "Transparent Mode",
"id": "transparent_mode"
},
{
"title": "Broadcast Commands",
"id": "broadcast_commands"
},
{
"title": "Group Commands",
"id": "group_commands"
},
{
"title": "Individual Commands",
"id": "individual_commands"
},
{
"title": "Relay Control",
"id": "relay_control"
},
{
"title": "General",
"id": "general"
},
{
"title": "HW Info",
"id": "hw_info"
}
],
"parameters": {
"data_buffering_time_s": {
"title": "Data Buffering Period (s)",
"description": "data_buffering_period_description",
"address": 38,
"reg_type": "holding",
"format": "u16",
"min": 0,
"max": 65535,
"default": 5,
"group": "general",
"order": 1
}
},
"channels": [
{
"name": "DALI Bus Status",
"address": 29,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"offset": 1,
"scale": -1,
"readonly": true,
"group": "system_commands"
},
{
"name": "DALI Bus Load",
"address": 55,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "system_commands",
"units": "%"
},
{
"name": "DALI Devices Quantity",
"address": 31,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "system_commands"
},
{
"name": "DALI Bus Scan",
"address": 30,
"reg_type": "holding",
"type": "value",
"format": "u16",
"group": "system_commands",
"min": 0,
"max": 18
},
{
"name": "Reset Gateway",
"address": 32,
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "system_commands",
"on_value": "0x55"
},
{
"name": "DALI Command",
"write_address": 25,
"reg_type": "holding",
"type": "value",
"format": "u16",
"group": "transparent_mode"
},
{
"name": "Last Command Status",
"address": 24,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "transparent_mode"
},
{
"name": "Device Answer",
"address": 26,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "transparent_mode"
},
{
"name": "Devices Available",
"address": 1002,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "broadcast_commands"
},
{
"name": "Devices Status",
"address": 1004,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "broadcast_commands"
},
{
"name": "Adjustable Color Temperature Devices",
"address": 1007,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "broadcast_commands"
},
{
"name": "Device Fault",
"address": 1003,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "broadcast_commands"
},
{
"name": "Broadcast Command",
"write_address": 1001,
"reg_type": "holding",
"type": "value",
"format": "u16",
"group": "broadcast_commands",
"min": 0,
"max": 31
},
{
"name": "Brightness",
"write_address": 1000,
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "broadcast_commands",
"min": 0,
"max": 254
},
{
"name": "Color Temperature",
"write_address": 1005,
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "broadcast_commands",
"min": 1000,
"max": 10000
},
{
"name": "Increase Color Temperature",
"write_address": 1006,
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "broadcast_commands",
"on_value": 0
},
{
"name": "Decrease Color Temperature",
"write_address": 1006,
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "broadcast_commands",
"on_value": 1
},
{% for G in range(0, 16) -%}
{% set enabled = 'true' if G == 0 else 'false' -%}
{
"name": "Group {{G}} Devices Available",
"address": "{{2002 + G * 5}}",
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "group_commands",
"enabled": {{enabled}}
},
{
"name": "Group {{G}} Fault",
"address": "{{2003 + G * 5}}",
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "group_commands",
"enabled": {{enabled}}
},
{
"name": "Group {{G}} Status",
"address": "{{2004 + G * 5}}",
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "group_commands",
"enabled": {{enabled}}
},
{
"name": "Group {{G}} Adjustable Color Temperature Devices",
"address": "{{2622 + G * 5}}",
"reg_type": "holding",
"type": "switch",
"format": "u16",
"scale": 0.5,
"readonly": true,
"group": "group_commands",
"enabled": {{enabled}}
},
{
"name": "Group {{G}} Command",
"write_address": "{{2001 + G * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"group": "group_commands",
"enabled": {{enabled}},
"min": 0,
"max": 31
},
{
"name": "Group {{G}} Brightness",
"write_address": "{{2000 + G * 5}}",
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "group_commands",
"enabled": {{enabled}},
"min": 0,
"max": 254
},
{
"name": "Group {{G}} Color Temperature",
"write_address": "{{2620 + G * 5}}",
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "group_commands",
"enabled": {{enabled}},
"min": 1000,
"max": 10000
},
{
"name": "Group {{G}} Increase Color Temperature",
"write_address": "{{2621 + G * 5}}",
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "group_commands",
"enabled": {{enabled}},
"on_value": 0
},
{
"name": "Group {{G}} Decrease Color Temperature",
"write_address": "{{2621 + G * 5}}",
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "group_commands",
"enabled": {{enabled}},
"on_value": 1
},
{% endfor -%}
{% for A in range(0, 64) -%}
{% set enabled = 'true' if A == 0 else 'false' -%}
{
"name": "Device {{A}} Available",
"address": "{{3002 + A * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "individual_commands",
"enabled": {{enabled}}
},
{
"name": "Device {{A}} Status",
"address": "{{3003 + A * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "individual_commands",
"enabled": {{enabled}}
},
{
"name": "Device {{A}} Color Control Mode",
"address": "{{3322 + A * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "individual_commands",
"enabled": false
},
{
"name": "Device {{A}} Color Change Status",
"address": "{{3323 + A * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "individual_commands",
"enabled": false
},
{
"name": "Device {{A}} Command",
"write_address": "{{3001 + A * 5}}",
"reg_type": "holding",
"type": "value",
"format": "u16",
"group": "individual_commands",
"enabled": {{enabled}},
"min": 0,
"max": 31
},
{
"name": "Device {{A}} Brightness",
"address": "{{3004 + A * 5}}",
"write_address": "{{3000 + A * 5}}",
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "individual_commands",
"enabled": {{enabled}},
"min": 0,
"max": 254
},
{
"name": "Device {{A}} Color Temperature",
"address": "{{3324 + A * 5}}",
"write_address": "{{3320 + A * 5}}",
"reg_type": "holding",
"type": "range",
"format": "u16",
"group": "individual_commands",
"enabled": false,
"min": 1000,
"max": 10000
},
{
"name": "Device {{A}} Increase Color Temperature",
"write_address": "{{3321 + A * 5}}",
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "individual_commands",
"enabled": false,
"on_value": 0
},
{
"name": "Device {{A}} Decrease Color Temperature",
"write_address": "{{3321 + A * 5}}",
"reg_type": "holding",
"type": "pushbutton",
"format": "u16",
"group": "individual_commands",
"enabled": false,
"on_value": 1
},
{% endfor -%}
{
"name": "Relay 1",
"address": 27,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"group": "relay_control"
},
{
"name": "Relay 2",
"address": 28,
"reg_type": "holding",
"type": "switch",
"format": "u16",
"group": "relay_control"
},
{
"name": "Gateway Type",
"address": 0,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "hw_info"
},
{
"name": "Gateway HW Version",
"address": 1,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "hw_info"
},
{
"name": "Gateway SW Version",
"address": 2,
"reg_type": "holding",
"type": "value",
"format": "u16",
"readonly": true,
"group": "hw_info"
}
],
"translations": {
"en": {
"data_buffering_period_description": "During this period data is read from gateway buffer, not from device. 0 - buffering disabled"
},
"ru": {
"ECOdim DALI GW2 (Modbus-DALI gateway)": "ECOdim DALI GW2 (шлюз Modbus-DALI)",
"System Commands": "Системные команды",
"Transparent Mode": "Прозрачный режим",
"Broadcast Commands": "Широковещательные команды",
"Group Commands": "Групповые команды",
"Individual Commands": "Индивидуальные команды",
"Relay Control": "Управление реле",
"General": "Общее",
"HW Info": "Данные модуля",
"data_buffering_period_description": "В течение заданного периода данные считываются из буфера шлюза, а не из устройства. 0 - буферизация отключена",
"DALI Bus Status": "Статус шины DALI",
"DALI Bus Load": "Загрузка шины DALI",
"DALI Devices Quantity": "Количество устройств DALI",
"DALI Bus Scan": "Сканирование шины DALI",
"Data Buffering Period (s)": "Период буферизации данных (с)",
"Reset Gateway": "Сброс шлюза",
"DALI Command": "Команда DALI",
"Last Command Status": "Статус последней команды",
"Device Answer": "Ответ устройства",
"Devices Available": "Присутствие устройств",
"Devices Status": "Статус устройств",
"Adjustable Color Temperature Devices": "Устройства с изменяемой цветовой температурой",
"Device Fault": "Ошибка устройства",
"Broadcast Command": "Широковещательная команда",
"Brightness": "Яркость",
"Color Temperature": "Цветовая температура",
"Increase Color Temperature": "Увеличить цветовую температуру",
"Decrease Color Temperature": "Уменьшить цветовую температуру",
{% for G in range(0, 16) -%}
"Group {{G}} Devices Available": "Присутствие устройств группы {{G}}",
"Group {{G}} Fault": "Ошибка группы {{G}}",
"Group {{G}} Status": "Статус группы {{G}}",
"Group {{G}} Adjustable Color Temperature Devices": "Устройства с изменяемой цветовой температурой группы {{G}}",
"Group {{G}} Command": "Команда группе {{G}}",
"Group {{G}} Brightness": "Яркость группы {{G}}",
"Group {{G}} Color Temperature": "Цветовая температура группы {{G}}",
"Group {{G}} Increase Color Temperature": "Увеличить цветовую температуру группы {{G}}",
"Group {{G}} Decrease Color Temperature": "Уменьшить цветовую температуру группы {{G}}",
{% endfor -%}
{% for A in range(0, 64) -%}
"Device {{A}} Available": "Присутствие устройства {{A}}",
"Device {{A}} Status": "Статус устройства {{A}}",
"Device {{A}} Color Control Mode": "Режим управления цветом устройства {{A}}",
"Device {{A}} Color Change Status": "Статус изменения цвета устройства {{A}}",
"Device {{A}} Command": "Команда устройству {{A}}",
"Device {{A}} Brightness": "Яркость устройства {{A}}",
"Device {{A}} Color Temperature": "Цветовая температура устройства {{A}}",
"Device {{A}} Increase Color Temperature": "Увеличить цветовую температуру устройства {{A}}",
"Device {{A}} Decrease Color Temperature": "Уменьшить цветовую температуру устройства {{A}}",
{% endfor -%}
"Relay 1": "Реле 1",
"Relay 2": "Реле 2",
"Gateway Type": "Тип шлюза",
"Gateway HW Version": "Аппаратная версия",
"Gateway SW Version": "Версия прошивки"
}
}
}
}