zigbee-herdsman-converters 14.0.566 → 14.0.567
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/devices/ubisys.js +25 -12
- package/package.json +1 -1
package/devices/ubisys.js
CHANGED
|
@@ -74,6 +74,22 @@ const ubisys = {
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
|
+
configure_device_setup: {
|
|
78
|
+
cluster: 'manuSpecificUbisysDeviceSetup',
|
|
79
|
+
type: ['attributeReport', 'readResponse'],
|
|
80
|
+
convert: (model, msg, publish, options, meta) => {
|
|
81
|
+
const result = {};
|
|
82
|
+
if (msg.data.hasOwnProperty('input_configurations')) {
|
|
83
|
+
result['input_configurations'] = msg.data['input_configurations'];
|
|
84
|
+
}
|
|
85
|
+
if (msg.data.hasOwnProperty('inputActions')) {
|
|
86
|
+
result['input_actions'] = msg.data['inputActions'].map(function(el) {
|
|
87
|
+
return Object.values(el);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return {configure_device_setup: result};
|
|
91
|
+
},
|
|
92
|
+
},
|
|
77
93
|
},
|
|
78
94
|
tz: {
|
|
79
95
|
configure_j1: {
|
|
@@ -482,13 +498,9 @@ const ubisys = {
|
|
|
482
498
|
},
|
|
483
499
|
|
|
484
500
|
convertGet: async (entity, key, meta) => {
|
|
485
|
-
const log = (dataRead) => {
|
|
486
|
-
meta.logger.warn(
|
|
487
|
-
`ubisys: Device setup read for '${meta.options.friendly_name}': ${JSON.stringify(utils.toSnakeCase(dataRead))}`);
|
|
488
|
-
};
|
|
489
501
|
const devMgmtEp = meta.device.getEndpoint(232);
|
|
490
|
-
|
|
491
|
-
|
|
502
|
+
await devMgmtEp.read('manuSpecificUbisysDeviceSetup', ['inputConfigurations', 'inputActions'],
|
|
503
|
+
manufacturerOptions.ubisysNull);
|
|
492
504
|
},
|
|
493
505
|
},
|
|
494
506
|
},
|
|
@@ -507,7 +519,7 @@ module.exports = [
|
|
|
507
519
|
]),
|
|
508
520
|
e.power_on_behavior()],
|
|
509
521
|
fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
|
|
510
|
-
fz.command_stop, fz.power_on_behavior],
|
|
522
|
+
fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
|
|
511
523
|
toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
|
|
512
524
|
endpoint: (device) => {
|
|
513
525
|
return {'l1': 1, 's1': 2, 'meter': 3};
|
|
@@ -549,7 +561,7 @@ module.exports = [
|
|
|
549
561
|
]),
|
|
550
562
|
e.power_on_behavior()],
|
|
551
563
|
fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
|
|
552
|
-
fz.command_stop, fz.power_on_behavior],
|
|
564
|
+
fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
|
|
553
565
|
toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
|
|
554
566
|
endpoint: (device) => {
|
|
555
567
|
return {'l1': 1, 's1': 2, 'meter': 4};
|
|
@@ -592,7 +604,7 @@ module.exports = [
|
|
|
592
604
|
'brightness_stop_s2']),
|
|
593
605
|
e.power_on_behavior().withEndpoint('l1'), e.power_on_behavior().withEndpoint('l2')],
|
|
594
606
|
fromZigbee: [fz.on_off, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall, fz.command_move,
|
|
595
|
-
fz.command_stop, fz.power_on_behavior],
|
|
607
|
+
fz.command_stop, fz.power_on_behavior, ubisys.fz.configure_device_setup],
|
|
596
608
|
toZigbee: [tz.on_off, tz.metering_power, ubisys.tz.configure_device_setup, tz.power_on_behavior],
|
|
597
609
|
endpoint: (device) => {
|
|
598
610
|
return {'l1': 1, 'l2': 2, 's1': 3, 's2': 4, 'meter': 5};
|
|
@@ -638,7 +650,7 @@ module.exports = [
|
|
|
638
650
|
description: 'Universal dimmer D1',
|
|
639
651
|
fromZigbee: [fz.on_off, fz.brightness, fz.metering, fz.command_toggle, fz.command_on, fz.command_off, fz.command_recall,
|
|
640
652
|
fz.command_move, fz.command_stop, fz.lighting_ballast_configuration, fz.level_config, ubisys.fz.dimmer_setup,
|
|
641
|
-
ubisys.fz.dimmer_setup_genLevelCtrl],
|
|
653
|
+
ubisys.fz.dimmer_setup_genLevelCtrl, ubisys.fz.configure_device_setup],
|
|
642
654
|
toZigbee: [tz.light_onoff_brightness, tz.ballast_config, tz.level_config, ubisys.tz.dimmer_setup,
|
|
643
655
|
ubisys.tz.dimmer_setup_genLevelCtrl, ubisys.tz.configure_device_setup, tz.ignore_transition, tz.light_brightness_move,
|
|
644
656
|
tz.light_brightness_step],
|
|
@@ -702,7 +714,7 @@ module.exports = [
|
|
|
702
714
|
model: 'J1',
|
|
703
715
|
vendor: 'Ubisys',
|
|
704
716
|
description: 'Shutter control J1',
|
|
705
|
-
fromZigbee: [fz.cover_position_tilt, fz.metering],
|
|
717
|
+
fromZigbee: [fz.cover_position_tilt, fz.metering, ubisys.fz.configure_device_setup],
|
|
706
718
|
toZigbee: [tz.cover_state, tz.cover_position_tilt, tz.metering_power,
|
|
707
719
|
ubisys.tz.configure_j1, ubisys.tz.configure_device_setup],
|
|
708
720
|
exposes: [e.cover_position_tilt(),
|
|
@@ -739,7 +751,8 @@ module.exports = [
|
|
|
739
751
|
model: 'C4',
|
|
740
752
|
vendor: 'Ubisys',
|
|
741
753
|
description: 'Control unit C4',
|
|
742
|
-
fromZigbee: [fz.legacy.ubisys_c4_scenes, fz.legacy.ubisys_c4_onoff, fz.legacy.ubisys_c4_level, fz.legacy.ubisys_c4_cover
|
|
754
|
+
fromZigbee: [fz.legacy.ubisys_c4_scenes, fz.legacy.ubisys_c4_onoff, fz.legacy.ubisys_c4_level, fz.legacy.ubisys_c4_cover,
|
|
755
|
+
ubisys.fz.configure_device_setup],
|
|
743
756
|
toZigbee: [ubisys.tz.configure_device_setup],
|
|
744
757
|
exposes: [e.action([
|
|
745
758
|
'1_scene_*', '1_on', '1_off', '1_toggle', '1_level_move_down', '1_level_move_up',
|