zigbee-herdsman-converters 14.0.431 → 14.0.434
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/adurosmart.js +16 -0
- package/devices/gledopto.js +7 -0
- package/devices/trust.js +1 -1
- package/devices/tuya.js +20 -2
- package/lib/exposes.js +1 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/adurosmart.js
CHANGED
|
@@ -6,6 +6,15 @@ const extend = require('../lib/extend');
|
|
|
6
6
|
const e = exposes.presets;
|
|
7
7
|
|
|
8
8
|
module.exports = [
|
|
9
|
+
{
|
|
10
|
+
zigbeeModel: ['ADUROLIGHT_CSC'],
|
|
11
|
+
model: '15090054',
|
|
12
|
+
vendor: 'AduroSmart',
|
|
13
|
+
description: 'Remote scene controller',
|
|
14
|
+
fromZigbee: [fz.battery, fz.command_toggle, fz.command_recall],
|
|
15
|
+
toZigbee: [],
|
|
16
|
+
exposes: [e.battery(), e.action('toggle', 'recall_253', 'recall_254', 'recall_255')],
|
|
17
|
+
},
|
|
9
18
|
{
|
|
10
19
|
zigbeeModel: ['AD-SmartPlug3001'],
|
|
11
20
|
model: '81848',
|
|
@@ -35,6 +44,13 @@ module.exports = [
|
|
|
35
44
|
return {'default': 2};
|
|
36
45
|
},
|
|
37
46
|
},
|
|
47
|
+
{
|
|
48
|
+
zigbeeModel: ['AD-E14RGBW3001'],
|
|
49
|
+
model: '81895',
|
|
50
|
+
vendor: 'AduroSmart',
|
|
51
|
+
description: 'ERIA E14 Candle Color',
|
|
52
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
53
|
+
},
|
|
38
54
|
{
|
|
39
55
|
zigbeeModel: ['Adurolight_NCC'],
|
|
40
56
|
model: '81825',
|
package/devices/gledopto.js
CHANGED
|
@@ -672,4 +672,11 @@ module.exports = [
|
|
|
672
672
|
description: 'Zigbee 3.0 smart home switch',
|
|
673
673
|
extend: gledoptoExtend.switch(),
|
|
674
674
|
},
|
|
675
|
+
{
|
|
676
|
+
zigbeeModel: ['GL-B-004P'],
|
|
677
|
+
model: 'GL-B-004P',
|
|
678
|
+
vendor: 'Gledopto',
|
|
679
|
+
description: 'Filament LED light bulb E27 G95 7W pro',
|
|
680
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [158, 495]}),
|
|
681
|
+
},
|
|
675
682
|
];
|
package/devices/trust.js
CHANGED
|
@@ -26,7 +26,7 @@ module.exports = [
|
|
|
26
26
|
vendor: 'Trust',
|
|
27
27
|
description: 'Remote control',
|
|
28
28
|
fromZigbee: [fz.command_on, fz.command_off_with_effect, fz.legacy.ZYCT202_stop, fz.legacy.ZYCT202_up_down],
|
|
29
|
-
exposes: [e.action(['on', 'off', 'stop', 'brightness_stop', 'brightness_move_up', 'brightness_move_down'])],
|
|
29
|
+
exposes: [e.action(['on', 'off', 'stop', 'brightness_stop', 'brightness_move_up', 'brightness_move_down']), e.action_group()],
|
|
30
30
|
toZigbee: [],
|
|
31
31
|
// Device does not support battery: https://github.com/Koenkk/zigbee2mqtt/issues/5928
|
|
32
32
|
},
|
package/devices/tuya.js
CHANGED
|
@@ -43,6 +43,18 @@ const tzLocal = {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
const fzLocal = {
|
|
47
|
+
TS0201_battery: {
|
|
48
|
+
cluster: 'genPowerCfg',
|
|
49
|
+
type: ['attributeReport', 'readResponse'],
|
|
50
|
+
convert: (model, msg, publish, options, meta) => {
|
|
51
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/11470
|
|
52
|
+
if (msg.data.batteryVoltage < 30) return;
|
|
53
|
+
return fz.battery(model, msg, publish, options, meta);
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
46
58
|
module.exports = [
|
|
47
59
|
{
|
|
48
60
|
zigbeeModel: ['TS0204'],
|
|
@@ -411,7 +423,12 @@ module.exports = [
|
|
|
411
423
|
vendor: 'TuYa',
|
|
412
424
|
description: 'Socket module',
|
|
413
425
|
extend: extend.switch(),
|
|
414
|
-
whiteLabel: [{vendor: 'LoraTap', model: 'RR400ZB'}],
|
|
426
|
+
whiteLabel: [{vendor: 'LoraTap', model: 'RR400ZB'}, {vendor: 'LoraTap', model: 'SP400ZB'}],
|
|
427
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
428
|
+
const endpoint = device.getEndpoint(1);
|
|
429
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
430
|
+
await reporting.onOff(endpoint);
|
|
431
|
+
},
|
|
415
432
|
},
|
|
416
433
|
{
|
|
417
434
|
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_wxtp7c5y'},
|
|
@@ -608,6 +625,7 @@ module.exports = [
|
|
|
608
625
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_pz9zmxjj'},
|
|
609
626
|
{modelID: 'TS0502B', manufacturerName: '_TZ3000_fzwhym79'},
|
|
610
627
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_rm0hthdo'},
|
|
628
|
+
{modelID: 'TS0502B', manufacturerName: '_TZ3210_zwqnazkb'},
|
|
611
629
|
],
|
|
612
630
|
model: 'TS0502B',
|
|
613
631
|
vendor: 'TuYa',
|
|
@@ -648,7 +666,7 @@ module.exports = [
|
|
|
648
666
|
vendor: 'TuYa',
|
|
649
667
|
description: 'Temperature & humidity sensor with display',
|
|
650
668
|
whiteLabel: [{vendor: 'BlitzWolf', model: 'BW-IS4'}],
|
|
651
|
-
fromZigbee: [
|
|
669
|
+
fromZigbee: [fzLocal.TS0201_battery, fz.temperature, fz.humidity],
|
|
652
670
|
toZigbee: [],
|
|
653
671
|
exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
|
|
654
672
|
},
|
package/lib/exposes.js
CHANGED
|
@@ -503,6 +503,7 @@ module.exports = {
|
|
|
503
503
|
presets: {
|
|
504
504
|
ac_frequency: () => new Numeric('ac_frequency', access.STATE).withUnit('Hz').withDescription('Measured electrical AC frequency'),
|
|
505
505
|
action: (values) => new Enum('action', access.STATE, values).withDescription('Triggered action (e.g. a button click)'),
|
|
506
|
+
action_group: (values) => new Numeric('action_group', access.STATE).withDescription('Group where the action was triggered on'),
|
|
506
507
|
angle: (name) => new Numeric(name, access.STATE).withValueMin(-360).withValueMax(360).withUnit('°'),
|
|
507
508
|
angle_axis: (name) => new Numeric(name, access.STATE).withValueMin(-90).withValueMax(90).withUnit('°'),
|
|
508
509
|
aqi: () => new Numeric('aqi', access.STATE).withDescription('Air quality index'),
|
package/npm-shrinkwrap.json
CHANGED