zigbee-herdsman-converters 15.0.103 → 15.0.104
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/converters/fromZigbee.js +1 -1
- package/devices/develco.js +1 -1
- package/devices/profalux.js +1 -0
- package/devices/shinasystem.js +5 -1
- package/devices/tuya.js +0 -1
- package/devices/xiaomi.js +34 -0
- package/lib/philips.js +1 -1
- package/lib/reporting.js +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -5379,7 +5379,7 @@ const converters = {
|
|
|
5379
5379
|
if (['QBKG39LM', 'QBKG41LM', 'WS-EUK02', 'WS-EUK04', 'QBKG20LM', 'QBKG28LM', 'QBKG31LM'].includes(model.model)) {
|
|
5380
5380
|
buttonLookup = {41: 'left', 42: 'right', 51: 'both'};
|
|
5381
5381
|
}
|
|
5382
|
-
if (['QBKG25LM', 'QBKG26LM', 'QBKG29LM', 'QBKG34LM', 'ZNQBKG31LM'].includes(model.model)) {
|
|
5382
|
+
if (['QBKG25LM', 'QBKG26LM', 'QBKG29LM', 'QBKG34LM', 'ZNQBKG31LM', 'ZNQBKG26LM'].includes(model.model)) {
|
|
5383
5383
|
buttonLookup = {
|
|
5384
5384
|
41: 'left', 42: 'center', 43: 'right',
|
|
5385
5385
|
51: 'left_center', 52: 'left_right', 53: 'center_right',
|
package/devices/develco.js
CHANGED
|
@@ -297,7 +297,7 @@ module.exports = [
|
|
|
297
297
|
const endpoint = device.getEndpoint(2);
|
|
298
298
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
|
|
299
299
|
await reporting.onOff(endpoint);
|
|
300
|
-
await reporting.readEletricalMeasurementMultiplierDivisors(endpoint);
|
|
300
|
+
await reporting.readEletricalMeasurementMultiplierDivisors(endpoint, true);
|
|
301
301
|
await reporting.activePower(endpoint);
|
|
302
302
|
await reporting.rmsCurrent(endpoint);
|
|
303
303
|
await reporting.rmsVoltage(endpoint);
|
package/devices/profalux.js
CHANGED
|
@@ -20,6 +20,7 @@ module.exports = [
|
|
|
20
20
|
zigbeeModel: [
|
|
21
21
|
'MOT-C1Z06C\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000',
|
|
22
22
|
'MOT-C1Z10F\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000',
|
|
23
|
+
'MOT-C1Z06F\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000',
|
|
23
24
|
],
|
|
24
25
|
fingerprint: [{manufId: 4368, endpoints: [{ID: 1, profileID: 260, deviceID: 512,
|
|
25
26
|
inputClusters: [0, 3, 4, 5, 6, 8, 10, 21, 256, 64544, 64545], outputClusters: [3, 64544]}]}],
|
package/devices/shinasystem.js
CHANGED
|
@@ -522,6 +522,7 @@ module.exports = [
|
|
|
522
522
|
zigbeeModel: ['SBM300ZB4'],
|
|
523
523
|
model: 'SBM300ZB4',
|
|
524
524
|
vendor: 'ShinaSystem',
|
|
525
|
+
ota: ota.zigbeeOTA,
|
|
525
526
|
description: 'SiHAS remote control 4 button',
|
|
526
527
|
fromZigbee: [fz.sihas_action, fz.battery],
|
|
527
528
|
toZigbee: [],
|
|
@@ -541,6 +542,7 @@ module.exports = [
|
|
|
541
542
|
zigbeeModel: ['SBM300ZC1'],
|
|
542
543
|
model: 'SBM300ZC1',
|
|
543
544
|
vendor: 'ShinaSystem',
|
|
545
|
+
ota: ota.zigbeeOTA,
|
|
544
546
|
description: 'SiHAS remote control',
|
|
545
547
|
meta: {battery: {voltageToPercentage: '3V_2100'}},
|
|
546
548
|
fromZigbee: [fz.battery, fz.sihas_action],
|
|
@@ -556,6 +558,7 @@ module.exports = [
|
|
|
556
558
|
zigbeeModel: ['SBM300ZC2'],
|
|
557
559
|
model: 'SBM300ZC2',
|
|
558
560
|
vendor: 'ShinaSystem',
|
|
561
|
+
ota: ota.zigbeeOTA,
|
|
559
562
|
description: 'SiHAS remote control 2 button',
|
|
560
563
|
fromZigbee: [fz.sihas_action, fz.battery],
|
|
561
564
|
toZigbee: [],
|
|
@@ -572,6 +575,7 @@ module.exports = [
|
|
|
572
575
|
zigbeeModel: ['SBM300ZC3'],
|
|
573
576
|
model: 'SBM300ZC3',
|
|
574
577
|
vendor: 'ShinaSystem',
|
|
578
|
+
ota: ota.zigbeeOTA,
|
|
575
579
|
description: 'SiHAS remote control 3 button',
|
|
576
580
|
fromZigbee: [fz.sihas_action, fz.battery],
|
|
577
581
|
toZigbee: [],
|
|
@@ -590,6 +594,7 @@ module.exports = [
|
|
|
590
594
|
zigbeeModel: ['SBM300ZC4'],
|
|
591
595
|
model: 'SBM300ZC4',
|
|
592
596
|
vendor: 'ShinaSystem',
|
|
597
|
+
ota: ota.zigbeeOTA,
|
|
593
598
|
description: 'SiHAS remote control 4 button',
|
|
594
599
|
fromZigbee: [fz.sihas_action, fz.battery],
|
|
595
600
|
toZigbee: [],
|
|
@@ -747,7 +752,6 @@ module.exports = [
|
|
|
747
752
|
zigbeeModel: ['ISM300Z3'],
|
|
748
753
|
model: 'ISM300Z3',
|
|
749
754
|
vendor: 'ShinaSystem',
|
|
750
|
-
ota: ota.zigbeeOTA,
|
|
751
755
|
description: 'SiHAS IOT smart inner switch 3 gang',
|
|
752
756
|
fromZigbee: [fzLocal.ISM300Z3_on_off],
|
|
753
757
|
toZigbee: [tzLocal.ISM300Z3_on_off, tzLocal.ISM300Z3_rf_pairing],
|
package/devices/tuya.js
CHANGED
|
@@ -2523,7 +2523,6 @@ module.exports = [
|
|
|
2523
2523
|
{modelID: 'TS0601', manufacturerName: '_TZE200_3ylew7b4'},
|
|
2524
2524
|
{modelID: 'TS0601', manufacturerName: '_TZE200_llm0epxg'},
|
|
2525
2525
|
{modelID: 'TS0601', manufacturerName: '_TZE200_n1aauwb4'},
|
|
2526
|
-
{modelID: 'TS0601', manufacturerName: '_TZE204_sxm7l9xa'},
|
|
2527
2526
|
{modelID: 'TS0601', manufacturerName: '_TZE200_xu4a5rhj'},
|
|
2528
2527
|
{modelID: 'TS0601', manufacturerName: '_TZE204_r0jdjrvi'},
|
|
2529
2528
|
],
|
package/devices/xiaomi.js
CHANGED
|
@@ -3246,4 +3246,38 @@ module.exports = [
|
|
|
3246
3246
|
},
|
|
3247
3247
|
ota: ota.zigbeeOTA,
|
|
3248
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
zigbeeModel: ['lumi.switch.acn031'],
|
|
3251
|
+
model: 'ZNQBKG26LM',
|
|
3252
|
+
vendor: 'Xiaomi',
|
|
3253
|
+
description: 'Aqara smart wall switch H1M (with neutral, triple rocker)',
|
|
3254
|
+
fromZigbee: [fz.on_off, fz.xiaomi_multistate_action, fz.aqara_opple, fz.xiaomi_power],
|
|
3255
|
+
toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode_opple, tz.aqara_switch_mode_switch,
|
|
3256
|
+
tz.xiaomi_flip_indicator_light],
|
|
3257
|
+
endpoint: (device) => {
|
|
3258
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
3259
|
+
},
|
|
3260
|
+
meta: {multiEndpoint: true},
|
|
3261
|
+
exposes: [
|
|
3262
|
+
e.switch().withEndpoint('left'), e.switch().withEndpoint('center'), e.switch().withEndpoint('right'),
|
|
3263
|
+
exposes.enum('operation_mode', ea.ALL, ['control_relay', 'decoupled'])
|
|
3264
|
+
.withDescription('Decoupled mode for left button')
|
|
3265
|
+
.withEndpoint('left'),
|
|
3266
|
+
exposes.enum('operation_mode', ea.ALL, ['control_relay', 'decoupled'])
|
|
3267
|
+
.withDescription('Decoupled mode for center button')
|
|
3268
|
+
.withEndpoint('center'),
|
|
3269
|
+
exposes.enum('operation_mode', ea.ALL, ['control_relay', 'decoupled'])
|
|
3270
|
+
.withDescription('Decoupled mode for right button')
|
|
3271
|
+
.withEndpoint('right'),
|
|
3272
|
+
e.action(['single_left', 'double_left', 'single_center', 'double_center', 'single_right', 'double_right',
|
|
3273
|
+
'single_left_center', 'double_left_center', 'single_left_right', 'double_left_right',
|
|
3274
|
+
'single_center_right', 'double_center_right', 'single_all', 'double_all']),
|
|
3275
|
+
e.device_temperature(), e.flip_indicator_light(),
|
|
3276
|
+
],
|
|
3277
|
+
onEvent: preventReset,
|
|
3278
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
3279
|
+
await device.getEndpoint(1).write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
|
|
3280
|
+
},
|
|
3281
|
+
ota: ota.zigbeeOTA,
|
|
3282
|
+
},
|
|
3249
3283
|
];
|
package/lib/philips.js
CHANGED
|
@@ -52,7 +52,7 @@ const knownEffects = {
|
|
|
52
52
|
|
|
53
53
|
const extend = {
|
|
54
54
|
light_onoff_brightness: (options={}) => {
|
|
55
|
-
options = {disableHueEffects:
|
|
55
|
+
options = {disableHueEffects: false, ...options};
|
|
56
56
|
if (!options.disableHueEffects) options.disableEffect = true;
|
|
57
57
|
const result = extendDontUse.light_onoff_brightness(options);
|
|
58
58
|
result['ota'] = ota.zigbeeOTA;
|
package/lib/reporting.js
CHANGED
|
@@ -25,7 +25,7 @@ async function readEletricalMeasurementMultiplierDivisors(endpoint, readFrequenc
|
|
|
25
25
|
// Split into three chunks, some devices fail to respond when reading too much attributes at once.
|
|
26
26
|
await endpoint.read('haElectricalMeasurement', ['acVoltageMultiplier', 'acVoltageDivisor', 'acCurrentMultiplier']);
|
|
27
27
|
await endpoint.read('haElectricalMeasurement', ['acCurrentDivisor', 'acPowerMultiplier', 'acPowerDivisor']);
|
|
28
|
-
// Only read frequency multiplier/
|
|
28
|
+
// Only read frequency multiplier/divisor when enabled as not all devices support this.
|
|
29
29
|
if (readFrequencyAttrs) {
|
|
30
30
|
await endpoint.read('haElectricalMeasurement', ['acFrequencyDivisor', 'acFrequencyMultiplier']);
|
|
31
31
|
}
|