zigbee-herdsman-converters 14.0.361 → 14.0.365
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/toZigbee.js +1 -1
- package/devices/ledvance.js +6 -0
- package/devices/lidl.js +1 -1
- package/devices/osram.js +1 -1
- package/devices/schneider_electric.js +14 -3
- package/devices/tuya.js +22 -1
- package/devices/zemismart.js +1 -1
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/toZigbee.js
CHANGED
|
@@ -805,7 +805,7 @@ const converters = {
|
|
|
805
805
|
if (state === 'toggle' || state === 'off' || (brightness === undefined && state === 'on')) {
|
|
806
806
|
if (transition.specified) {
|
|
807
807
|
if (state === 'toggle') {
|
|
808
|
-
state = meta.state.state === 'ON' ? '
|
|
808
|
+
state = meta.state.state === 'ON' ? 'off' : 'on';
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
if (state === 'off' && meta.state.brightness && meta.state.state === 'ON') {
|
package/devices/ledvance.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const ota = require('../lib/ota');
|
|
2
2
|
const extend = require('../lib/extend');
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
3
4
|
|
|
4
5
|
module.exports = [
|
|
5
6
|
{
|
|
@@ -9,6 +10,11 @@ module.exports = [
|
|
|
9
10
|
description: 'Smart Zigbee outdoor plug',
|
|
10
11
|
extend: extend.switch(),
|
|
11
12
|
ota: ota.ledvance,
|
|
13
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
14
|
+
const endpoint = device.getEndpoint(1);
|
|
15
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
16
|
+
await reporting.onOff(endpoint);
|
|
17
|
+
},
|
|
12
18
|
},
|
|
13
19
|
{
|
|
14
20
|
zigbeeModel: ['Panel TW Z3'],
|
package/devices/lidl.js
CHANGED
|
@@ -696,7 +696,7 @@ module.exports = [
|
|
|
696
696
|
exposes.numeric('current_heating_setpoint_auto', ea.STATE_SET).withValueMin(0.5).withValueMax(29.5)
|
|
697
697
|
.withValueStep(0.5).withUnit('°C').withDescription('Temperature setpoint automatic'),
|
|
698
698
|
exposes.climate().withSetpoint('current_heating_setpoint', 0.5, 29.5, 0.5, ea.STATE_SET)
|
|
699
|
-
.withLocalTemperature(ea.STATE).withLocalTemperatureCalibration(-
|
|
699
|
+
.withLocalTemperature(ea.STATE).withLocalTemperatureCalibration(-12.5, 5.5, 0.1, ea.STATE_SET)
|
|
700
700
|
.withSystemMode(['off', 'heat', 'auto'], ea.STATE_SET)
|
|
701
701
|
.withPreset(['schedule', 'manual', 'holiday', 'boost']),
|
|
702
702
|
exposes.numeric('detectwindow_temperature', ea.STATE_SET).withUnit('°C').withDescription('Open window detection temperature')
|
package/devices/osram.js
CHANGED
|
@@ -191,7 +191,7 @@ module.exports = [
|
|
|
191
191
|
description: 'Smart+ plug',
|
|
192
192
|
vendor: 'OSRAM',
|
|
193
193
|
extend: extend.switch(),
|
|
194
|
-
whiteLabel: [{vendor: 'LEDVANCE', model: 'AB3257001NJ'}],
|
|
194
|
+
whiteLabel: [{vendor: 'LEDVANCE', model: 'AB3257001NJ'}, {vendor: 'LEDVANCE', model: 'AC03360'}],
|
|
195
195
|
ota: ota.ledvance,
|
|
196
196
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
197
197
|
const endpoint = device.getEndpoint(3);
|
|
@@ -7,6 +7,16 @@ const extend = require('../lib/extend');
|
|
|
7
7
|
const e = exposes.presets;
|
|
8
8
|
const ea = exposes.access;
|
|
9
9
|
|
|
10
|
+
const tzLocal = {
|
|
11
|
+
lift_duration: {
|
|
12
|
+
key: ['lift_duration'],
|
|
13
|
+
convertSet: async (entity, key, value, meta) => {
|
|
14
|
+
await entity.write(0x0102, {0xe000: {value, type: 0x21}}, {manufacturerCode: 0x105e});
|
|
15
|
+
return {state: {lift_duration: value}};
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
10
20
|
module.exports = [
|
|
11
21
|
{
|
|
12
22
|
zigbeeModel: ['PUCK/SHUTTER/1'],
|
|
@@ -14,8 +24,9 @@ module.exports = [
|
|
|
14
24
|
vendor: 'Schneider Electric',
|
|
15
25
|
description: 'Roller shutter module',
|
|
16
26
|
fromZigbee: [fz.cover_position_tilt],
|
|
17
|
-
toZigbee: [tz.cover_position_tilt, tz.cover_state],
|
|
18
|
-
exposes: [e.cover_position()
|
|
27
|
+
toZigbee: [tz.cover_position_tilt, tz.cover_state, tzLocal.lift_duration],
|
|
28
|
+
exposes: [e.cover_position(), exposes.numeric('lift_duration', ea.STATE_SET).withUnit('seconds')
|
|
29
|
+
.withValueMin(0).withValueMax(300).withDescription('Duration of lift')],
|
|
19
30
|
meta: {coverInverted: true},
|
|
20
31
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
21
32
|
const endpoint = device.getEndpoint(5);
|
|
@@ -283,7 +294,7 @@ module.exports = [
|
|
|
283
294
|
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'), e.action(['on_s*', 'off_s*'])],
|
|
284
295
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
285
296
|
device.endpoints.forEach(async (ep) => {
|
|
286
|
-
if (ep.outputClusters.includes(6)) {
|
|
297
|
+
if (ep.outputClusters.includes(6) || ep.ID <= 2) {
|
|
287
298
|
await reporting.bind(ep, coordinatorEndpoint, ['genOnOff']);
|
|
288
299
|
if (ep.ID <= 2) {
|
|
289
300
|
await reporting.onOff(ep);
|
package/devices/tuya.js
CHANGED
|
@@ -212,6 +212,7 @@ module.exports = [
|
|
|
212
212
|
{modelID: 'TS0202', manufacturerName: '_TYZB01_zwvaj5wy'},
|
|
213
213
|
{modelID: 'TS0202', manufacturerName: '_TZ3000_mcxw5ehu'},
|
|
214
214
|
{modelID: 'TS0202', manufacturerName: '_TZ3000_msl6wxk9'},
|
|
215
|
+
{modelID: 'TS0202', manufacturerName: '_TYZB01_tv3wxhcz'},
|
|
215
216
|
{modelID: 'TS0202', manufacturerName: '_TYZB01_hqbdru35'},
|
|
216
217
|
{modelID: 'WHD02', manufacturerName: '_TZ3000_hktqahrq'}],
|
|
217
218
|
model: 'TS0202',
|
|
@@ -536,6 +537,15 @@ module.exports = [
|
|
|
536
537
|
toZigbee: [],
|
|
537
538
|
exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
|
|
538
539
|
},
|
|
540
|
+
{
|
|
541
|
+
fingerprint: [{modelID: 'TS0201', manufacturerName: '_TZ3000_bguser20'}],
|
|
542
|
+
model: 'WSD500A',
|
|
543
|
+
vendor: 'TuYa',
|
|
544
|
+
description: 'Temperature & humidity sensor',
|
|
545
|
+
fromZigbee: [fz.battery, fz.temperature, fz.humidity],
|
|
546
|
+
toZigbee: [],
|
|
547
|
+
exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
|
|
548
|
+
},
|
|
539
549
|
{
|
|
540
550
|
fingerprint: [{modelID: 'SM0201', manufacturerName: '_TYZB01_cbiezpds'}],
|
|
541
551
|
model: 'SM0201',
|
|
@@ -601,7 +611,8 @@ module.exports = [
|
|
|
601
611
|
model: 'TS0044',
|
|
602
612
|
vendor: 'TuYa',
|
|
603
613
|
description: 'Wireless switch with 4 buttons',
|
|
604
|
-
whiteLabel: [{vendor: 'Lonsonho', model: 'TS0044'}, {vendor: 'Haozee', model: 'ESW-OZAA-EU'}
|
|
614
|
+
whiteLabel: [{vendor: 'Lonsonho', model: 'TS0044'}, {vendor: 'Haozee', model: 'ESW-OZAA-EU'},
|
|
615
|
+
{vendor: 'LoraTap', model: 'SS6400ZB'}],
|
|
605
616
|
fromZigbee: [fz.tuya_on_off_action, fz.battery],
|
|
606
617
|
exposes: [e.battery(), e.action(['1_single', '1_double', '1_hold', '2_single', '2_double', '2_hold',
|
|
607
618
|
'3_single', '3_double', '3_hold', '4_single', '4_double', '4_hold'])],
|
|
@@ -804,6 +815,7 @@ module.exports = [
|
|
|
804
815
|
{modelID: 'TS0601', manufacturerName: '_TZE200_fzo2pocs'},
|
|
805
816
|
{modelID: 'TS0601', manufacturerName: '_TZE200_5sbebbzs'},
|
|
806
817
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zuz7f94z'},
|
|
818
|
+
{modelID: 'TS0601', manufacturerName: '_TZE200_iossyxra'},
|
|
807
819
|
],
|
|
808
820
|
model: 'TS0601_cover',
|
|
809
821
|
vendor: 'TuYa',
|
|
@@ -1781,4 +1793,13 @@ module.exports = [
|
|
|
1781
1793
|
exposes.enum('clear_device_data', ea.SET, ['clear']),
|
|
1782
1794
|
],
|
|
1783
1795
|
},
|
|
1796
|
+
{
|
|
1797
|
+
fingerprint: [{modelID: 'TS004F', manufacturerName: '_TZ3000_4fjiwweb'}],
|
|
1798
|
+
model: 'ERS-10TZBVK-AA',
|
|
1799
|
+
vendor: 'TuYa',
|
|
1800
|
+
description: 'Smart knob',
|
|
1801
|
+
fromZigbee: [fz.command_step, fz.command_toggle, fz.command_move_hue],
|
|
1802
|
+
toZigbee: [],
|
|
1803
|
+
exposes: [e.action(['toggle', 'brightness_step_up', 'brightness_step_down'])],
|
|
1804
|
+
},
|
|
1784
1805
|
];
|
package/devices/zemismart.js
CHANGED
|
@@ -89,7 +89,7 @@ module.exports = [
|
|
|
89
89
|
fromZigbee: [fzLocal.ZMRM02],
|
|
90
90
|
toZigbee: [],
|
|
91
91
|
onEvent: tuya.onEventSetTime,
|
|
92
|
-
exposes: [e.
|
|
92
|
+
exposes: [e.action([
|
|
93
93
|
'button_1_hold', 'button_1_single', 'button_1_double',
|
|
94
94
|
'button_2_hold', 'button_2_single', 'button_2_double',
|
|
95
95
|
'button_3_hold', 'button_3_single', 'button_3_double',
|
package/npm-shrinkwrap.json
CHANGED